Commit Graph

27 Commits

Author SHA1 Message Date
Evert Timberg
4a191d5af9
Document and remove APIs that can be replaced by it (#7900) 2020-10-17 15:12:34 -04:00
Evert Timberg
1ca60808b4
Shorten alignment settings for axes (#7886)
* Rename crossAlignment to crossAlign
* Update alignment to align for cartesian axes
2020-10-14 08:27:54 -04:00
Evert Timberg
29f1358328
Cartesian axis label cross alignment (#7874)
* Refactor Y axis alignment to it's own method
* Label Cross alignment
* Add documentation of new setting
* Update docs with live sample
2020-10-12 10:22:13 -04:00
Evert Timberg
dc4eac6323
Cartesian axis text alignment (#7846)
* Generate textBaseline per tick label
* Enable configuration of tick alignment
* Add image based tests of text alignment options
2020-10-10 11:38:55 -04:00
Evert Timberg
56a8a23d54
Add new option, skipNull to bar charts that enables skipping null values (#7849)
* Add new option, `skipNull` to bar charts that enables skipping null
or undefined values.

* Address code review feedback

* Fix windows CI lint issues
2020-10-06 07:33:24 -04:00
Evert Timberg
168965fa38
Enable custom sorting of the legend items (#7851) 2020-10-05 22:15:38 -04:00
Evert Timberg
a8a83d12cd
Provide APIs to set active (hovered) and tooltip elements. (#7845)
Provide APIs to set active (hovered) and tooltip elements.

Chart.setActiveElements will set the hovered items.
Chart.tooltip.setActiveElements will set the tooltip items.
2020-10-05 17:14:38 -04:00
Evert Timberg
8438da9e84
Provide method to lookup a chart from a canvas (#7843)
* Provide method to lookup a chart from a canvas
* Throw an error during construction if a canvas is in use
* Migration docs for new constructor behaviour
2020-10-04 11:08:38 -04:00
emmcbd
d332ebc63d
Remove enum types (#7841)
* Remove type enum
* Add declare keyword to UpdateModeEnum
2020-10-03 16:48:22 -04:00
Evert Timberg
9b204eb278
Enable per-dataset circumference and rotation for pie/doughnut charts (#7833)
* Enable per-dataset circumference and rotation for pie/doughnut charts
* Convert `circumference` and `rotation` options to degrees
2020-10-03 16:47:39 -04:00
Samuel Gratzl
391e4b6f2e
flat helpers (#7806)
* generate a flat helpers package
* move helpers built files to dist
* upgrade docs for flat helpers
2020-09-28 09:11:55 -04:00
Jukka Kurkela
10f393a58d
Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
2020-09-26 13:18:35 -04:00
emmcbd
2bb23dfe8c
Minor type fixes (#7812) 2020-09-23 08:43:33 -04:00
Jukka Kurkela
8cdc60ccd1
[perf] Update/draw only visible line/points (#7793)
* Restore count parameter to updateElements
* [perf] Update/draw only visible line/points
* CC
2020-09-15 18:57:31 -04:00
Jukka Kurkela
2c5db2c350
Fix some CC issues (#7796)
* Fix some CC issues
* Merge _lookup, _lookupByKey, _rlookupByKey
* Remove TODO from types
* Merge TRBL logics
* Merge getMaximumWidth and getMaximumHeight
2020-09-14 14:40:19 -04:00
emmcbd
b5853a46b4
Strong typings for scales and datasets in options (#7791) 2020-09-14 09:57:00 -04:00
xr0master
21990fbb12
Merge Chart instance with Chart factory (#7783)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-12 08:46:17 -04:00
emmcbd
7dbfde524f
Strong chart object and properties typing (#7782)
* Strong chart object and chart creation typing
* Handle mixed charts
* Add documentation
2020-09-11 20:18:21 -04:00
xr0master
9b00ff3e1e
interfaces.d: fix a wrong place of Option infer (#7770)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-11 07:32:11 -04:00
Jukka Kurkela
98ab3d095b
[types] parsing is not part of IChartData (#7778) 2020-09-10 17:53:15 -04:00
xr0master
1ec6f1da71
Improve types (#7767)
* interfaces.d: added plugins for the chart configuration
* index.d: allow to set data
* index.d: improve type for the update method
* interfaces.d: improve type of generic chart type
* interfaces.d: alphabetical sort
* index.d: set fields in alphabetical sort
* interfaces.d: remove custom type (string)
* core/index.d: import "chart type" type
* interfaces.d: added extends for TYPE
* interfaces.d: move chart types to enum
* core/index.d: move the update mode to enum

Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-08 21:27:08 -04:00
stockiNail
fd34e786ab
isoWeekday time options on time scale as number (#7768)
* fixed default of tension property of line element
* Fixes isoWeekday on time scale #7749
* adds checking on isoWeekDay options in _generate function
2020-09-07 16:19:45 -04:00
emmcbd
c2fc8a4f17
Type fixes (#7759)
* Some type fixes
* Fix missing property on tooltip option type
2020-09-06 16:43:38 -04:00
Samuel Gratzl
4a827db5ff
Fix Invalid Typescript Types (#7748) 2020-09-02 08:10:19 -04:00
Jukka Kurkela
da33b1bb27
Fix shared option handling (#7731)
Fix shared option handling
2020-08-27 09:14:08 -04:00
Samuel Gratzl
886a465c18
small type fixes (#7715) 2020-08-19 07:01:14 -04:00
Samuel Gratzl
4eeed6e876
WIP: TypeScript types (#7668)
First version of types
2020-08-04 16:52:57 -04:00