Commit Graph

4138 Commits

Author SHA1 Message Date
Jukka Kurkela
2988a6c6dc
Fix type linting and indent errors (#9843)
* Fix type linting and indent errors
* Properly indent comments too
2021-11-11 15:00:52 -05:00
NorthBlue333
7da77a560e
update animation event to include currentStep instead of currentState (#9837) 2021-11-11 18:54:17 +02:00
Jacco van den Berg
359d171683
update animation event to include inital variable (#9834) 2021-11-11 07:20:48 +02:00
Ben McCann
7966227df3
Pass number format to tooltip (#9831) 2021-11-10 16:02:42 -05:00
Jacco van den Berg
681ada552e
Docs/update scale position type (#9812)
* update type of scale position in docs, add explanation sentence to object position

* improve clarification

* grammar/spelling
2021-11-07 21:31:31 +02:00
Eric Theise
67c5a85144
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).
2021-10-30 09:23:14 -04:00
Jukka Kurkela
1749e57918
Remove scriptability from defaults.font types (#9794)
* Remove scriptability from defaults.font types

* Remove failing test
2021-10-29 07:32:12 -04:00
Jacco van den Berg
10106e4ec6
Fix object notation border width barchart (#9800)
* make object available for bar as border Radius

* override only the bar borderWidth prop

* spacing
2021-10-26 08:50:07 -04:00
Jukka Kurkela
2a97192154
New sample: Progressive Line With Easing (#9798) 2021-10-26 07:49:04 -04:00
Jacco van den Berg
9039053049
change namespace and chart types that override legend defaults (#9791) 2021-10-25 19:48:51 +03:00
Evert Timberg
2f4962f750
Add warning about chart types overriding plugin defaults (#9787) 2021-10-24 12:14:37 -04:00
Evert Timberg
40e88ba45c
Bump to 3.6.0 (#9784) 2021-10-23 13:21:28 -04:00
Josh Kelley
aac0bef060
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
2021-10-23 18:46:33 +03:00
gautammsuthar
1199415e25
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
2021-10-16 15:55:14 -04:00
Atharva Deshpande
30e66bc50e
Fix: Typo 'is less' -> 'are lesser' (#9755)
* Fix: Typo 'is less' -> 'are lesser'

* Update plugin.decimation.js
2021-10-16 22:41:27 +03:00
Oscar Dominguez
12d5e4c7e7
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'
2021-10-16 22:18:11 +03:00
Jukka Kurkela
6a250de81d
Add chart, p0.raw, p1.raw to segment context (#9761)
* Add chart, p0.raw, p1.raw to segment context

* Types
2021-10-15 15:56:29 -04:00
mikidoodle
6c220748db
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
2021-10-15 22:36:53 +03:00
Jukka Kurkela
18fc9760e1
Fix stacked fill with lines over multiple scales (#9767) 2021-10-15 08:00:14 -04:00
Jukka Kurkela
81acad9f2b
Bubble: Properly parse radius for non-object data (#9764) 2021-10-15 07:57:39 -04:00
Jukka Kurkela
0dcf025ab7
Support nested scriptable defaults for datasets (#9770) 2021-10-14 08:35:51 -04:00
Josh Kelley
dd78ba0368
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.
2021-10-14 08:35:29 -04:00
Jukka Kurkela
9a47395010
Fix controller.getMinMax for stacked charts (#9766) 2021-10-14 00:24:38 +03:00
PrashoonB
6f7e09540c
Changed var to const/let in the docs (#9744)
Changed var to const/let in the docs
2021-10-13 14:51:33 -04:00
Jukka Kurkela
12c5f9a839
Support nested scriptable options for datasets (#9758)
* Support nested scriptable options for datasets
2021-10-13 08:41:22 -04:00
Sandeep Suman
f3a82929d0
linked LICENSE.md to README (#9747) 2021-10-11 17:52:32 -04:00
Jukka Kurkela
bc5e5cbf11
Disable animations for BasicPlatform (offcreen) (#9751)
* Disable animations for BasicPlatform (offcreen)
* Update types
2021-10-11 14:37:25 -04:00
Jukka Kurkela
7993fc95dc
Types: Move tooltip methods to model from plugin (#9729) 2021-10-06 08:53:27 -04:00
0xflotus
28de4b00dc
docs: fix small error (#9724) 2021-10-05 18:55:42 -04:00
Jukka Kurkela
10292c6912
Linear: determine grace amount from range (#9719) 2021-10-04 17:43:04 -04:00
Toni Dietze
93fcec595c
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.
2021-10-04 14:02:45 -04:00
Jukka Kurkela
e1ae5e6abf
Add layout.autoPadding option (#9716) 2021-10-04 14:01:10 -04:00
Jukka Kurkela
0d4880e35c
Fix chart crashing when only min is defined (#9718) 2021-10-04 14:00:27 -04:00
Kurt Preston
60b094a9af
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>
2021-10-04 20:30:16 +03:00
nikethan rai
0093b0fca8
Fix: Typo spaning--> spanning (#9710) 2021-10-03 09:39:20 -04:00
nikethan rai
f0f645de5f
Fix: Typo ingnore-->ignore (#9711) 2021-10-03 08:50:02 -04:00
nikethan rai
7dabae9a86
Fix: Typo that-->than (#9708) 2021-10-02 17:02:38 -04:00
Evert Timberg
a21c1c6dfa
Document sample components file (#9697) 2021-10-01 19:27:54 +03:00
Evert Timberg
00712f19d6
Support false for doughnut and polar area chart animation options (#9699) 2021-10-01 19:17:36 +03:00
Jukka Kurkela
c3a53f06d7
Bar: fix too thick borders (#9678) 2021-09-25 07:52:03 +03:00
Jukka Kurkela
990a2890d5
Fix some typings issues (#9680)
* Types: Add scope to ticks.callback

* Fix some typings issues
2021-09-24 18:13:53 -04:00
Jukka Kurkela
5587738fa4
Add sanity check for stepSize (#9679) 2021-09-24 18:13:10 -04:00
Evert Timberg
8e68481ec4
Remove const me = this pattern (#9646) 2021-09-14 07:37:22 -04:00
Jukka Kurkela
183a1a9f67
Fix segment styling with gaps (#9644) 2021-09-13 16:31:34 -04:00
David Sandoz
0e64e53a59
Add align to interface of scale title config (#9634) 2021-09-08 07:26:43 -04:00
aha-oretama
61e3eca198
fix getRelativePosition type definition (#9610)
* fix getRelativePosition type definition

* Update helpers.dom.d.ts

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2021-09-06 09:14:00 -04:00
Evert Timberg
f5c9a656ef
Configurable tooltip box padding (#9625) 2021-09-06 09:13:21 -04:00
Jukka Kurkela
3f23aaba9a
Add sanity checks for scale options (#9624) 2021-09-06 07:51:18 +03:00
Iurii Golskyi
eab0554717
fix: broken link to cubicInterpolationMode (#9626)
* fix: broken link to `cubicInterpolationMode`
Elements -> Line configurations -> cubicInterpolationMode
* fix: broken link in Line Configuration
2021-09-05 16:31:00 -04:00
Evert Timberg
71fa55acac
Add parsing support to pie/doughnut charts (#9622) 2021-09-05 13:46:26 -04:00