]>
git.ipfire.org Git - thirdparty/Chart.js.git/log
Jukka Kurkela [Tue, 29 Dec 2020 15:10:32 +0000 (17:10 +0200)]
Skip reset when animations are disabled (#8248)
* Skip reset when animations are disabled
* Review update
Jukka Kurkela [Tue, 29 Dec 2020 13:45:07 +0000 (15:45 +0200)]
Always freeze cached options (#8247)
Jukka Kurkela [Tue, 29 Dec 2020 07:02:03 +0000 (09:02 +0200)]
Line: Update points directly, when possible (#8246)
Jukka Kurkela [Mon, 28 Dec 2020 17:31:19 +0000 (19:31 +0200)]
Use cached Intl.NumberFormat everywhere (#8244)
Ben McCann [Mon, 28 Dec 2020 16:45:43 +0000 (08:45 -0800)]
Mention npm in installation section (#8245)
Jukka Kurkela [Mon, 28 Dec 2020 14:53:30 +0000 (16:53 +0200)]
Line: Use Path2D as cache (#8239)
* Line: Use Path2D as cache
* Add comment, move to helpers, first and last point
Jukka Kurkela [Mon, 28 Dec 2020 08:21:46 +0000 (10:21 +0200)]
Rename helpers.clear to helpers.clearCanvas (#8238)
* Change parameters of helpers.clear
* Update test
Ben McCann [Mon, 28 Dec 2020 08:20:55 +0000 (00:20 -0800)]
Update spelling of cancellable (#8236)
Evert Timberg [Mon, 28 Dec 2020 08:19:16 +0000 (03:19 -0500)]
Cache the lineheight regex (#8240)
Jukka Kurkela [Sun, 27 Dec 2020 19:29:42 +0000 (21:29 +0200)]
Migrate to chartjs-test-utils (#8237)
Evert Timberg [Sat, 26 Dec 2020 21:22:55 +0000 (16:22 -0500)]
Clean up the LayoutItem type (#8235)
Evert Timberg [Sat, 26 Dec 2020 19:37:23 +0000 (14:37 -0500)]
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`
Evert Timberg [Sat, 26 Dec 2020 16:23:02 +0000 (11:23 -0500)]
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
LeeLenaleee [Thu, 24 Dec 2020 14:40:13 +0000 (15:40 +0100)]
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.`
Evert Timberg [Wed, 23 Dec 2020 18:38:51 +0000 (13:38 -0500)]
Enable changing the chart type (#8226)
Evert Timberg [Tue, 22 Dec 2020 18:10:25 +0000 (13:10 -0500)]
Remove duplicate Scriptable definitions (#8223)
Evert Timberg [Tue, 22 Dec 2020 17:11:00 +0000 (12:11 -0500)]
Scriptable tick colours (#8222)
Evert Timberg [Tue, 22 Dec 2020 16:33:53 +0000 (11:33 -0500)]
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
Evert Timberg [Tue, 22 Dec 2020 16:27:57 +0000 (11:27 -0500)]
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
LeeLenaleee [Tue, 22 Dec 2020 15:22:25 +0000 (16:22 +0100)]
Ensure that default collections table is clear (#8216)
addition to #8124
Evert Timberg [Mon, 21 Dec 2020 21:10:13 +0000 (16:10 -0500)]
Add note about loading fonts and chart updates (#8214)
Evert Timberg [Mon, 21 Dec 2020 20:26:13 +0000 (15:26 -0500)]
Ensure that default animation modes table is clear (#8212)
Evert Timberg [Sun, 20 Dec 2020 18:26:09 +0000 (13:26 -0500)]
Split animation definitions (#8208)
LeeLenaleee [Sun, 20 Dec 2020 16:49:39 +0000 (17:49 +0100)]
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
Evert Timberg [Sat, 19 Dec 2020 19:56:11 +0000 (14:56 -0500)]
Split Element type to it's own definition file (#8206)
Jukka Kurkela [Sat, 19 Dec 2020 19:03:26 +0000 (21:03 +0200)]
Split adapter types to their own definition file (#8205)
* Split adapter types to their own definition file
* Sort & separate
Evert Timberg [Sat, 19 Dec 2020 18:39:35 +0000 (13:39 -0500)]
Split geometric types to their own definition file (#8202)
* Split geometric types to their own definition file
* Re-export types
Jukka Kurkela [Sat, 19 Dec 2020 17:52:18 +0000 (19:52 +0200)]
Update CI (#8204)
Jukka Kurkela [Sat, 19 Dec 2020 17:49:06 +0000 (19:49 +0200)]
Update dependencies (#8203)
Evert Timberg [Sat, 19 Dec 2020 15:37:33 +0000 (10:37 -0500)]
Merge TS files into a single file to prevent circular loops (#8198)
LeeLenaleee [Sat, 19 Dec 2020 07:52:27 +0000 (08:52 +0100)]
Update showLine location in defaults (#8199)
Current defaults was wrong.
Working example: https://jsfiddle.net/Leelenaleee/vL7d6yp0/5/
stockiNail [Fri, 18 Dec 2020 20:03:01 +0000 (21:03 +0100)]
Add color options to documentation and types where missing (#8196)
* fixes #8188 and #8189
* removes scriptable context sample with link to options page
* Removes <code> tags in markdown where not needed
Jukka Kurkela [Fri, 18 Dec 2020 17:56:04 +0000 (19:56 +0200)]
Layout: enforce box limits, reject <0 chartArea (#8193)
* Skip chartArea boxes when chartArea <= 0
* Legend: limit to maxWidth/maxHeight
* Layout: enforce box limits, reject <0 chartArea
* Update legend fixtures
Josh Kelley [Fri, 18 Dec 2020 17:46:54 +0000 (12:46 -0500)]
TypeScript updates (#8190)
* Update type definitions and docs for legends
* Fix types for onHover and onClick callbacks
core.controller.js's implementation also passes the Chart instance as `this`. However, that isn't documented, and it's my impression that Chart.js is moving away from passing items as `this`, so I didn't declare it in the type definitions.
* Allow multi-line ticks
* Stricter DeepPartial definition
The previous definition resolved to `{}` (which can allow primitives) if it was given a function, so it was far too broad for any `Scriptable<>` properties.
* Grammar and writing style
* Updates to animation docs
Document the `fn` option, since it's in the type definitions.
Fix callback usage to match example code.
* Fix AnimationEvent parameter
The onProgress and onComplete events were mistakenly declared as taking the standard DOM AnimationEvent. (Should Chart.js's AnimationEvent be renamed to ChartAnimationEvent to avoid any possible ambiguity?)
* Allow false for disabling animations
* Add comments explaining the layout and usage of Rollup
Jukka Kurkela [Fri, 18 Dec 2020 17:36:38 +0000 (19:36 +0200)]
Make PointLabels color scriptable (#8194)
Jukka Kurkela [Fri, 18 Dec 2020 17:36:18 +0000 (19:36 +0200)]
Update defaults and types for tick stroke (#8195)
UrielMaD [Fri, 18 Dec 2020 17:35:13 +0000 (11:35 -0600)]
Radius validation for drawRadiusLine (#8191)
Evert Timberg [Thu, 17 Dec 2020 23:10:29 +0000 (18:10 -0500)]
Move tooltip plugin hooks to the core Plugin type (#8160)
* Move tooltip plugin hooks to the core
* Try and use declaration merging for Plugin type
* Merge Plugin types
Jukka Kurkela [Thu, 17 Dec 2020 20:18:02 +0000 (22:18 +0200)]
Hover: only update styles of changed elements (#8185)
Jukka Kurkela [Thu, 17 Dec 2020 20:16:55 +0000 (22:16 +0200)]
Reject pending promises when animation is updated (#8184)
* Reject pending promises when animation is updated
* Add tests
David Turbert [Wed, 16 Dec 2020 21:41:19 +0000 (22:41 +0100)]
Add ArcElement to getting-started.md (#8174)
* fix: add ArcElement to getting-started.md
* fix: add all possible imports
* fix: add text to integration.md
LeeLenaleee [Wed, 16 Dec 2020 21:40:10 +0000 (22:40 +0100)]
Remove dataset while hovered (#8181)
Salman Kazmi [Wed, 16 Dec 2020 15:35:54 +0000 (21:05 +0530)]
added comma to fix syntax issue (#8177)
Jukka Kurkela [Tue, 15 Dec 2020 06:50:13 +0000 (08:50 +0200)]
Fix legend alignment issues (#8168)
Jukka Kurkela [Mon, 14 Dec 2020 22:13:03 +0000 (00:13 +0200)]
ArcElement: Skip draw when radius is negative (#8170)
Jukka Kurkela [Mon, 14 Dec 2020 21:08:40 +0000 (23:08 +0200)]
Use correct color for legend labels (#8167)
* Legend colors fallback
* Update test
Jukka Kurkela [Mon, 14 Dec 2020 13:35:04 +0000 (15:35 +0200)]
Legend plugin cleanup (#8109)
* Legend plugin cleanup
* cc1
* cc2
* cc3
* start/stop
Josh Kelley [Mon, 14 Dec 2020 10:30:20 +0000 (05:30 -0500)]
Update docs for .resize() method (#8151)
See #7678 and #8149. (The `silent` parameter mentioned in the original 7678 no longer exists.)
Add JSDoc.
Fix some minor issues with grammar and coding style consistency.
Evert Timberg [Mon, 14 Dec 2020 10:04:10 +0000 (05:04 -0500)]
Quick exit the legend fit function when the legend is not displayed (#8161)
When the legend is not displayed, there are no guarantees that the
format of the options dictionary is correct. Rather than performing
computations and then exiting without using the results, we can instead
exit quickly since the size of the legend will be (0, 0) if not displayed
Evert Timberg [Mon, 14 Dec 2020 10:03:08 +0000 (05:03 -0500)]
Prevent double plugin registers from losing the list of plugins (#8162)
When `Chart.register()` was called twice in a row, the list of
plugin descriptors on the chart instance would be cleared. The
next chart update would then restart all of the plugins, not
knowing that they were already started. In the case of the Legend
and Title, this causes two boxes to appear in the layout system
thus drawing twice.
LeeLenaleee [Fri, 11 Dec 2020 15:52:54 +0000 (16:52 +0100)]
default values for element background and border color were wrong (#8156)
Josh Kelley [Thu, 10 Dec 2020 14:25:00 +0000 (09:25 -0500)]
Update docs on printing (#8149)
From what I can tell from testing locally, Chrome doesn't reliably trigger resize events for the final print layout, so using `.resize()` with no parameters doesn't generally work.
I'm not sure if there are circumstances in which the original docs' suggestion of using `.resize()` with no parameters can work; if the original text should be deleted, I can do so.
I also noticed that the TypeScript type definitions for `.resize()` mark the parameters as required, even though the implementation and docs don't require them.
Evert Timberg [Sun, 6 Dec 2020 23:17:22 +0000 (18:17 -0500)]
Respect the set locale for in the pie/doughnut tooltips (#8142)
LeeLenaleee [Sat, 5 Dec 2020 19:34:34 +0000 (20:34 +0100)]
fix default font color for legend (#8139)
* fix default font color for legend
* adjusted docs to be consistent with fontColor to color
Jukka Kurkela [Sat, 5 Dec 2020 15:57:19 +0000 (17:57 +0200)]
CI: Conditionally run steps based on changes (#8132)
* CI: Run the `Package` step only when docs change
* Advanced conditionals
* Conditional coveralls
* Fix bunch of typos
* remove coveralls finished condition
* Revert "remove coveralls finished condition"
* Add curlys
LeeLenaleee [Sat, 5 Dec 2020 15:55:19 +0000 (16:55 +0100)]
Clarification: barPercentage vs categoryPercentage (#8138)
Clarification of the docs to make it little less confusing after seeing the .1 hopefully.
Comes from #8137
dependabot[bot] [Fri, 4 Dec 2020 19:45:56 +0000 (21:45 +0200)]
Bump highlight.js from 10.3.1 to 10.4.1 (#8128)
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.3.1 to 10.4.1.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/10.3.1...10.4.1)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Jukka Kurkela [Fri, 4 Dec 2020 19:37:46 +0000 (21:37 +0200)]
Revert "New release workflow (#8127)" and fixes (#8131)
* Revert "New release workflow (#8127)" and fixes
* Bump version to 3.0.0-beta.7
Jukka Kurkela [Fri, 4 Dec 2020 18:23:01 +0000 (20:23 +0200)]
Update release.yml (#8130)
Jukka Kurkela [Fri, 4 Dec 2020 17:46:17 +0000 (19:46 +0200)]
Fix the needs job name (#8129)
Jukka Kurkela [Fri, 4 Dec 2020 17:18:31 +0000 (19:18 +0200)]
New release workflow (#8127)
* New release workflow
* Set current version
* Use org secret
lab900-marcel-samyn [Fri, 4 Dec 2020 06:25:43 +0000 (07:25 +0100)]
[v3] Add locale to ChartOptions type (#8118)
* Add locale to ChartOptions type
* Adds locale options documentation
* fixed typo
* changes links to number format, linking the constructor
* changes to a better sentence
* changes to better sentence (2)
Co-authored-by: stock <stocki.nail@gmail.com>
Jukka Kurkela [Wed, 2 Dec 2020 04:51:47 +0000 (06:51 +0200)]
Add new scale hooks for plugins (#8112)
* Add new scale hooks for plugins
* Add notes
* cc
* cancelability
Jukka Kurkela [Wed, 2 Dec 2020 04:51:33 +0000 (06:51 +0200)]
Fix CategoryScale.getValueForPixel with autoSkip (#8101)
LeeLenaleee [Mon, 30 Nov 2020 14:59:20 +0000 (15:59 +0100)]
Fix/area fill and chart titles (#8113)
* fixed fill for area chart stacked and title for charts where it wasn't in plugins yet
* Chart defined in utils
* added radar skip points example in the overview to go to
Wenfang [Sat, 28 Nov 2020 21:57:17 +0000 (05:57 +0800)]
Update performance.md (#8107)
fixed typo
Jukka Kurkela [Sat, 28 Nov 2020 20:57:45 +0000 (22:57 +0200)]
Add new hooks for plugins (#8103)
* Notify beforeUpdate on disabled plugins
cc?
cc2
cc3
typo
* init, unInit, enabled, disabled
self review :)
update the new hook signatures to unified
merge error
* Review update
* start/stop, cc
* types, jsdoc
* stop between destroy and uninstall
Jukka Kurkela [Sat, 28 Nov 2020 20:07:46 +0000 (22:07 +0200)]
LineElement: no fill by default (#8111)
* LineElement: no fill by default
* Update negative-times fixture
Mostafa Sameti [Sat, 28 Nov 2020 20:06:38 +0000 (23:36 +0330)]
fix color type & add background and border color (#8110)
Jukka Kurkela [Sat, 28 Nov 2020 07:45:43 +0000 (09:45 +0200)]
Unify signature of plugin hooks (#8102)
Jukka Kurkela [Thu, 26 Nov 2020 13:07:01 +0000 (15:07 +0200)]
Title plugin cleanup (#8104)
* Title plugin cleanup
* more cleanup
* cc
* center formula
* Fix / update sample
* Restore functionality on RTL page
Jukka Kurkela [Wed, 25 Nov 2020 06:50:12 +0000 (08:50 +0200)]
Move title, tooltip and legend to options.plugins (#8089)
* Move title, tooltip and legend to options.plugins
* Update tooltip.md
* Update legend.md and title.md
* Add migration notes
* typo
* Types
* Restore plurals
* One more s, restore tabs
* All plugins disabled
* lint
* cc
Jukka Kurkela [Tue, 24 Nov 2020 20:27:51 +0000 (22:27 +0200)]
Restore `datasets` namespace (revert 6955) (#8090)
Jukka Kurkela [Mon, 23 Nov 2020 22:58:03 +0000 (00:58 +0200)]
Disable all plugins when options.plugins = false (#8098)
Disabling all plugins when options.plugins = false
LeeLenaleee [Mon, 23 Nov 2020 21:37:34 +0000 (22:37 +0100)]
Fixed samples: area dataset (line), radar and logarithmic scale scatter (#8099)
Jukka Kurkela [Mon, 23 Nov 2020 21:13:45 +0000 (23:13 +0200)]
Fix disabling hover (#8097)
Jukka Kurkela [Mon, 23 Nov 2020 19:06:16 +0000 (21:06 +0200)]
Improve test coverage (#8087)
* Remove usage of currentStyle (IE only)
* Nothing is registered in root scope anymore
* Add some more tests for animations
* Add some more tests to defaults
Jukka Kurkela [Mon, 23 Nov 2020 13:17:40 +0000 (15:17 +0200)]
Update interpolation-modes sample to new defaults (#8093)
Jukka Kurkela [Fri, 20 Nov 2020 20:59:48 +0000 (22:59 +0200)]
Do not use offsetX/Y in shadow DOM (#8082)
Do not use offsetX/Y in shadow DOM
LeeLenaleee [Thu, 19 Nov 2020 20:33:59 +0000 (21:33 +0100)]
coppied to wrong place in file, backgroundColor should be in the data… (#8081)
* coppied to wrong place in file, backgroundColor should be in the dataset and not after the datasets array
* fixed indenting and color to be more in line with bublle and pie color
Jukka Kurkela [Thu, 19 Nov 2020 19:23:24 +0000 (21:23 +0200)]
Switch to eslint-plugin-es (#8075)
* Switch to eslint-plugin-es
* Restore eslint-config-chartjs
* Sort
Jukka Kurkela [Thu, 19 Nov 2020 18:59:24 +0000 (20:59 +0200)]
Align font options with CSS (#8066)
* Align font options with CSS
* Review comments
Jukka Kurkela [Thu, 19 Nov 2020 18:58:24 +0000 (20:58 +0200)]
Allow single parameter to Defaults.set (#8050)
* Allow single parameter to Defaults.set
* Review update
* Record
LeeLenaleee [Thu, 19 Nov 2020 13:25:39 +0000 (14:25 +0100)]
made scatter chart a lot better readable, removed unnecesarry notes (#8080)
Evert Timberg [Thu, 19 Nov 2020 13:10:26 +0000 (08:10 -0500)]
Rename uppercase types to camel case (#8074)
* Rename uppercase types to camel case
* Rename SCALES to TScale
Reanme DSE to TDatasetElement
Rename E to TElement
Jukka Kurkela [Thu, 19 Nov 2020 12:55:20 +0000 (14:55 +0200)]
Remove classic style extensions from docs/tests (#8076)
SaintMalik [Thu, 19 Nov 2020 12:54:49 +0000 (13:54 +0100)]
Fix url bug (#8072)
SaintMalik [Wed, 18 Nov 2020 12:57:59 +0000 (13:57 +0100)]
fix broken url in docs (#8070)
LeeLenaleee [Wed, 18 Nov 2020 12:55:41 +0000 (13:55 +0100)]
v2 note not nessecary in v3 docs and update example (#8071)
* v2 note not nessecary in v3 docs
* adjusted example
Co-authored-by: Jacco van den Berg <jacco@uniware.nl>
Jukka Kurkela [Tue, 17 Nov 2020 13:03:37 +0000 (15:03 +0200)]
Add missing import to styling.mdx (#8065)
Jukka Kurkela [Tue, 17 Nov 2020 03:02:34 +0000 (05:02 +0200)]
Remove set-env from actions (#8063)
* Remove set-env from CI
* Eanble macOs
* Another try on macOs, update npmpublish
* No xvfb-run on macOs
* Remove macos
Jukka Kurkela [Mon, 16 Nov 2020 20:05:29 +0000 (22:05 +0200)]
Update axis documentation (#8061)
Jukka Kurkela [Mon, 16 Nov 2020 20:01:47 +0000 (22:01 +0200)]
Enable bounds option to all cartesian axes (#8060)
Jukka Kurkela [Mon, 16 Nov 2020 19:59:53 +0000 (21:59 +0200)]
Unify cartesian scale tick order (#8062)
Jukka Kurkela [Mon, 16 Nov 2020 19:01:33 +0000 (21:01 +0200)]
Drop legacy browser support (#8009)
* Drop legacy browser support
* Docs
* Use rollup-plugin-istanbul for coverage
* exclude node_modules from coverage
* No cleanup() when doing coverage
Jukka Kurkela [Mon, 16 Nov 2020 18:58:13 +0000 (20:58 +0200)]
Add plugins to CoreChartOptions (#8048)
Jukka Kurkela [Mon, 16 Nov 2020 18:19:59 +0000 (20:19 +0200)]
Refactor/cleanup range option handling (#8057)
Jukka Kurkela [Sat, 14 Nov 2020 22:00:17 +0000 (00:00 +0200)]
CategoryScale: automatically add missing labels (#8053)
CategoryScale: automatically add missing labels
Jukka Kurkela [Sat, 14 Nov 2020 19:38:38 +0000 (21:38 +0200)]
Chart.register: preserve existing defaults (#8052)
Jukka Kurkela [Fri, 13 Nov 2020 22:35:40 +0000 (00:35 +0200)]
Events: Only render when needed (#8049)