]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
3 years agoFix control points on animated line w/o border (#9592)
Jukka Kurkela [Thu, 2 Sep 2021 00:39:48 +0000 (03:39 +0300)] 
Fix control points on animated line w/o border (#9592)

Co-authored-by: Jukka Kurkela <jukka.kurkela@scmbest.fi>
3 years agoAdd missing typings of helpers, add automatic test (#9570)
Jukka Kurkela [Thu, 2 Sep 2021 00:27:26 +0000 (03:27 +0300)] 
Add missing typings of helpers, add automatic test (#9570)

* Add missing typings of helpers, add automatic test

* Add error handling to autogen.js

3 years agoDetect attach/detach from any level (#9557)
Jukka Kurkela [Wed, 18 Aug 2021 22:14:09 +0000 (01:14 +0300)] 
Detect attach/detach from any level (#9557)

3 years agoUpdate to 3.5.1 version number (#9565) v3.5.1
Evert Timberg [Wed, 18 Aug 2021 12:12:37 +0000 (08:12 -0400)] 
Update to 3.5.1 version number (#9565)

3 years ago[feat] support crossAlign on mirrored y-axis (#9563)
Alex Van Liew [Wed, 18 Aug 2021 11:48:36 +0000 (04:48 -0700)] 
[feat] support crossAlign on mirrored y-axis (#9563)

3 years agoRemove chart.scale property (always undefined) (#9556)
Jukka Kurkela [Tue, 17 Aug 2021 11:52:04 +0000 (14:52 +0300)] 
Remove chart.scale property (always undefined) (#9556)

3 years agoFix broken link. (#9555)
Ewan Mellor [Tue, 17 Aug 2021 09:29:18 +0000 (02:29 -0700)] 
Fix broken link. (#9555)

Fix broken link from Creating Custom Tick Formats section to the Tick
API page.

3 years agoEnsure that docs have more width in the page (#9549)
Evert Timberg [Sat, 14 Aug 2021 17:17:48 +0000 (13:17 -0400)] 
Ensure that docs have more width in the page (#9549)

3 years agoGrid line z property in TS types (#9550)
Evert Timberg [Sat, 14 Aug 2021 17:17:12 +0000 (13:17 -0400)] 
Grid line z property in TS types (#9550)

3 years agoKeep track of parsed array changes when parsing===false (#9525)
Evert Timberg [Sat, 14 Aug 2021 13:07:58 +0000 (09:07 -0400)] 
Keep track of parsed array changes when parsing===false (#9525)

* Keep track of parsed array changes when parsing===false

* Code review feedback

3 years agoAdd number to the title scale padding as input type (#9546)
Jacco van den Berg [Fri, 13 Aug 2021 12:28:10 +0000 (14:28 +0200)] 
Add number to the title scale padding as input type (#9546)

3 years agoUpdate eslint settings for readable errors (#9534)
Jukka Kurkela [Wed, 11 Aug 2021 12:23:18 +0000 (15:23 +0300)] 
Update eslint settings for readable errors (#9534)

3 years agofix 2 broken links, clarify order property (#9516)
Jacco van den Berg [Sun, 8 Aug 2021 20:52:09 +0000 (22:52 +0200)] 
fix 2  broken links, clarify order property (#9516)

3 years agoAdd more details on legend sort function (#9524)
Evert Timberg [Sun, 8 Aug 2021 20:51:56 +0000 (16:51 -0400)] 
Add more details on legend sort function (#9524)

3 years agofixing typo in docs on axes labelling (#9503)
M4sterShake [Sun, 1 Aug 2021 04:02:44 +0000 (05:02 +0100)] 
fixing typo in docs on axes labelling (#9503)

Co-authored-by: Max <max.borkowski@reedbusiness.com>
3 years agoMove pointStyle types and update plugin link&render chart (#9479)
Jacco van den Berg [Fri, 30 Jul 2021 12:14:07 +0000 (14:14 +0200)] 
Move pointStyle types and update plugin link&render chart (#9479)

* Place canvasElement on next line to keep table clean

* move typing to global location, update plugin page

4 years agoTypes: Add `tooltip` to chart instance (#9490)
Jukka Kurkela [Wed, 28 Jul 2021 11:57:55 +0000 (14:57 +0300)] 
Types: Add `tooltip` to chart instance (#9490)

4 years agoFix _isPointInArea helper when no area is provided (#9489)
Jukka Kurkela [Wed, 28 Jul 2021 11:57:35 +0000 (14:57 +0300)] 
Fix _isPointInArea helper when no area is provided (#9489)

4 years agoShorthand labels key in getting started (#9465)
Yash Singh [Tue, 27 Jul 2021 20:48:14 +0000 (13:48 -0700)] 
Shorthand labels key in getting started (#9465)

* Shorthand labels key in getting started

* Change to longhand

4 years agoTypes: Change `context.chart` to plain `Chart` (#9477)
Jukka Kurkela [Tue, 27 Jul 2021 12:26:54 +0000 (15:26 +0300)] 
Types: Change `context.chart` to plain `Chart` (#9477)

4 years agoRemove index override, (#9469)
Jacco van den Berg [Tue, 27 Jul 2021 11:59:39 +0000 (13:59 +0200)] 
Remove index override, (#9469)

Make barchart more inline with v2 behaviour and other charts

4 years agoAdjust text to code example (#9475)
Niklas Noldin [Mon, 26 Jul 2021 17:15:39 +0000 (19:15 +0200)] 
Adjust text to code example (#9475)

The previous text explains that, in the example, the font color is set and overridden but the code sets and overrides the _font size_.

4 years agoUpdate charts.md (#9472)
Juan Cortés Ross [Mon, 26 Jul 2021 13:35:03 +0000 (15:35 +0200)] 
Update charts.md (#9472)

4 years agoBump version to 3.5.0, update deps (#9464) v3.5.0
Jukka Kurkela [Sun, 25 Jul 2021 11:56:33 +0000 (14:56 +0300)] 
Bump version to 3.5.0, update deps (#9464)

4 years agoUpdate radar dataset option typings (#9462)
Jukka Kurkela [Sat, 24 Jul 2021 18:35:13 +0000 (21:35 +0300)] 
Update radar dataset option typings (#9462)

4 years agoEnsure getPrototypeOf will not crash on plugin options with no scopes (#9431)
Evert Timberg [Sat, 24 Jul 2021 03:40:03 +0000 (23:40 -0400)] 
Ensure getPrototypeOf will not crash on plugin options with no scopes (#9431)

* Ensure getPrototypeOf will not crash on plugin options with no scopes

* Code review improvements

4 years agoFix DomPlatform.isAttached (#9448)
Jukka Kurkela [Fri, 23 Jul 2021 05:28:09 +0000 (08:28 +0300)] 
Fix DomPlatform.isAttached (#9448)

4 years agoAdds HTMLCanvasElement as possible value for pointStyle option (#9458)
stockiNail [Fri, 23 Jul 2021 05:26:49 +0000 (07:26 +0200)] 
Adds HTMLCanvasElement as possible value for pointStyle option (#9458)

4 years agoBar: add 'middle' option for borderSkipped (#9452)
Jukka Kurkela [Wed, 21 Jul 2021 11:13:45 +0000 (14:13 +0300)] 
Bar: add 'middle' option for borderSkipped (#9452)

* Bar: add 'middle' option for borderSkipped
* Split in 2

4 years agoAdd ability to hide specific data element (#9450)
Jukka Kurkela [Wed, 21 Jul 2021 11:08:02 +0000 (14:08 +0300)] 
Add ability to hide specific data element (#9450)

4 years agoAdd data/dataset indices to line segment context (#9451)
Jukka Kurkela [Wed, 21 Jul 2021 11:00:05 +0000 (14:00 +0300)] 
Add data/dataset indices to line segment context (#9451)

4 years agoApply segment styles with only single segment (#9447)
Jukka Kurkela [Tue, 20 Jul 2021 12:45:18 +0000 (15:45 +0300)] 
Apply segment styles with only single segment (#9447)

4 years agoFix interaction on partially visible bar (#9446)
Jukka Kurkela [Tue, 20 Jul 2021 11:57:56 +0000 (14:57 +0300)] 
Fix interaction on partially visible bar (#9446)

4 years agoTypescript 4.2+ compatibility (#9444)
Jukka Kurkela [Tue, 20 Jul 2021 11:55:51 +0000 (14:55 +0300)] 
Typescript 4.2+ compatibility (#9444)

4 years agoDon't draw points outside chartArea (#9443)
Jukka Kurkela [Tue, 20 Jul 2021 11:52:41 +0000 (14:52 +0300)] 
Don't draw points outside chartArea (#9443)

4 years agoFix: config.platform was ignored (#9442)
Jukka Kurkela [Tue, 20 Jul 2021 11:51:16 +0000 (14:51 +0300)] 
Fix: config.platform was ignored (#9442)

4 years agoAllow dataset specific ChartMeta type extensions (#9432)
Evert Timberg [Mon, 19 Jul 2021 17:33:18 +0000 (13:33 -0400)] 
Allow dataset specific ChartMeta type extensions (#9432)

4 years agoDefine bounds as a field common to all cartesian axes options (#9438)
Filip Borkiewicz [Mon, 19 Jul 2021 17:06:12 +0000 (17:06 +0000)] 
Define bounds as a field common to all cartesian axes options (#9438)

Associated with #9437.

4 years agoLinear scale handle min === max when abs(max) > Number.MAX_SAFE_INTEGER (#9433)
Evert Timberg [Sun, 18 Jul 2021 15:14:33 +0000 (11:14 -0400)] 
Linear scale handle min ===  max when abs(max) > Number.MAX_SAFE_INTEGER (#9433)

4 years agolower default value of grid z index so it draws behind chart elements (#9426)
Jacco van den Berg [Fri, 16 Jul 2021 15:16:31 +0000 (17:16 +0200)] 
lower default value of grid z index so it draws behind chart elements (#9426)

4 years agoProperly update stacks when datasets index changes (#9425)
Jukka Kurkela [Fri, 16 Jul 2021 11:15:54 +0000 (14:15 +0300)] 
Properly update stacks when datasets index changes (#9425)

4 years agoFix center axis title positions (#9413)
Evert Timberg [Thu, 15 Jul 2021 12:20:22 +0000 (08:20 -0400)] 
Fix center axis title positions (#9413)

* Fix the title positions for center positioned axes

* Handle center position for vertical axes

* Tests

4 years agoUpdate a failing fixture (#9414)
Jukka Kurkela [Wed, 14 Jul 2021 11:39:22 +0000 (14:39 +0300)] 
Update a failing fixture (#9414)

4 years agoLimit Math.asin inputs to the range [-1, 1] (#9410)
Evert Timberg [Wed, 14 Jul 2021 06:14:29 +0000 (02:14 -0400)] 
Limit Math.asin inputs to the range [-1, 1] (#9410)

4 years agoBar: inflate rects by 0.33px to avoid artifacts (#9399)
Jukka Kurkela [Tue, 13 Jul 2021 22:20:24 +0000 (01:20 +0300)] 
Bar: inflate rects by 0.33px to avoid artifacts (#9399)

* Bar: inflate rects by 0.33px to avoid artifacts
* Update fixture
* YAGNI

4 years agoAdd missing resizeDelay option to types (#9403)
Drew J. Sonne [Tue, 13 Jul 2021 17:43:21 +0000 (18:43 +0100)] 
Add missing resizeDelay option to types (#9403)

This option is defined in the documentation (https://www.chartjs.org/docs/master/configuration/responsive.html) and the native js code, but not listed in the types. This allows its use in typescript.

4 years agoFix bar direction when minBarLength is applied (#9400)
Jukka Kurkela [Tue, 13 Jul 2021 12:02:14 +0000 (15:02 +0300)] 
Fix bar direction when minBarLength is applied (#9400)

4 years agoFix stacked box dimension calculation with weights (#9394)
Jukka Kurkela [Mon, 12 Jul 2021 11:45:03 +0000 (14:45 +0300)] 
Fix stacked box dimension calculation with weights (#9394)

* Fix stacked box dimension calculation with weights

* Fix typo in filename

4 years agoLayout: support box stacking (#9364)
Jukka Kurkela [Sun, 11 Jul 2021 10:23:42 +0000 (13:23 +0300)] 
Layout: support box stacking (#9364)

* Layout: support box stacking

* Add stackWeight and sample

* Cleanup, update docs and types

* Avoid div0

* missing semi

4 years agoAdjust legend hitboxes when RTL and each item has a different size (#9353)
Evert Timberg [Sat, 10 Jul 2021 22:36:46 +0000 (18:36 -0400)] 
Adjust legend hitboxes when RTL and each item has a different size (#9353)

* Adjust legend hitboxes when RTL and
each item has a different size

* Add test for RTL legend hitboxes

4 years agoIndicate that `SubTitle` is a plugin in TS types (#9386)
Evert Timberg [Sat, 10 Jul 2021 13:26:37 +0000 (09:26 -0400)] 
Indicate that `SubTitle` is a plugin in TS types (#9386)

* Indicate that `SubTitle` is a plugin in TS types

* Export subtitle plugin options

4 years agoAdd SubTitle to the list of all esm imports (#9384)
Jacco van den Berg [Sat, 10 Jul 2021 12:09:33 +0000 (14:09 +0200)] 
Add SubTitle to the list of all esm imports (#9384)

4 years agoFix type linting for merge between two PRs (#9385)
Evert Timberg [Sat, 10 Jul 2021 12:08:27 +0000 (08:08 -0400)] 
Fix type linting for merge between two PRs (#9385)

4 years agoResolve warnings from typings (#9363)
Jukka Kurkela [Fri, 9 Jul 2021 11:03:11 +0000 (14:03 +0300)] 
Resolve warnings from typings (#9363)

4 years agoPoint label specific scriptable context (#9373)
Evert Timberg [Fri, 9 Jul 2021 10:57:55 +0000 (06:57 -0400)] 
Point label specific scriptable context (#9373)

4 years agoImprove LegendElement and TooltipItem type definitions (#9376)
Evert Timberg [Fri, 9 Jul 2021 10:57:30 +0000 (06:57 -0400)] 
Improve LegendElement and TooltipItem type definitions (#9376)

* Document LegendElement properties in TS

* Pass chart type to LegendElement

* Update tooltip item dataset type

4 years agoDecimation: Prevent buffer overflow (#9367)
Jukka Kurkela [Wed, 7 Jul 2021 21:45:31 +0000 (00:45 +0300)] 
Decimation: Prevent buffer overflow (#9367)

4 years agoAdd 'shape' mode for filler-plugin (#9360)
Jukka Kurkela [Mon, 5 Jul 2021 21:03:19 +0000 (00:03 +0300)] 
Add 'shape' mode for filler-plugin (#9360)

4 years agoAdding threshold option to decimation plugin (#9327)
Nico-DF [Sun, 4 Jul 2021 17:19:35 +0000 (19:19 +0200)] 
Adding threshold option to decimation plugin (#9327)

4 years agoBump version to 3.4.1 (#9350) v3.4.1
Jukka Kurkela [Sun, 4 Jul 2021 11:29:42 +0000 (14:29 +0300)] 
Bump version to 3.4.1 (#9350)

4 years agoUpdate deps (#9349)
Jukka Kurkela [Sun, 4 Jul 2021 11:27:00 +0000 (14:27 +0300)] 
Update deps (#9349)

4 years agoAdd type tests for float bar / object data arrays (#9348)
Jukka Kurkela [Sun, 4 Jul 2021 11:26:22 +0000 (14:26 +0300)] 
Add type tests for float bar / object data arrays (#9348)

4 years agoTimeseries: support panning (#9345)
Jukka Kurkela [Sat, 3 Jul 2021 15:44:44 +0000 (18:44 +0300)] 
Timeseries: support panning (#9345)

* Timeseries: support panning

* Update

* Missing semi, reduntant variables.

* cc

4 years agoAccount for floating point error in niceNum helper (#9343)
Evert Timberg [Thu, 1 Jul 2021 19:07:32 +0000 (15:07 -0400)] 
Account for floating point error in niceNum helper (#9343)

* Account for floating point error in niceNum helper
* Better solution

4 years agoEnable pointStyle for doughnut, pie, and polar area charts (#9341)
Evert Timberg [Thu, 1 Jul 2021 18:15:06 +0000 (14:15 -0400)] 
Enable pointStyle for doughnut, pie, and polar area charts (#9341)

* Enable pointStyle for doughnut, pie, and polar area charts

* Fix whitespace

4 years agoEnsure correct item is clicked when a horizontal legend is in RTL mode (#9340)
Evert Timberg [Thu, 1 Jul 2021 18:14:05 +0000 (14:14 -0400)] 
Ensure correct item is clicked when a horizontal legend is in RTL mode (#9340)

4 years agoFixes spacing options in the table (#9338)
stockiNail [Thu, 1 Jul 2021 15:09:44 +0000 (17:09 +0200)] 
Fixes spacing options in the table (#9338)

4 years agoUpdate types with more possible events (#9336)
Evert Timberg [Thu, 1 Jul 2021 13:37:49 +0000 (09:37 -0400)] 
Update types with more possible events (#9336)

4 years agoFix typing of the isoWeekday field (#9330)
Jacco van den Berg [Thu, 1 Jul 2021 12:24:40 +0000 (14:24 +0200)] 
Fix typing of the isoWeekday field (#9330)

4 years agoFix comma causing Terser issue (#9326)
Tycho Bokdam [Mon, 28 Jun 2021 19:37:21 +0000 (21:37 +0200)] 
Fix comma causing Terser issue (#9326)

4 years agoBump to version 3.4.0 (#9322) v3.4.0
Evert Timberg [Sat, 26 Jun 2021 16:04:20 +0000 (12:04 -0400)] 
Bump to version 3.4.0 (#9322)

4 years agoClarify how to import and use the helper functions with bundlers (#9319)
Jacco van den Berg [Fri, 25 Jun 2021 22:34:41 +0000 (00:34 +0200)] 
Clarify how to import and use the helper functions with bundlers (#9319)

4 years agofix typings (#9318)
Алексей Дорохов [Fri, 25 Jun 2021 12:07:47 +0000 (19:07 +0700)] 
fix typings (#9318)

Co-authored-by: Aleksey Dorokhov <aleksey.dorokhov@x5.ru>
4 years agoresolves #9316 (#9317)
Jacco van den Berg [Fri, 25 Jun 2021 12:07:11 +0000 (14:07 +0200)] 
resolves #9316 (#9317)

4 years agoFix broken link (#9315)
Ben Lumley [Fri, 25 Jun 2021 11:08:38 +0000 (12:08 +0100)] 
Fix broken link (#9315)

4 years agoDocs: describe catching events with plugin (#9296)
Jukka Kurkela [Sun, 20 Jun 2021 17:11:30 +0000 (20:11 +0300)] 
Docs: describe catching events with plugin (#9296)

4 years agoNew plugin: subtitle (#9294)
Jukka Kurkela [Sun, 20 Jun 2021 11:34:55 +0000 (14:34 +0300)] 
New plugin: subtitle (#9294)

* New plugin: subtitle

* Fix naive error for multiple charts

4 years agoresolve auto register typescript failure (#9292)
Jacco van den Berg [Sun, 20 Jun 2021 11:31:53 +0000 (13:31 +0200)] 
resolve auto register typescript failure (#9292)

4 years agoLegend: fix layout padding handling (#9290)
Jukka Kurkela [Sat, 19 Jun 2021 22:31:33 +0000 (01:31 +0300)] 
Legend: fix layout padding handling (#9290)

4 years agoBar: ignore not-grouped bars from group bar count (#9291)
Jukka Kurkela [Sat, 19 Jun 2021 22:28:05 +0000 (01:28 +0300)] 
Bar: ignore not-grouped bars from group bar count (#9291)

4 years agoFiller: skip NaN points from end of segment (#9287)
Jukka Kurkela [Fri, 18 Jun 2021 19:08:36 +0000 (22:08 +0300)] 
Filler: skip NaN points from end of segment (#9287)

4 years agoRefactor radialLinear scale and renderText helper (#9276)
Jukka Kurkela [Fri, 18 Jun 2021 18:12:27 +0000 (21:12 +0300)] 
Refactor radialLinear scale and renderText helper (#9276)

* Refactor radialLinear scale and renderText helper
* Undo the big move to make review possible

4 years agoApply maxTicksLimit to grid when ticks are hidden (#9277)
Jukka Kurkela [Fri, 18 Jun 2021 18:11:55 +0000 (21:11 +0300)] 
Apply maxTicksLimit to grid when ticks are hidden (#9277)

4 years agoFix: Don't use clip/unclipArea when `clip: false` (#9286)
Jukka Kurkela [Fri, 18 Jun 2021 18:11:33 +0000 (21:11 +0300)] 
Fix: Don't use clip/unclipArea when `clip: false` (#9286)

4 years agoadded fill type to line in options object and to radar dataset options (#9284)
Jacco van den Berg [Fri, 18 Jun 2021 11:20:13 +0000 (13:20 +0200)] 
added fill type to line in options object and to radar dataset options (#9284)

4 years agoFix type definitions for `getPixelForValue` (#9263)
Josh Kelley [Mon, 14 Jun 2021 04:49:27 +0000 (00:49 -0400)] 
Fix type definitions for `getPixelForValue` (#9263)

Update docs: From what I can tell, the `index` parameter was re-introduced as part of the new `normalized` option.

4 years agoDocs: Add copy button to code blocks (#9262)
Jukka Kurkela [Sun, 13 Jun 2021 11:40:51 +0000 (14:40 +0300)] 
Docs: Add copy button to code blocks (#9262)

4 years agoFix updating of active elements (#9261)
Jukka Kurkela [Sat, 12 Jun 2021 18:19:33 +0000 (21:19 +0300)] 
Fix updating of active elements (#9261)

4 years agoReplace [...set] with Array.from(set) (#9260)
Evert Timberg [Sat, 12 Jun 2021 17:34:54 +0000 (13:34 -0400)] 
Replace [...set] with Array.from(set) (#9260)

4 years ago`null` or `undefined` should skip grid lines in the time scale (#9252)
Evert Timberg [Sat, 12 Jun 2021 14:47:14 +0000 (10:47 -0400)] 
`null` or `undefined` should skip grid lines in the time scale (#9252)

* `null` or `undefined` should skip grid lines in the time scale

* Refactor implementation per code review

4 years agoDocs: fix broken and inconsistent links (#9237)
Jukka Kurkela [Sat, 5 Jun 2021 12:04:57 +0000 (15:04 +0300)] 
Docs: fix broken and inconsistent links (#9237)

4 years agoFix broken guidelines url in PR template (#9228)
jiho lee [Thu, 3 Jun 2021 19:34:54 +0000 (04:34 +0900)] 
Fix broken guidelines url in PR template (#9228)

4 years agoadd missing types to legend (#9226)
Jacco van den Berg [Thu, 3 Jun 2021 12:04:04 +0000 (14:04 +0200)] 
add missing types to legend (#9226)

4 years agoBarheight no longer undefined (#9208)
Jacco van den Berg [Wed, 2 Jun 2021 19:48:42 +0000 (21:48 +0200)] 
Barheight no longer undefined (#9208)

4 years agocomplete custom legend click sample to also work for pie/doughnut charts (#9219)
Jacco van den Berg [Wed, 2 Jun 2021 19:48:04 +0000 (21:48 +0200)] 
complete custom legend click sample to also work for pie/doughnut charts (#9219)

4 years agoAdd explanation on how to run the samples locally (#9207)
Jacco van den Berg [Wed, 2 Jun 2021 19:47:16 +0000 (21:47 +0200)] 
Add explanation on how to run the samples locally (#9207)

* add explenation on how to run the samples locally

* Remove unecesarry parts from link

4 years agoFix rtl legend text alignment (#9199)
Evert Timberg [Tue, 1 Jun 2021 15:36:55 +0000 (11:36 -0400)] 
Fix rtl legend text alignment (#9199)

* Start fixing RTL

* Broken test

* Fix right alignment for horizontal legends

4 years agoTick backdrop padding is not scriptable (#9191)
Evert Timberg [Sun, 30 May 2021 20:59:49 +0000 (16:59 -0400)] 
Tick backdrop padding is not scriptable (#9191)

* Tick backdrop padding is not scriptable
* Remove unneeded change
* Update _scriptable for callback

4 years agoMake sure data is parsed before updateElements (#9187)
Jukka Kurkela [Sun, 30 May 2021 18:51:11 +0000 (21:51 +0300)] 
Make sure data is parsed before updateElements (#9187)

* Make sure data is parsed before updateElements
* Add test

4 years agoFix error when swapping dataset locations (#9183)
Jukka Kurkela [Sun, 30 May 2021 11:39:00 +0000 (14:39 +0300)] 
Fix error when swapping dataset locations (#9183)