2825 Commits

Author SHA1 Message Date
Ben McCann
171a7e3a7a 2.9 docs - fix broken link (#8241) 2020-12-28 10:20:08 +02:00
Takuya Uehara
df942bb579 Use default value when backgroundColor is undefined (#7950) 2020-10-24 07:43:51 -04:00
Jukka Kurkela
1d92605aa6 Use Object.create(null) as merge target (#7920) 2020-10-18 14:05:05 -04:00
Evert Timberg
dff7140070 When objects are merged together, the target prototype can be polluted. (#7918)
* When objects are merged together, the target prototype can be polluted.

This change blocks updates to the `__proto__` key during config merge
2020-10-18 13:47:08 -04:00
Evert Timberg
d919188925 Bump verison number to v2.9.4 2020-10-18 12:56:08 -04:00
Matthew Crumley
42ed5895b2 Fix Maximum call stack size exception in computeLabelSizes (#7883)
Calling Math.max with a large number of values was throwing an exception.
Tracking the current largest width and height as the widths and heights are
built up should be faster and avoids the exception.
2020-10-17 23:35:00 +03:00
Alessandro Menezes
063b7dc075 [2.9] FitBoxes recursion when dimensions are NaN (#7853)
* Infinite recursion when dimensions are NaN

Adding a verification on updateDims that handles a case when dimensions are both
NaN. This caused an infinite recursion on fitBoxes when calculating the layout
for a chart that is mounted on an element that is not yet in DOM.

Fixes #7761
2020-10-09 10:45:13 -04:00
Alessandro Menezes
2493cb5a2f Use node v12.18.2 on Travis CI (#7864)
Due to an issue with deprecated deps (gitbook-cli), forcing travis to and older
compatible version of nodejs.

Fixes #7863
2020-10-08 08:04:05 -04:00
Alexander Wunschik
679ec4acc5 docs: fix rollup external moment (#7587) 2020-07-05 10:36:05 -04:00
Bryan Iddings
484f0d1e51 Preserve object prototypes when cloning (#7404)
Co-authored-by: Bryan.Iddings <bryan.iddings@noaa.gov>
2020-06-05 00:23:59 +03:00
Ben McCann
2df6986fbe Look for any branch starting with release (#7087) (#7089) 2020-02-11 13:09:44 -05:00
Ben McCann
26ea9f0bbc Update version number to 2.9.3 (#6725) 2019-11-11 07:10:09 -05:00
Ben McCann
a307a2a63d Don't make legend empty when fill is false (#6719) 2019-11-10 20:03:30 -05:00
Ben McCann
c44229fb96 Fix undefined variable (#6698) 2019-11-09 21:54:51 -05:00
Ben McCann
a985fecc98 Stop unnecessary line calculations (#6671) 2019-11-02 13:43:33 -04:00
Jukka Kurkela
1cce8a54c0 Backward compatible default fill for radar charts (#6655)
* Backward compatible fill behavior for radar
2019-11-02 13:43:33 -04:00
Jukka Kurkela
a920bfe34f Hide correct dataset from legend (#6661) 2019-11-02 13:43:33 -04:00
Jukka Kurkela
201fe46f4a Versatile clipping for lines (#6660) 2019-11-02 13:43:33 -04:00
Ben McCann
ad26311058 Refresh package-lock to pick up new version of chartjs-colors (#6663) 2019-11-02 13:43:33 -04:00
Evert Timberg
8abfbcb5e9 Update version number to v2.9.2 (#6657) 2019-11-02 13:43:33 -04:00
Ben McCann
45550ed7c2 Combine performance docs (#6643) 2019-11-02 13:43:33 -04:00
Jukka Kurkela
65421bbed9 Use document when getRootNode is unsupported (#6641) 2019-11-02 13:43:33 -04:00
Evert Timberg
a92dd7b97f Release v2.9.1 (#6618)
Release v2.9.1
2019-10-27 15:11:33 -04:00
Evert Timberg
26b9d1f6ad Merge pull request #6601 from chartjs/master
Version 2.9.0
2019-10-25 20:25:10 -04:00
Ben McCann
ea100d400e Bump version number to 2.9.0 (#6600) 2019-10-25 14:57:21 -04:00
Jukka Kurkela
333118bff6 Hover styling for dataset in 'dataset' mode (#6527)
* Hover styling for dataset in 'dataset' mode
2019-10-25 13:22:37 -04:00
Ben McCann
9ff1c845f2 Bar options should not be defined on scale (#6249)
* Bar options should not be defined on scale

* Improve minimization

* Add tests

* Multiple datasets in test
2019-10-25 12:17:41 -04:00
Simon Tang
0b62f28f94 Inject styles into Shadow DOM when inside Shadow DOM (#5763) (#6556) 2019-10-25 07:15:39 -04:00
Ben McCann
4d7fefcdb6 Remove a couple calls to helpers.each (#6594) 2019-10-25 07:14:07 -04:00
Ben McCann
f606c23f2f Fix unit determination when autoSkip is enabled (#6583) 2019-10-24 19:21:45 -04:00
Ben McCann
6c9f202c68 Fix autoskip for first segment of chart (#6584)
* Fix autoskip for first segment of chart

* Fix issue identified during review
2019-10-24 19:21:05 -04:00
Ben McCann
3cb308d16c Fix sampleSize option (#6586) 2019-10-22 20:59:22 -04:00
Ben McCann
c6c991d0f0 Add a note to the perf documentation about rotation (#6585) 2019-10-22 20:57:51 -04:00
Jukka Kurkela
cec2d2652e Remove duplicate scale building (#6247) 2019-10-22 19:15:15 -04:00
Jukka Kurkela
6b6f1a4c51 Implement dataset.order (#6268)
Allow sorting datasets based on the `order` property
2019-10-22 19:14:54 -04:00
Jukka Kurkela
feaf418d4e Return correct index/value id in radar/polarArea (#6581) 2019-10-19 17:20:48 -04:00
Jukka Kurkela
d3860137fe Fix logarighmic test to use correct scale (#6580) 2019-10-19 16:17:57 -04:00
Ben McCann
69a5082bd6 Make autoskip aware of major ticks (#6509)
* Make autoskip aware of major ticks
* Address review comments
* Fix codeclimate warning
* Add test for major and minor tick autoskipping
* Revert change for determining _majorUnit and fix sample
2019-10-19 16:13:04 -04:00
Jukka Kurkela
6bc6630b87 [perf] cache resolved data element options (#6579)
* [perf] cache resolved data element options
* Address review comments
* Move uninitialized variables, update comments
2019-10-19 09:19:12 -04:00
Ben McCann
959ea08224 [perf] simplify line drawing (#6575)
* Simplify line drawing

* Remove duplicate initialization
2019-10-18 07:25:37 -04:00
Ben McCann
daafbc7b66 Sample only if specified option value is smaller than number of ticks (#6572) 2019-10-17 20:47:00 -04:00
Ben McCann
fc76610b12 Add ticks.sampleSize option (#6508) 2019-10-09 13:25:04 -04:00
Takuya Uehara
e9f341889f Add link to linear radial axis for radar chart doc (#6554) 2019-10-06 10:02:00 -04:00
Jukka Kurkela
b24e42b1bd Make sure zeroLineIndex is defined (#6528) 2019-09-18 22:18:32 -04:00
Jukka Kurkela
29f1337bd2 Fix right side scale ticks (#6523) 2019-09-16 16:03:31 -04:00
Daniel Cohen Gindi
376da2131e Implemented RTL support for legends and tooltips (#6460)
Implemented RTL support for legends and tooltips
2019-09-11 19:20:03 -04:00
Ben McCann
995efa5f9e Improved minimization for calling helpers (#6507) 2019-09-07 19:09:15 -04:00
Ben McCann
ce8ee02ccd Reduce indentation by reversing if check (#6497) 2019-09-07 10:56:15 -04:00
Ben McCann
43beb4e9d5 AutoSkip in update (#6355)
* AutoSkip in update

* Address review comments

* Add v3 to TODO

* Address review comments

* Remove unrelated code cleanup
2019-09-07 07:24:31 -04:00
Matthias Perret
6e69a38305 Add elements.arc.angle in documentation (#6491)
Add elements.arc.angle in documentation
2019-09-07 07:20:07 -04:00