Commit Graph

2874 Commits

Author SHA1 Message Date
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
Ben McCann
df9e2d00bd Html dom building (#6490)
Replaces #6179 and builds HTML legend strings using dom nodes rather than building up an HTML string directly.
2019-09-07 07:19:17 -04:00
Ben McCann
f68b8adaac Upgrade rollup and plugins to fix build (#6493) 2019-09-04 07:44:01 -04:00
HansM
2954cf8a99 Fixed incorrect spelling in pie dataset options. (#6466)
Fixes https://github.com/chartjs/Chart.js/issues/6465.
2019-08-14 19:02:08 -04:00
Ben McCann
40934837c9 Minor cleanup (#6362) 2019-08-12 20:36:46 -04:00
Jake
053729ac44 Add link back to home page from docs (#6435)
* Add link back to home page from docs #6433

* Modify link texts

* Edit homepage link
2019-08-04 19:49:58 -04:00
Angus Comrie
a46dd96ddf clamps argument of toExponential between 0 and 20 (#6423) 2019-08-02 21:23:15 -04:00
Akihiko Kusanagi
6632b8ba84 Add radar chart config options (#6393)
* Add radar chart config options

* Add default value of spanGaps option for radar charts

* Address review comments
2019-07-21 08:00:11 -04:00
Akihiko Kusanagi
626d8cc714 Draw the rightmost grid line when offsetGridLines is true (#6326)
* Draw the rightmost grid line when offsetGridLines is true

* Refactor based on feedback

* Replace helpers.each with for loop

* Minor refactoring

* Refactor _computeItemsToDraw
2019-07-18 18:25:33 -04:00
Ben McCann
28fdffbeb9 Perf improvement for ticks.source:'labels' (#6354)
* Perf improvement for ticks.source:'labels'

* Address review comments

* Address review comments
2019-07-18 18:24:25 -04:00
Jukka Kurkela
cbace1cfe2 Handle reverse support in core.scale (#6343)
* Move log10 from core.helpers to helpers.math

* Refactor scales
2019-07-15 17:20:16 -04:00
Ben McCann
dd6e007ac1 Add helpers.math._factorize (#6360)
* Add helpers.math._factorize
* Remove duplicate test statement
2019-07-02 18:22:47 -04:00
Ben McCann
fb3d6ab93c Lazily compute label sizes (#6351)
* Lazily compute label sizes

* Reduce file size
2019-06-27 06:49:04 -04:00
Ben McCann
d480e11ea0 Render charts only once in time scale tests (#6347) 2019-06-25 18:46:24 -04:00
Akihiko Kusanagi
0d3754254a Correct descriptions on ticks.display and add pointLabels.display (#6293)
* Correct descriptions on ticks.display and add pointLabels.display

* Remove notes about angleLines.display and pointLabels.display
2019-06-23 11:44:35 -04:00
Akihiko Kusanagi
1c857008a8 Fix getValueForPixel in time scale (#6328)
* Fix getValueForPixel in time scale

* Minor refactoring
2019-06-22 09:56:31 -04:00
Ben McCann
07109b674b [performance] replace helpers.each calls with for-loops (#6301)
* [performance] replace helpers.each calls with for-loops

* Use Math.min/max instead of if statement

* Rename variable
2019-06-22 09:55:46 -04:00
Jukka Kurkela
db6a6d5989 Refactor core.layouts (#6304) 2019-06-19 18:08:07 -04:00
Akihiko Kusanagi
e3e80c9ac6 Support spanGaps in radar charts (#6289)
* Support spanGaps in radar charts

* Minor fixes based on feedback
2019-06-19 07:12:53 -04:00
Akihiko Kusanagi
d81914ea29 Adjust virtical alignment of tooptip items (#6292) 2019-06-19 07:11:48 -04:00
Akihiko Kusanagi
bb5f12ad2a Support object values for bar charts (#6323)
* Support object values for bar charts

* Check if null or undefined

* Refactor category scale code

* Make isNullOrUndef global
2019-06-19 07:10:03 -04:00
Ben McCann
b31980edab [performance] faster major tick calculation (#6307)
* [performance] faster major tick calculation

* Address review comments

* Replace isNaN
2019-06-19 07:08:40 -04:00
Akihiko Kusanagi
9eecdf4da1
Update dataset metadata when axisID changes (#6321) 2019-06-14 11:34:56 +02:00
Akihiko Kusanagi
bf094c59db
Assign unique scale IDs (#6291) 2019-06-09 15:45:12 +08:00
Akihiko Kusanagi
70b32ff20e Support rotation for pointStyle image (#6287) 2019-05-24 09:35:47 +02:00
Akihiko Kusanagi
b02a3a8175 Fix regression with lineTension (#6288) 2019-05-24 09:34:09 +02:00
Akihiko Kusanagi
bd3ab17ef7 Add tests and a sample for radar scriptable line options (#6263)
* Add tests and a sample for radar scriptable line options

* Improve image tests
2019-05-21 18:06:12 -04:00
Jukka Kurkela
abbddd1298 Allow specifying labels in time scale options (#6257) 2019-05-21 13:36:16 +02:00
Akihiko Kusanagi
03a3199306 Treat null as NaN in radialLinear scale (#6282) 2019-05-21 11:50:38 +02:00
Akihiko Kusanagi
cfcdcccc32 Support boundary filling modes in radialLinear scale (#6281) 2019-05-21 11:15:33 +02:00
gwyneblaidd
7d8526f691 Add support for floating bar chart ([start, end]) (#6056) 2019-05-21 10:54:13 +02:00
Akihiko Kusanagi
4f04ee5d77 Keep lines on the left and right edges from being cut (#6285) 2019-05-20 17:23:54 +02:00
Akihiko Kusanagi
200672a787 Apply lineJoin style at the first point in radar charts (#6269) 2019-05-20 09:28:09 +02:00
Akihiko Kusanagi
9482ee55eb Fix point label counting in radialLinear scale (#6280) 2019-05-16 20:34:43 +02:00
Akihiko Kusanagi
e35b8891ce Treat 0 as a valid point label for radial scale (#6279) 2019-05-16 20:17:46 +02:00
Ben McCann
e5c68e2c82 Fix data in financial sample (#6244) 2019-05-15 14:23:09 +02:00
Ben McCann
196274defc Use tick.major rather than recomputing (#6265) 2019-05-14 07:29:41 +01:00
Jukka Kurkela
1686ce0aa7 Apply offset regardless of min/max time scale options (#6264) 2019-05-12 16:52:30 +02:00
Jukka Kurkela
89f2e04ff0 Fix ticks generation for vertical time scale (#6258) 2019-05-12 16:34:14 +02:00
Ben McCann
707e52a014 Fix determineUnitForFormatting floating point error (#6259) 2019-05-10 15:02:30 +02:00
Jukka Kurkela
2a96d83c2c Implement layers (z-index) for layout items (#6241) 2019-05-09 15:54:05 +02:00