]>
git.ipfire.org Git - thirdparty/Chart.js.git/log
Evert Timberg [Sun, 25 Oct 2020 14:38:41 +0000 (10:38 -0400)]
Enable suggestedMin and suggestedMax setts for logarithmic axes (#7955)
Evert Timberg [Sun, 25 Oct 2020 14:27:54 +0000 (10:27 -0400)]
Update stacked line sample to remove duplicate dataset names (#7957)
Evert Timberg [Sat, 24 Oct 2020 22:30:44 +0000 (18:30 -0400)]
Update category scale labels types to include string[][] (#7953)
Jukka Kurkela [Sat, 24 Oct 2020 15:37:37 +0000 (18:37 +0300)]
Move config handling to a dedicated script (#7939)
* Split core.config.js out of core.controller.js
* Remove side effects from config.js
* Turn config into a class
* Refactor config merging as includeDefaults
Jukka Kurkela [Sat, 24 Oct 2020 15:36:31 +0000 (18:36 +0300)]
Add args.mode to before/after update plugin hooks (#7949)
Jukka Kurkela [Thu, 22 Oct 2020 14:45:17 +0000 (17:45 +0300)]
Switch from bundlewatch to compressed-size (#7943)
Switch from bundlewatch to compressed-size
Jukka Kurkela [Wed, 21 Oct 2020 17:30:55 +0000 (20:30 +0300)]
Add *.json to .editorconfig (#7941)
* Add *.json to .editorconfig
* Modify bundlewatch
Jukka Kurkela [Wed, 21 Oct 2020 17:14:52 +0000 (20:14 +0300)]
Add bundlewatch (#7940)
* Add bundlewatch
Jukka Kurkela [Wed, 21 Oct 2020 12:13:27 +0000 (15:13 +0300)]
Rename showLines to showLine (#7936)
Evert Timberg [Tue, 20 Oct 2020 12:18:56 +0000 (08:18 -0400)]
Rename elements to mark as elements, i.e. Arc -> ArcElement (#7924)
* Rename elements to mark as elements, i.e. Arc -> ArcElement
* Rename RectangleElement to BarElement
* Also updates options.elements.rectangle to options.elements.bar
Jukka Kurkela [Mon, 19 Oct 2020 11:24:06 +0000 (14:24 +0300)]
Add interaction options (#7922)
* Add interaction options
* Add migration note
Evert Timberg [Mon, 19 Oct 2020 05:07:03 +0000 (01:07 -0400)]
Add example of event to data values (#7925)
SaintMalik [Sun, 18 Oct 2020 18:30:05 +0000 (19:30 +0100)]
Fix broken urls in docs (#7912)
Evert Timberg [Sun, 18 Oct 2020 18:16:20 +0000 (14:16 -0400)]
Block incorrect keys in merge code to prevent prototype pollution (#7919)
* Port fix from v2
* Port test
* Test both merge and mergeIf
Jukka Kurkela [Sun, 18 Oct 2020 17:31:01 +0000 (20:31 +0300)]
Use Object.create(null) as `merge` target, to prevent prototype pollution (#7917)
Use Object.create(null) as merge target to prevent polluting `Object.prototype`
Jukka Kurkela [Sun, 18 Oct 2020 16:46:55 +0000 (19:46 +0300)]
Update dependencies (#7915)
Takuya Uehara [Sun, 18 Oct 2020 13:54:39 +0000 (22:54 +0900)]
Remove area inclusion check when rendering points (#7910)
paul cheung [Sun, 18 Oct 2020 13:52:56 +0000 (21:52 +0800)]
fix some typos (#7914)
Evert Timberg [Sun, 18 Oct 2020 13:51:48 +0000 (09:51 -0400)]
Reduce tooltip implied padding at top and bottom edges of the canvas (#7908)
* Allow the tooltip to get closer to the canvas edge
Closer to the top & bottom by considering (height/2) instead of height.
* Update missing options in TS types
* Remove unneeded brackets
paul cheung [Sun, 18 Oct 2020 13:35:21 +0000 (21:35 +0800)]
some minor typo fix (#7913)
Jukka Kurkela [Sun, 18 Oct 2020 13:27:29 +0000 (16:27 +0300)]
Stop deploying docs / drafting releases from forks (#7911)
Jukka Kurkela [Sun, 18 Oct 2020 13:26:44 +0000 (16:26 +0300)]
Fix version numbers in Developers section of docs (#7909)
Yash Singh [Sun, 18 Oct 2020 13:26:04 +0000 (06:26 -0700)]
Added in note for browserslist (#7907)
Matthew Crumley [Sun, 18 Oct 2020 03:52:56 +0000 (23:52 -0400)]
Fix Maximum call stack size exception in _computeLabelSizes (#7906)
Issue #7881
Evert Timberg [Sat, 17 Oct 2020 20:15:40 +0000 (16:15 -0400)]
Bar chart base value overrides (#7904)
* Bar chart base value overrides
* Ensure that `base` is marked as indexable and scriptable in the docs
Evert Timberg [Sat, 17 Oct 2020 19:46:56 +0000 (15:46 -0400)]
Ability to fill a line from a specified value along an axis (#7905)
Evert Timberg [Sat, 17 Oct 2020 19:12:34 +0000 (15:12 -0400)]
Document and remove APIs that can be replaced by it (#7900)
Yash Singh [Sat, 17 Oct 2020 19:07:52 +0000 (12:07 -0700)]
Renamed .browserlistrc -> .browserslistrc (#7902)
Evert Timberg [Sat, 17 Oct 2020 14:18:45 +0000 (10:18 -0400)]
Merge branch 'saintmalik-fix-url-bug'
Evert Timberg [Sat, 17 Oct 2020 13:12:25 +0000 (09:12 -0400)]
Undo link change that did not work locally
Saintmalik [Sat, 17 Oct 2020 06:16:43 +0000 (06:16 +0000)]
Fix broken url in docs
Saintmalik [Sat, 17 Oct 2020 00:01:52 +0000 (00:01 +0000)]
Fix broken url in docs
Jukka Kurkela [Fri, 16 Oct 2020 14:32:37 +0000 (17:32 +0300)]
Fix: beginAtZero for logarighmic (#7899)
Jukka Kurkela [Fri, 16 Oct 2020 12:04:22 +0000 (15:04 +0300)]
Share min sample size with all bars on same scale (#7897)
Share min sample size with all bars on same scale
Jukka Kurkela [Fri, 16 Oct 2020 11:53:13 +0000 (14:53 +0300)]
Remove circular dependencies from helpers (#7898)
Evert Timberg [Fri, 16 Oct 2020 11:40:49 +0000 (07:40 -0400)]
Expand filename (#7893)
* Fix double env
* Properly expand name in attach step
* Update maintaining docs
Evert Timberg [Thu, 15 Oct 2020 21:00:28 +0000 (17:00 -0400)]
Fix double env (#7892)
Evert Timberg [Thu, 15 Oct 2020 20:37:38 +0000 (16:37 -0400)]
Update workflow to use GitHub releaes (#7891)
Evert Timberg [Wed, 14 Oct 2020 12:27:54 +0000 (08:27 -0400)]
Shorten alignment settings for axes (#7886)
* Rename crossAlignment to crossAlign
* Update alignment to align for cartesian axes
Jukka Kurkela [Wed, 14 Oct 2020 10:55:06 +0000 (13:55 +0300)]
Tune release-drafter settings (#7884)
Evert Timberg [Wed, 14 Oct 2020 10:53:12 +0000 (06:53 -0400)]
Ensure scripts are marked as executable in git (#7882)
Evert Timberg [Tue, 13 Oct 2020 21:12:19 +0000 (17:12 -0400)]
Remove release branch workflow (#7827)
* GitHub actions uses locked install for CI
* Add initial GitHub action to publish to NPM
* Detect the NPM tag (latest vs next) depending on the git tag
* Deploy docs from releases & master commits
* Remove Travis CI
* Update repo badge to use actions status
* Remove Travis env vars and update docs-config to take a parameter
* Update publish script regex to match other scripts
* Deploy docs action only runs in one spot
Jukka Kurkela [Tue, 13 Oct 2020 20:18:33 +0000 (23:18 +0300)]
Update release-drafter.yml (#7879)
Jukka Kurkela [Tue, 13 Oct 2020 19:34:47 +0000 (22:34 +0300)]
Add release-drafter (#7878)
* Add release-drafter
* Review feedback
Tony Martinez [Mon, 12 Oct 2020 22:06:07 +0000 (15:06 -0700)]
docs: Grammar fixes for cartesian and radial docs (#7875)
Evert Timberg [Mon, 12 Oct 2020 14:56:18 +0000 (10:56 -0400)]
Update custom tooltips to work with multiple charts on a page (#7868)
Evert Timberg [Mon, 12 Oct 2020 14:56:03 +0000 (10:56 -0400)]
Polar Area `elements.arc.angle` option now returns degrees (#7871)
* Polar Area `elements.arc.angle` option now returns degrees
* Update wording of migration docs
Evert Timberg [Mon, 12 Oct 2020 14:22:55 +0000 (10:22 -0400)]
Ability to toggle individual bar visibility (#7870)
Evert Timberg [Mon, 12 Oct 2020 14:22:13 +0000 (10:22 -0400)]
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
Mike Carter [Sun, 11 Oct 2020 15:34:52 +0000 (16:34 +0100)]
Fix typo in const name (#7872)
Evert Timberg [Sat, 10 Oct 2020 15:38:55 +0000 (11:38 -0400)]
Cartesian axis text alignment (#7846)
* Generate textBaseline per tick label
* Enable configuration of tick alignment
* Add image based tests of text alignment options
Evert Timberg [Fri, 9 Oct 2020 21:21:34 +0000 (17:21 -0400)]
Add tooltip positioning sample (#7865)
Jukka Kurkela [Wed, 7 Oct 2020 21:37:10 +0000 (00:37 +0300)]
beginAtZero support for logarithmic (#7862)
Jukka Kurkela [Tue, 6 Oct 2020 11:41:16 +0000 (14:41 +0300)]
Add maxWidth/maxHeight options for legend (#7852)
Evert Timberg [Tue, 6 Oct 2020 11:33:24 +0000 (07:33 -0400)]
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
Evert Timberg [Tue, 6 Oct 2020 02:15:38 +0000 (22:15 -0400)]
Enable custom sorting of the legend items (#7851)
Evert Timberg [Mon, 5 Oct 2020 21:14:38 +0000 (17:14 -0400)]
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.
Jukka Kurkela [Mon, 5 Oct 2020 13:03:16 +0000 (16:03 +0300)]
Normalize context creation for option resolution (#7847)
* Normalize context creation for option resolution
* Pass mode to _computeAngle
Jukka Kurkela [Mon, 5 Oct 2020 12:37:12 +0000 (15:37 +0300)]
Limit pixel values further to 16bit integer range (#7848)
Evert Timberg [Sun, 4 Oct 2020 15:08:38 +0000 (11:08 -0400)]
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
Evert Timberg [Sun, 4 Oct 2020 11:49:14 +0000 (07:49 -0400)]
JS test files should have tabs to correctly lint (#7844)
emmcbd [Sat, 3 Oct 2020 20:48:22 +0000 (22:48 +0200)]
Remove enum types (#7841)
* Remove type enum
* Add declare keyword to UpdateModeEnum
Evert Timberg [Sat, 3 Oct 2020 20:47:39 +0000 (16:47 -0400)]
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
Jukka Kurkela [Fri, 2 Oct 2020 12:15:47 +0000 (15:15 +0300)]
Clone cached options if enableOptionSharing!=true (#7837)
Clone cached options if enableOptionSharing!=true
Jukka Kurkela [Fri, 2 Oct 2020 12:13:04 +0000 (15:13 +0300)]
Use full height for fullWidth box when left/right (#7836)
Use full height for fullWidth box when left/right
Jukka Kurkela [Fri, 2 Oct 2020 12:11:01 +0000 (15:11 +0300)]
Fix tooltip font options in sample (#7835)
Evert Timberg [Thu, 1 Oct 2020 12:50:01 +0000 (08:50 -0400)]
The docs build to the dist folder but should not be packaged (#7832)
Evert Timberg [Thu, 1 Oct 2020 12:47:09 +0000 (08:47 -0400)]
Allow contextmenu (right click) events to trigger the onClick handler (#7828)
Evert Timberg [Thu, 1 Oct 2020 12:34:37 +0000 (08:34 -0400)]
Include dist/chunks in the NPM package (#7830)
* Include all files in the dist folder
* Bump version for beta3
* Update lockfile
Jukka Kurkela [Wed, 30 Sep 2020 12:17:42 +0000 (15:17 +0300)]
Bump version to 3.0.0-beta.2 (#7822)
Jukka Kurkela [Mon, 28 Sep 2020 13:51:28 +0000 (16:51 +0300)]
Make dataset animations obey chart level disable (#7820)
Samuel Gratzl [Mon, 28 Sep 2020 13:11:55 +0000 (15:11 +0200)]
flat helpers (#7806)
* generate a flat helpers package
* move helpers built files to dist
* upgrade docs for flat helpers
Jukka Kurkela [Sat, 26 Sep 2020 17:18:35 +0000 (20:18 +0300)]
Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
emmcbd [Wed, 23 Sep 2020 12:43:33 +0000 (14:43 +0200)]
Minor type fixes (#7812)
Jukka Kurkela [Sun, 20 Sep 2020 20:46:55 +0000 (23:46 +0300)]
Fix: Update/draw only visible -regression (#7808)
Jukka Kurkela [Tue, 15 Sep 2020 22:57:31 +0000 (01:57 +0300)]
[perf] Update/draw only visible line/points (#7793)
* Restore count parameter to updateElements
* [perf] Update/draw only visible line/points
* CC
Jukka Kurkela [Tue, 15 Sep 2020 19:33:59 +0000 (22:33 +0300)]
Limit pixel values to 32bit integer range (#7800)
Jukka Kurkela [Mon, 14 Sep 2020 18:40:19 +0000 (21:40 +0300)]
Fix some CC issues (#7796)
* Fix some CC issues
* Merge _lookup, _lookupByKey, _rlookupByKey
* Remove TODO from types
* Merge TRBL logics
* Merge getMaximumWidth and getMaximumHeight
Jukka Kurkela [Mon, 14 Sep 2020 15:37:29 +0000 (18:37 +0300)]
Cache event offset coordinates (#7795)
Jukka Kurkela [Mon, 14 Sep 2020 15:36:35 +0000 (18:36 +0300)]
Merge x/y interaction mode functions (#7794)
LAU [Mon, 14 Sep 2020 13:57:50 +0000 (10:57 -0300)]
Better error message when importing charts incorrectly. (#7790)
* Created a better error message when chartjs can't find an element in the DOM.
Also, prevented an exception when trying to find the canvas assuming is an array. When it could also be null.
* Exception is not thrown anymore in getCanvas. Now this pr only prevents the
item.lenght exception and logs a better error when a chart cant be created.
* Deleted error description because i forgot chartjs is used in varois other ways than importing, also used isArray from helpers.core
* isArray check deleted because the type of the dom element received in getCanvas could be not only an array.
Co-authored-by: Lautaro Alonso Urtiaga <lautaro.urtiaga@10pines.com>
emmcbd [Mon, 14 Sep 2020 13:57:00 +0000 (15:57 +0200)]
Strong typings for scales and datasets in options (#7791)
Jukka Kurkela [Sun, 13 Sep 2020 21:20:14 +0000 (00:20 +0300)]
Fix: relative position in FF (#7792)
* Fix: relative position in FF
* Add tests
xr0master [Sat, 12 Sep 2020 12:46:17 +0000 (15:46 +0300)]
Merge Chart instance with Chart factory (#7783)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
emmcbd [Sat, 12 Sep 2020 00:18:21 +0000 (02:18 +0200)]
Strong chart object and properties typing (#7782)
* Strong chart object and chart creation typing
* Handle mixed charts
* Add documentation
Jukka Kurkela [Fri, 11 Sep 2020 14:46:25 +0000 (17:46 +0300)]
Fix hover-out regression (#7785)
xr0master [Fri, 11 Sep 2020 11:32:11 +0000 (14:32 +0300)]
interfaces.d: fix a wrong place of Option infer (#7770)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
Jukka Kurkela [Thu, 10 Sep 2020 21:53:15 +0000 (00:53 +0300)]
[types] parsing is not part of IChartData (#7778)
xr0master [Wed, 9 Sep 2020 01:27:08 +0000 (04:27 +0300)]
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>
stockiNail [Mon, 7 Sep 2020 20:19:45 +0000 (22:19 +0200)]
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
emmcbd [Sun, 6 Sep 2020 20:43:38 +0000 (22:43 +0200)]
Type fixes (#7759)
* Some type fixes
* Fix missing property on tooltip option type
Evert Timberg [Sun, 6 Sep 2020 13:46:41 +0000 (09:46 -0400)]
Update pull request template contributing docs link (#7765)
Jukka Kurkela [Fri, 4 Sep 2020 20:49:38 +0000 (23:49 +0300)]
Cache Intl.NumberFormat instances (#7755)
* Update dependencies
* Cache Intl.NumberFormat instances
Jukka Kurkela [Fri, 4 Sep 2020 20:47:36 +0000 (23:47 +0300)]
Fix: update chart when attached (#7758)
Jukka Kurkela [Fri, 4 Sep 2020 20:47:08 +0000 (23:47 +0300)]
Fix the parameter order of before/afterEvent (#7757)
Jukka Kurkela [Fri, 4 Sep 2020 20:46:44 +0000 (23:46 +0300)]
Remove duplicate code, clearer parameter names (#7756)
Jukka Kurkela [Thu, 3 Sep 2020 15:45:57 +0000 (18:45 +0300)]
Chart.register instead of Chart.plugins.register (#7753)
Samuel Gratzl [Wed, 2 Sep 2020 12:10:19 +0000 (14:10 +0200)]
Fix Invalid Typescript Types (#7748)
Jukka Kurkela [Wed, 2 Sep 2020 12:09:39 +0000 (15:09 +0300)]
Reduce code duplication and sort generated ticks (#7747)
* Reduce code duplication and sort generated ticks
* Add test
Jukka Kurkela [Mon, 31 Aug 2020 12:39:26 +0000 (15:39 +0300)]
Bump version for beta release of v3 (#7743)
* Bump version for beta release of v3
* What is it with the http://