Commit Graph

3545 Commits

Author SHA1 Message Date
Ben McCann
a730fc68fa Fix broken links in tooltip docs (#8316) 2021-01-16 21:12:43 +02:00
Jukka Kurkela
ea34e8b814 Disable Path2D caching when chart is animated (#8319)
* Disable Path2D caching when chart is animated
* Add note to performance docs
2021-01-16 14:06:27 -05:00
LeeLenaleee
a58d43cbda fixes #8304 (Missing type) beta 8 broken typescript (#8305)
* fixes #8304

* Update layout.d.ts

First letter of variable from capital to normal
2021-01-14 07:45:12 -05:00
Jukka Kurkela
ad941813b6 Bump version to beta.8 (#8300) v3.0.0-beta.8 2021-01-13 07:48:26 -05:00
Jukka Kurkela
1dc2384796 Only draw points when radius >= 0.1 (#8302) 2021-01-13 07:44:03 -05:00
LeeLenaleee
19442701ea clarification that strikethrough uses same color as the label color (#8289) 2021-01-10 15:17:02 -05:00
LeeLenaleee
aa9a04a014 Skip delete undefined stack (#8291)
* fixes error on undefined stacks
* added test for functionality
2021-01-09 10:27:18 -05:00
Josh Kelley
fa375ff448 Update TypeScript ESLint configuration (#8288)
Using TypeScript-specific ESLint rules fixes some spurious ESLint warnings.
2021-01-08 16:01:20 -05:00
Evert Timberg
e63beb8c6d Add note about v3 dev code in readme (#8283)
* Add note about v3 dev code in readme

* Adjust note based on feedback
2021-01-08 06:56:01 +02:00
stockiNail
397d5bdee4 Remove empty line from the options table (#8274) 2021-01-07 21:48:49 +02:00
LeeLenaleee
93b900efdd Update doughnut.mdx (#8279)
Updating quotation mark to fix broken link
2021-01-07 07:54:18 -05:00
Jukka Kurkela
df11fd98cc Fix incorrect defaults location for Bubble (#8271) 2021-01-05 07:57:09 -05:00
Jukka Kurkela
0c48c1148a Fix resize bug of line / radar charts (#8266)
* Line: Make sure control points are re-calculated

* Radar: always set point on update
2021-01-05 07:24:12 +02:00
Jukka Kurkela
81a1e9a95e Add type linting (#8264) 2021-01-05 07:23:30 +02:00
LeeLenaleee
7c6aff6fb3 Update link to latest version of V2 Docs (#8270) 2021-01-04 15:55:55 -05:00
Ben McCann
fe2fd2ccf8 Upgrade TypeDoc (#8267) 2021-01-03 10:23:29 -05:00
Ben McCann
e596a13542 Upgrade Docusaurus (#8262) 2021-01-02 08:49:11 +02:00
Ben McCann
4f7179a626 Standardize type declaration indentation with tabs (#8263) 2021-01-02 08:46:49 +02:00
stockiNail
a22288dc2d Adds backgroundColor and borderColor options to the documentation (#8257) 2020-12-31 10:19:58 -05:00
stockiNail
3ec3d94a61 Change title font default option (#8258) (#8259) 2020-12-31 10:19:24 -05:00
Jukka Kurkela
610461d714 Use provided options in tooltip plugin (#8254) 2020-12-31 08:46:23 +02:00
Jukka Kurkela
d00ffdcd76 Tooltip: Render when animations are disabled (#8252) 2020-12-30 08:33:30 -05:00
Jukka Kurkela
6ffc380c6a Line: Set points on resize (to reset Path2D cache) (#8250) 2020-12-30 08:31:44 -05:00
Jukka Kurkela
2e43f787de Fix small bugs when animations are disabled (#8253)
* Fix small bugs when animations are disabled
* Update test
2020-12-30 08:31:30 -05:00
Jukka Kurkela
c2091fc77d Skip reset when animations are disabled (#8248)
* Skip reset when animations are disabled
* Review update
2020-12-29 10:10:32 -05:00
Jukka Kurkela
12682c619d Always freeze cached options (#8247) 2020-12-29 08:45:07 -05:00
Jukka Kurkela
dd570f676d Line: Update points directly, when possible (#8246) 2020-12-29 09:02:03 +02:00
Jukka Kurkela
59000abd1d Use cached Intl.NumberFormat everywhere (#8244) 2020-12-28 12:31:19 -05:00
Ben McCann
794f13ae0a Mention npm in installation section (#8245) 2020-12-28 18:45:43 +02:00
Jukka Kurkela
e530a4d1a0 Line: Use Path2D as cache (#8239)
* Line: Use Path2D as cache
* Add comment, move to helpers, first and last point
2020-12-28 09:53:30 -05:00
Jukka Kurkela
66c92548e8 Rename helpers.clear to helpers.clearCanvas (#8238)
* Change parameters of helpers.clear

* Update test
2020-12-28 10:21:46 +02:00
Ben McCann
e6dfc47927 Update spelling of cancellable (#8236) 2020-12-28 10:20:55 +02:00
Evert Timberg
78e78256a5 Cache the lineheight regex (#8240) 2020-12-28 10:19:16 +02:00
Jukka Kurkela
af06586590 Migrate to chartjs-test-utils (#8237) 2020-12-27 14:29:42 -05:00
Evert Timberg
f44db35e2e Clean up the LayoutItem type (#8235) 2020-12-26 16:22:55 -05:00
Evert Timberg
7415517c83 Cache data limits to ensure they are only computed once per update (#8234)
* Cache data limits to ensure they are only computed once per updaet
* Replace `invalidateCaches` on scales with `beforeLayout`
2020-12-26 14:37:23 -05:00
Evert Timberg
988b3c5d2b Create standardized text render method (#8227)
* Create standardized text render method
* Document renderText options and enable configurable decoration width
* Add tests for font rendering
* Split color definition to it's own file
* renderText supports setting styles
* Mock context needs to track textBaseline
* renderText can set textAlign and textBaseline
* renderText does not mutate the context + translate/rotate
* Explicitly set the text decoration style
* Move useStroke logic into renderText
* Cartesian scale: Update computeLabelItems to avoid duplicate allocations
2020-12-26 11:23:02 -05:00
LeeLenaleee
287633a436 Example code plugin outdated (#8230)
Update example code.
As stated in the migration guide: `All plugin hooks have unified signature with 3 arguments: chart, args and options.`
2020-12-24 09:40:13 -05:00
Evert Timberg
3ffcd93d10 Enable changing the chart type (#8226) 2020-12-23 13:38:51 -05:00
Evert Timberg
55dd7ded0e Remove duplicate Scriptable definitions (#8223) 2020-12-22 13:10:25 -05:00
Evert Timberg
1b0ed0c8c5 Scriptable tick colours (#8222) 2020-12-22 12:11:00 -05:00
Evert Timberg
da0535e1ff Horizontal axis with center position should display labels (#8221)
* Horizontal axes with center positions should have labels
* Linting
* Test updates
* Increase the tolerance for one test
2020-12-22 11:33:53 -05:00
Evert Timberg
55a26e69ba Add options to configure tick styling independent of grid lines (#8215)
* Enable axis tick styling independent of grid lines
* Change tickMarkLength to tickLength for consistency with new options
* Add new scale options to TS definitions
2020-12-22 11:27:57 -05:00
LeeLenaleee
074f3b6d2e Ensure that default collections table is clear (#8216)
addition to #8124
2020-12-22 10:22:25 -05:00
Evert Timberg
491f871218 Add note about loading fonts and chart updates (#8214) 2020-12-21 16:10:13 -05:00
Evert Timberg
009a1a5baa Ensure that default animation modes table is clear (#8212) 2020-12-21 15:26:13 -05:00
Evert Timberg
ec7b381345 Split animation definitions (#8208) 2020-12-20 13:26:09 -05:00
LeeLenaleee
544f50888e Docs/multiline labels (#8201)
* Docs/multiline labels

Fixes #8172

* Update data-structures.md

Update with if the labels is used since it can be skipped by providing the datapoints as an object
2020-12-20 11:49:39 -05:00
Evert Timberg
388918924f Split Element type to it's own definition file (#8206) 2020-12-19 21:56:11 +02:00
Jukka Kurkela
dd382bc806 Split adapter types to their own definition file (#8205)
* Split adapter types to their own definition file
* Sort & separate
2020-12-19 14:03:26 -05:00