Commit Graph

3807 Commits

Author SHA1 Message Date
Josh Kelley
5eb3682b9f
Give elements their own interface definition (#8290)
From what I understand, if we want to allow registering additional element options (see [here][1] for an example), then the element options need to be a top-level interface so that they can be used with TypeScript's [declaration merging][2].

[1]: https://github.com/chartjs/chartjs-plugin-annotation/pull/275#issuecomment-742754562
[2]: https://www.typescriptlang.org/docs/handbook/declaration-merging.html
2021-01-30 14:48:18 -05:00
LeeLenaleee
bc312d0dbc
feature: choose custom point style for bar legend display (#8341)
* add feature to choose custom point style for bar legend display
* add documentation and type
* the docs are in the right place now
2021-01-30 11:02:08 -05:00
Evert Timberg
8cca4fe5b9
getRelativePosition takes two arguments (#8336) 2021-01-25 22:59:19 +02:00
dependabot[bot]
0732aef4be
Bump socket.io from 2.3.0 to 2.4.1 (#8333)
Bumps [socket.io](https://github.com/socketio/socket.io) from 2.3.0 to 2.4.1.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/2.4.1/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/2.3.0...2.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-22 19:05:54 -05:00
LeeLenaleee
4f74a92b80
Add documentation for vertical line charts (#8327)
* add documentation for vertical line charts

* remove the indexAxis prop from dataset since it doesnt belong there, fix horizontal bars example and make vertical line example

* 2 bars to line rename

* fix v3-migration guide

* revert deletion of prop from table in bar, added in line. Removed anchor point in link from v3 docs

* put right text in general of line
2021-01-18 16:15:30 +02:00
Marcel Samyn
ff19ea4be7
fix canvas clearRect size calculation (#8328)
Co-authored-by: Marcel Samyn <marcel.samyn@lab900.com>
2021-01-18 08:59:13 -05:00
Evert Timberg
06fa8a4c98
Update to test utils 0.1.2 to track font setting (#8325) 2021-01-18 07:40:18 -05:00
LeeLenaleee
df1303f943
tooltip not showing, edit config (#8323) 2021-01-17 10:33:05 -05:00
Jukka Kurkela
3c64bc88e8
Doughnut: complete radians to degrees conversion (#8321) 2021-01-16 16:04:48 -05:00
Evert Timberg
eb88909e95
Bump v3.0.0-beta.9 (#8320)
Co-authored-by: Evert Timberg <ever.timberg+github@gmail.com>
2021-01-16 14:15:20 -05:00
Ben McCann
00dbe71dbb
Revert "Update spelling of cancellable (#8236)" (#8312)
This reverts commit e6dfc47927.
2021-01-16 21:14:15 +02:00
LeeLenaleee
32b3242585
Fix reading wrong property from font object for font string (#8315) 2021-01-16 21:13:13 +02:00
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) 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