]>
git.ipfire.org Git - thirdparty/Chart.js.git/log
Jukka Kurkela [Thu, 23 Dec 2021 18:47:36 +0000 (20:47 +0200)]
radialLinear: fix positioning & scaling (#10021)
* radialLinear: fix positioning & scaling
* bloody pixels
* better radar fixtures
Jacco van den Berg [Thu, 23 Dec 2021 07:48:21 +0000 (08:48 +0100)]
radialLinear: fix getIndexAngle when there are no labels (left) (#10020)
* Resolve animation if indexAngle is NaN
* make it private
* add test
* use chart.js helper instead of own logic
* implement feedback
* remove extra line
* my precious bits
Jukka Kurkela [Wed, 22 Dec 2021 21:09:54 +0000 (23:09 +0200)]
radialLinear: Hide pointLabels of hidden data (#10018)
* radialLinear: Hide pointLabels of hidden data
* filter after map
Jacco van den Berg [Wed, 22 Dec 2021 13:59:58 +0000 (14:59 +0100)]
Docs/Add sample for centered point labels (#10013)
* Add sample for centered point labels
* update chart title
* link to sample for more clarity from property
t-mangoe [Tue, 21 Dec 2021 18:27:07 +0000 (03:27 +0900)]
Add centerPointLabels option for linear radial scale (#9949)
* center point labels to slices in polar chart
* remove unnecessary comments
* put the code together in one line
* fix the code according to the code review
* Undo changes related to the createContext function
* add documentation and types.
Jukka Kurkela [Thu, 16 Dec 2021 22:34:53 +0000 (00:34 +0200)]
Fix setActiveElements behavior after a mouse event (#9992)
* Fix setActiveElements behavior after a mouse event
* Better variable name
Doug Brunner [Thu, 16 Dec 2021 12:34:30 +0000 (04:34 -0800)]
Docs/clarify usage of ticks callback (#9991) (#9994)
* Docs/clarify usage of ticks callback (#9991)
* Docs/Fixed inconsistent variable names (#9991)
Co-authored-by: Doug Brunner <doug@epicycloidengr.com>
Jacco van den Berg [Tue, 14 Dec 2021 18:41:47 +0000 (19:41 +0100)]
Types/ type suggestedMin and suggestedMax for time scale (#9986)
* type suggestedMin and suggestedMax for time scale
* implement feedback
Jacco van den Berg [Tue, 14 Dec 2021 16:50:37 +0000 (17:50 +0100)]
Types/Allow min-max as string timescale (#9985)
* allow for string in time scale min max config
* add min-max type to docs
* typo
Jukka Kurkela [Thu, 9 Dec 2021 19:15:50 +0000 (21:15 +0200)]
Add random seed reporting to test runs (#9977)
Jukka Kurkela [Wed, 8 Dec 2021 14:44:45 +0000 (16:44 +0200)]
Limit active element changes to chartArea (#9970)
* Limit active element changes to chartArea
* CC, remove duplicate ChartEvent interface
* CC2
Jukka Kurkela [Wed, 8 Dec 2021 14:27:55 +0000 (16:27 +0200)]
Pass object from array as value to _fallback (#9969)
* Pass object from array as value to _fallback
* cleanup
* reduce changes
* reduce even more changes
Jacco van den Berg [Mon, 6 Dec 2021 12:39:33 +0000 (13:39 +0100)]
Docs/clarify samples (#9960)
* add information to the samples root about using the samples
* Implement review feedback
Josh Kelley [Mon, 6 Dec 2021 12:39:06 +0000 (07:39 -0500)]
Improvements to tooltip positioners (#9944)
* Improve positioner types; allow overriding xAlign and yAlign
* More type improvements; pass in Chart as third parameter
* Expose chart as part of TooltipModel
I initially passed the Chart element as the third parameter to the positioner; however, Scale and LegendElement elements expose `this.chart`, and sample code for positioners used `this._chart`, so documenting the chart member and giving it a public name seems to make more sense.
* Update documentation
* Fix documentation
* Fix issues from code review
Josh Kelley [Mon, 6 Dec 2021 12:38:39 +0000 (07:38 -0500)]
Specify UTC time zone for the test suite (#9945)
The controller.bar/not-grouped/on-time test was failing on my computer because the date ranges happen to cross the end of Daylight Saving Time in the U.S., so chart was generated with one more hour of time than the test fixture expected.
Using moment-timezone to specify a fixed time zone with no DST seemed like the most robust fix. (Alternatively, I could pick a date range that doesn't change DST; that ought to work.)
Jukka Kurkela [Sun, 5 Dec 2021 17:42:52 +0000 (19:42 +0200)]
Try to improve documentation for new users (#9952)
* Try to improve documentation for new users
* Review update
Jacco van den Berg [Sun, 5 Dec 2021 14:05:18 +0000 (15:05 +0100)]
add beforeDestroy hook (#9933)
* add `beforeDestroy` hook
* add documentation of destroy lifecycle, add `afterDestroy` hook and deprecate destroy
Jacco van den Berg [Sun, 5 Dec 2021 13:57:44 +0000 (14:57 +0100)]
allow for multiline labels in tick callback (#9937)
Luuk de Vlieger [Sun, 5 Dec 2021 13:57:07 +0000 (14:57 +0100)]
Support "r" axis for non-intersecting interaction (#9919)
* Support "r" axis for non-intersecting interaction
* Extract some interaction functionality
* Remove whitespace and semicolons
* WIP: add interaction test
* Update documentation
* Fix test
* Add another test
* Update axis params
* Add additional axis check to binary search
* Update axis type
Jacco van den Berg [Sun, 5 Dec 2021 13:56:53 +0000 (14:56 +0100)]
Feature/active elements on top (#9920)
* add flag to draw active items on top
* add documentation and types
* remove redundent check
* added test
* resolve linting errors
* increase tollerance
* remove axes for better test, hope no tolerance needed
Jukka Kurkela [Sun, 5 Dec 2021 13:56:37 +0000 (15:56 +0200)]
Add borderJoinStyle option for arc elements (#9877)
* Add borderJoinStyle option for arc elements
* docs + types
* Consistently enumerate the possible choices
Jukka Kurkela [Sun, 5 Dec 2021 13:41:45 +0000 (15:41 +0200)]
Bump version to 3.6.2 (#9953)
Jukka Kurkela [Wed, 1 Dec 2021 22:55:58 +0000 (00:55 +0200)]
Stop modifying options in interaction handlers (#9939)
* Stop modifying options in interaction handlers
* Don't use object spread
Jukka Kurkela [Wed, 1 Dec 2021 22:53:55 +0000 (00:53 +0200)]
Fix resolver caching issue when setting values (#9938)
Evert Timberg [Tue, 30 Nov 2021 18:14:49 +0000 (13:14 -0500)]
Bump to 3.6.1 (#9929)
Jukka Kurkela [Tue, 30 Nov 2021 12:43:46 +0000 (14:43 +0200)]
Add notes about more specific options for axes (#9923)
Jukka Kurkela [Mon, 29 Nov 2021 22:02:00 +0000 (00:02 +0200)]
Fix tooltip caret position when it is positioned at the corners (#9922)
* Fix tooltip caret position when at the corners
* Add test
Co-authored-by: Dirk Gausmann <di.gaus@gmx.de>
Jukka Kurkela [Mon, 29 Nov 2021 21:38:11 +0000 (23:38 +0200)]
Category: Track automatically added labels (#9921)
* Category: Track automatically added labels
* Use correct yAxisKey (does not change anything)
carsonalh [Mon, 29 Nov 2021 21:37:34 +0000 (07:37 +1000)]
Update stale documentation for axis titles (#9683)
* Update stale documentation for axis titles (#9682)
Updated the documentation for the types on axis labels.
In the corresponding `index.esm.d.ts` file, put JSDoc descriptions for
the properties to match the now-updated documentation.
* Clean up axis title labels documentation (#9682)
Inserted extra information in the documentation for the type of the
padding, inserted missing full stops.
In the type file, added JSDoc for undocumented properties.
* Update docs/axes/labelling.md
* Update types/index.esm.d.ts
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
Evert Timberg [Sun, 28 Nov 2021 18:01:14 +0000 (13:01 -0500)]
Add a note about the type parameters of the ChartData type (#9917)
Evert Timberg [Sun, 28 Nov 2021 18:01:00 +0000 (13:01 -0500)]
Doughnut chart options have an offset property (#9916)
Evert Timberg [Sun, 28 Nov 2021 15:25:27 +0000 (10:25 -0500)]
Chart area boxes receive 0 margin during the final layout process (#9915)
Jukka Kurkela [Sat, 27 Nov 2021 19:46:00 +0000 (21:46 +0200)]
Detect detach/attach in same observation (#9876)
* Detect detach/attach in same observation
* Missing `!`, better tests
* reduce duplication
Dmitriy Fishman [Thu, 25 Nov 2021 13:19:26 +0000 (15:19 +0200)]
Fix a typo in index.md (#9900)
Fix a typo
Dmitriy Fishman [Thu, 25 Nov 2021 13:10:12 +0000 (15:10 +0200)]
Update contributing.md (#9893)
Igor Lukanin [Wed, 17 Nov 2021 23:04:22 +0000 (03:04 +0400)]
docs: Add a link to front-end integrations (#9866)
Jukka Kurkela [Wed, 17 Nov 2021 22:13:31 +0000 (00:13 +0200)]
Synchronize data visibility with data changes (#9857)
* Synchronize data visibility with data changes
* avoid babel spread bug
* Simpler?
* one more
* simple enough, cc?
Jukka Kurkela [Wed, 17 Nov 2021 22:10:19 +0000 (00:10 +0200)]
Fix inRange for full circle arc (#9871)
* Update misleading sample comment
* Fix inRange for full circle arc
Jukka Kurkela [Wed, 17 Nov 2021 22:09:25 +0000 (00:09 +0200)]
Configure all datasets before updating any (#9872)
* Update misleading sample comment
* Configure all datasets before updating any
Jukka Kurkela [Wed, 17 Nov 2021 12:34:00 +0000 (14:34 +0200)]
Update misleading sample comment (#9865)
Jukka Kurkela [Tue, 16 Nov 2021 01:09:43 +0000 (03:09 +0200)]
Prevent proxying CanvasGradient in Node platform (#9861)
Jacco van den Berg [Mon, 15 Nov 2021 21:23:51 +0000 (22:23 +0100)]
Types: add autopadding to typing (#9858)
* add autopadding to types
* fix failing test
Jukka Kurkela [Mon, 15 Nov 2021 17:56:56 +0000 (19:56 +0200)]
Fix incomplete TS type for Chart.register + others (#9855)
Jukka Kurkela [Thu, 11 Nov 2021 20:00:52 +0000 (22:00 +0200)]
Fix type linting and indent errors (#9843)
* Fix type linting and indent errors
* Properly indent comments too
NorthBlue333 [Thu, 11 Nov 2021 16:54:17 +0000 (17:54 +0100)]
update animation event to include currentStep instead of currentState (#9837)
Jacco van den Berg [Thu, 11 Nov 2021 05:20:48 +0000 (06:20 +0100)]
update animation event to include inital variable (#9834)
Ben McCann [Wed, 10 Nov 2021 21:02:42 +0000 (13:02 -0800)]
Pass number format to tooltip (#9831)
Jacco van den Berg [Sun, 7 Nov 2021 19:31:31 +0000 (20:31 +0100)]
Docs/update scale position type (#9812)
* update type of scale position in docs, add explanation sentence to object position
* improve clarification
* grammar/spelling
Eric Theise [Sat, 30 Oct 2021 13:23:14 +0000 (06:23 -0700)]
Define with let to avoid "assignment to constant" errors (#9803)
* Define with let to avoid "assignment to constant" errors
Thanks for this example. Defining `label` with `const` rather than `let` results in `Uncaught TypeError: Assignment to constant variable.`
* Another case where const needs to be replaced with let.
* Requested cases where const needs to be replaced with let +1 (style).
Jukka Kurkela [Fri, 29 Oct 2021 11:32:12 +0000 (14:32 +0300)]
Remove scriptability from defaults.font types (#9794)
* Remove scriptability from defaults.font types
* Remove failing test
Jacco van den Berg [Tue, 26 Oct 2021 12:50:07 +0000 (14:50 +0200)]
Fix object notation border width barchart (#9800)
* make object available for bar as border Radius
* override only the bar borderWidth prop
* spacing
Jukka Kurkela [Tue, 26 Oct 2021 11:49:04 +0000 (14:49 +0300)]
New sample: Progressive Line With Easing (#9798)
Jacco van den Berg [Mon, 25 Oct 2021 16:48:51 +0000 (18:48 +0200)]
change namespace and chart types that override legend defaults (#9791)
Evert Timberg [Sun, 24 Oct 2021 16:14:37 +0000 (12:14 -0400)]
Add warning about chart types overriding plugin defaults (#9787)
Evert Timberg [Sat, 23 Oct 2021 17:21:28 +0000 (13:21 -0400)]
Bump to 3.6.0 (#9784)
Josh Kelley [Sat, 23 Oct 2021 15:46:33 +0000 (11:46 -0400)]
Fix cleaning up metasets (#9656)
* Fix cleaning up metasets
I believe it's a mistake to only delete the metaset if it has a valid controller; see
f191f2f5 for where this behavior was introduced.
This is a minimal fix for #9653; as discussed there, it may also be worth updating `updateHoverStyle`.
As of #7030, `this._metasets` should always be defined, so checking whether it's undefined is no longer necessary.
* Add a test covering metaset behavior
* Add a regression test for #9653; fix `toHaveSize` usage
* Fix test failure
gautammsuthar [Sat, 16 Oct 2021 19:55:14 +0000 (01:25 +0530)]
Added hyperlink on Chart.js LOGO (#9741)
Inserted a hyperlink on chart.js logo
So that users can easily be redirected to the HOME PAGE of the web application
Atharva Deshpande [Sat, 16 Oct 2021 19:41:27 +0000 (01:11 +0530)]
Fix: Typo 'is less' -> 'are lesser' (#9755)
* Fix: Typo 'is less' -> 'are lesser'
* Update plugin.decimation.js
Oscar Dominguez [Sat, 16 Oct 2021 19:18:11 +0000 (21:18 +0200)]
ci(workflow): add cache to workflows using actions/setup-node (#9757)
* ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows
* style(workflows): restore single quotes and remove unnecessary 'null'
Jukka Kurkela [Fri, 15 Oct 2021 19:56:29 +0000 (22:56 +0300)]
Add chart, p0.raw, p1.raw to segment context (#9761)
* Add chart, p0.raw, p1.raw to segment context
* Types
mikidoodle [Fri, 15 Oct 2021 19:36:53 +0000 (01:06 +0530)]
Fixed 4 links (#9720)
* Update linear.md
* Update padding.md
* Update padding.md
* Update padding.md
* Update padding.md
* Update padding.md
* Update padding.md
* Update padding.md
* Update padding.md
* Update padding.md
* Padding.md links work now
* Decimation plugin links work now
* Three links work now
I’ve made the Specify a rotation value and ticks.sampleSize links work.
* Update linear.md
Jukka Kurkela [Fri, 15 Oct 2021 12:00:14 +0000 (15:00 +0300)]
Fix stacked fill with lines over multiple scales (#9767)
Jukka Kurkela [Fri, 15 Oct 2021 11:57:39 +0000 (14:57 +0300)]
Bubble: Properly parse radius for non-object data (#9764)
Jukka Kurkela [Thu, 14 Oct 2021 12:35:51 +0000 (15:35 +0300)]
Support nested scriptable defaults for datasets (#9770)
Josh Kelley [Thu, 14 Oct 2021 12:35:29 +0000 (08:35 -0400)]
Don't require --grep to be given on the command line (#9768)
This makes it easier to use the `karma` CLI directly, if desired, and makes it easier to use WebStorm's integrated debugger (which makes up `karma` command-line invocations itself). Prior to this change, if `--grep` isn't given, Karma looks for `*undefined*.js` and finds no tests to run.
Jukka Kurkela [Wed, 13 Oct 2021 21:24:38 +0000 (00:24 +0300)]
Fix controller.getMinMax for stacked charts (#9766)
PrashoonB [Wed, 13 Oct 2021 18:51:33 +0000 (00:21 +0530)]
Changed var to const/let in the docs (#9744)
Changed var to const/let in the docs
Jukka Kurkela [Wed, 13 Oct 2021 12:41:22 +0000 (15:41 +0300)]
Support nested scriptable options for datasets (#9758)
* Support nested scriptable options for datasets
Sandeep Suman [Mon, 11 Oct 2021 21:52:32 +0000 (03:22 +0530)]
linked LICENSE.md to README (#9747)
Jukka Kurkela [Mon, 11 Oct 2021 18:37:25 +0000 (21:37 +0300)]
Disable animations for BasicPlatform (offcreen) (#9751)
* Disable animations for BasicPlatform (offcreen)
* Update types
Jukka Kurkela [Wed, 6 Oct 2021 12:53:27 +0000 (15:53 +0300)]
Types: Move tooltip methods to model from plugin (#9729)
0xflotus [Tue, 5 Oct 2021 22:55:42 +0000 (00:55 +0200)]
docs: fix small error (#9724)
Jukka Kurkela [Mon, 4 Oct 2021 21:43:04 +0000 (00:43 +0300)]
Linear: determine grace amount from range (#9719)
Toni Dietze [Mon, 4 Oct 2021 18:02:45 +0000 (20:02 +0200)]
cache also undefined values in option resolver (#9661)
Otherwise, repeated lookups of undefined properties always trigger the
comparatively expensive resolution. This can be the case for example in
_calculateBarIndexPixels() in controller.bar.js when looking up
options.skipNull and options.maxBarThickness, which is done for each bar
in a bar chart.
Jukka Kurkela [Mon, 4 Oct 2021 18:01:10 +0000 (21:01 +0300)]
Add layout.autoPadding option (#9716)
Jukka Kurkela [Mon, 4 Oct 2021 18:00:27 +0000 (21:00 +0300)]
Fix chart crashing when only min is defined (#9718)
Kurt Preston [Mon, 4 Oct 2021 17:30:16 +0000 (12:30 -0500)]
Fix chart crashing when max is defined but ticks are empty (#9641)
* Fix chart crashing when max is defined but ticks are empty
* Adding spec to reproduce scale bounds calculation error
Co-authored-by: Kurt Preston <kpreston@drw.com>
nikethan rai [Sun, 3 Oct 2021 13:39:20 +0000 (19:09 +0530)]
Fix: Typo spaning--> spanning (#9710)
nikethan rai [Sun, 3 Oct 2021 12:50:02 +0000 (18:20 +0530)]
Fix: Typo ingnore-->ignore (#9711)
nikethan rai [Sat, 2 Oct 2021 21:02:38 +0000 (02:32 +0530)]
Fix: Typo that-->than (#9708)
Evert Timberg [Fri, 1 Oct 2021 16:27:54 +0000 (12:27 -0400)]
Document sample components file (#9697)
Evert Timberg [Fri, 1 Oct 2021 16:17:36 +0000 (12:17 -0400)]
Support false for doughnut and polar area chart animation options (#9699)
Jukka Kurkela [Sat, 25 Sep 2021 04:52:03 +0000 (07:52 +0300)]
Bar: fix too thick borders (#9678)
Jukka Kurkela [Fri, 24 Sep 2021 22:13:53 +0000 (01:13 +0300)]
Fix some typings issues (#9680)
* Types: Add scope to ticks.callback
* Fix some typings issues
Jukka Kurkela [Fri, 24 Sep 2021 22:13:10 +0000 (01:13 +0300)]
Add sanity check for stepSize (#9679)
Evert Timberg [Tue, 14 Sep 2021 11:37:22 +0000 (07:37 -0400)]
Remove const me = this pattern (#9646)
Jukka Kurkela [Mon, 13 Sep 2021 20:31:34 +0000 (23:31 +0300)]
Fix segment styling with gaps (#9644)
David Sandoz [Wed, 8 Sep 2021 11:26:43 +0000 (13:26 +0200)]
Add align to interface of scale title config (#9634)
aha-oretama [Mon, 6 Sep 2021 13:14:00 +0000 (22:14 +0900)]
fix getRelativePosition type definition (#9610)
* fix getRelativePosition type definition
* Update helpers.dom.d.ts
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
Evert Timberg [Mon, 6 Sep 2021 13:13:21 +0000 (09:13 -0400)]
Configurable tooltip box padding (#9625)
Jukka Kurkela [Mon, 6 Sep 2021 04:51:18 +0000 (07:51 +0300)]
Add sanity checks for scale options (#9624)
Iurii Golskyi [Sun, 5 Sep 2021 20:31:00 +0000 (23:31 +0300)]
fix: broken link to `cubicInterpolationMode` (#9626)
* fix: broken link to `cubicInterpolationMode`
Elements -> Line configurations -> cubicInterpolationMode
* fix: broken link in Line Configuration
Evert Timberg [Sun, 5 Sep 2021 17:46:26 +0000 (13:46 -0400)]
Add parsing support to pie/doughnut charts (#9622)
Evert Timberg [Sun, 5 Sep 2021 17:07:28 +0000 (13:07 -0400)]
Enable per-corner border radius in tooltip (#9620)
Evert Timberg [Sun, 5 Sep 2021 16:59:23 +0000 (12:59 -0400)]
Remove offscreen canvas (#9617)
Evert Timberg [Sat, 4 Sep 2021 18:07:24 +0000 (14:07 -0400)]
Update tooltip callback docs (#9618)
Evert Timberg [Sat, 4 Sep 2021 18:03:52 +0000 (14:03 -0400)]
Update old codepen links to ones for v3 (#9619)
Shubham Aggarwal [Sat, 4 Sep 2021 17:43:34 +0000 (23:13 +0530)]
Ensure that controllers derived from the bar controller work correct in stacked charts (#9587)
* change parameter of functions
* argument and parameter change in DatasetController.js
* changing variable name to proper convention
* Update controller.bar.js
Jukka Kurkela [Sat, 4 Sep 2021 17:41:47 +0000 (20:41 +0300)]
Fix plugin event filtering of renamed events (#9613)
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>