Commit Graph

3029 Commits

Author SHA1 Message Date
Ben McCann
795c86e95b
Fix errors reported by TypeScript compiler (#7030) 2020-02-07 18:03:33 -05:00
Ben McCann
df407d23f0
core.scale cleanup (#7067) 2020-02-06 18:17:05 -05:00
Jukka Kurkela
70b6eab563
Configurable hide/show animations (#7055)
Configurable hide/show animations
2020-02-06 18:16:24 -05:00
Ben McCann
6affaa2a73
Convert controllers to ES6 classes (#7061) 2020-02-06 07:33:00 -05:00
Evert Timberg
93757a53e5
Fix legend title drawing + update sample (#7060) 2020-02-06 07:31:33 -05:00
Ben McCann
a30f753321
Finishing removing old major/minor options (#7042)
* Finishing removing old major/minor options
* Fix samples
2020-02-05 18:20:01 -05:00
Ben McCann
f9cd9fdf76
JSDoc and other cleanup (#7057) 2020-02-05 08:27:02 -05:00
Ben McCann
c79e8090e8
Make datasetController an ES6 class (#7056) 2020-02-04 18:09:56 -05:00
Ben McCann
3b61a1f86e
Generate ticks when source is data (#7044)
Generate ticks when source is data
2020-02-03 19:22:09 -05:00
Ben McCann
1c18a74ea0
Fix some JSDoc errors (#7026)
* Fix some JSDoc errors

* Fix helpers.dom JSDoc errors

* Add scale JSDoc errors

* Address review comment

* Fix additional errors

* Document optional parameters

* JSDoc fixes for datasetController

* Remove undefined
2020-02-03 07:52:55 -05:00
Ben McCann
f5d9892ad8
Improved formatting of numeric scale labels (#7007)
* Improved formatting of numeric scale labels

* Put locale on options

* Use scientific notation for big ticks

* Remove extra parameter
2020-02-03 07:36:30 -05:00
Ben McCann
f5c4494621
Cleanup imports on controllers (#7052) 2020-02-03 07:34:54 -05:00
Ben McCann
7cd77e779d
Update imports for elements (#7049) 2020-02-03 07:34:36 -05:00
Ben McCann
771fe52095
Update legend imports (#7048) 2020-02-01 08:29:39 -05:00
Ben McCann
251f3832bc
Remove extra call to _getLabelCapacity (#6999) 2020-02-01 08:24:23 -05:00
Ben McCann
26536f8849
Fix bug in opacity handling (#7047) 2020-02-01 08:20:22 -05:00
Ben McCann
316f0e2244
Cleanup time scale imports (#7041) 2020-01-31 07:10:37 -05:00
Ben McCann
2647dd0fbf
scale.linearbase cleanup (#7038) 2020-01-31 07:09:52 -05:00
Ben McCann
13851c0209
Remove unnecessary check for color library (#7043) 2020-01-31 07:09:25 -05:00
jachstet-sea
f8724b1b7d
Fix legend.md markdown syntax (#7034)
* Fix legend.md markdown syntax

Somehow the markdown of a table in the legend.md file was broken ...

* Update legend.md

forgot to add the second option
2020-01-30 19:27:53 -05:00
Jukka Kurkela
a7cb59179a
Fix typo in elements.line (#7040)
Fix typo in elements.line
2020-01-30 19:24:05 -05:00
Ben McCann
d449bbc83a
Remove unused helpers (#7039) 2020-01-30 19:23:40 -05:00
Ben McCann
eec71bfb22
Fix isRadial is always false (#7037) 2020-01-30 19:22:38 -05:00
Ben McCann
4462a2c950
Reduce requestAnimationFrame polyfill (#7033)
* Reduce requestAnimationFrame polyfill
* Remove another unnecessary polyfill
2020-01-30 19:21:30 -05:00
Ben McCann
dac52d189e
Convert the DateAdapter to ES6 (#7032) 2020-01-30 19:20:59 -05:00
Ben McCann
c667a9ef85
Move text helpers and reduce scope of imports (#7028) 2020-01-30 19:19:53 -05:00
Ben McCann
aefbd6f9f3
Remove unused variable (#7031) 2020-01-30 19:17:06 -05:00
Ben McCann
12333b02a5 Switch to const/let in platform.dom.js and fix bug (#7024) 2020-01-28 12:35:34 -05:00
Jukka Kurkela
cb6d7f80d1 Fix binarySearch for empty dataset (#7023) 2020-01-28 11:46:23 -05:00
Ben McCann
1ae11c4d40 Format numbers in tooltip (#7004)
* Format numbers in tooltip
* Add check for typeof number
* Implement only for linear and log scales
2020-01-27 17:58:58 -05:00
Evert Timberg
b59dd5082e
When gridLines.display is false, the axis border is still drawn (#7014) 2020-01-27 17:57:31 -05:00
Ben McCann
47c7a42aae Improved financial sample (#6998)
* Improved financial sample
* Switch from adapter to moment
* Use data instead of cached timestamps
2020-01-26 15:35:53 -05:00
David Winegar
1ad5f369af Allow switching platforms (#6964)
Allow switching platforms

Move the Chart.platform to Chart.platform.current instead, and add
ways to see available platforms and set the current platform. This
is necessary for adding tests that use the "basic" platform.
2020-01-26 15:33:20 -05:00
Evert Timberg
08110af6f1
Proper text alignment for multiline tick labels (#6988)
* Proper text alignment for multiline tick labels

* Handle other rotations as well
2020-01-22 11:13:43 -05:00
Ben McCann
fe3931b077 Reduce scope of imports (#7000) 2020-01-22 07:19:44 -05:00
Jukka Kurkela
7eb0c2ca68 Allow specifying spanGaps as number (max distance) (#6993) 2020-01-21 18:33:27 -05:00
Jukka Kurkela
9fda5ec667 Use binary search for interpolations (#6958) 2020-01-21 18:31:17 -05:00
Jukka Kurkela
b76dd46d72 Filler fix (#6989)
* Filler fix
* Add an indicator of reference points
2020-01-21 18:30:23 -05:00
Jukka Kurkela
14df2c6722 Enable imports for tests (#6997) 2020-01-21 15:44:14 -05:00
Jukka Kurkela
b05699eec5 Clean up after test (#6976)
* Clean up
* Make sure the event is inside chart are
2020-01-21 15:43:41 -05:00
Ben McCann
fd7cf48806 Update version in package-lock (#6994) 2020-01-21 15:31:17 -05:00
Jukka Kurkela
fb19b77e4b Fix tooltip for 'dataset' mode (#6961) 2020-01-21 09:48:58 -05:00
Evert Timberg
5aaff3a1aa
Convert Tooltip to a plugin (#6990)
* Convert Tooltip to a plugin
* code review feedback
* Update docs. Convert positioners map to be on the plugin directly
2020-01-21 06:36:53 -05:00
Jukka Kurkela
16baf20356 Resize on zoom, retry (#6987) 2020-01-19 13:15:27 -05:00
Evert Timberg
216ac70261
Show color box only on the first line of the tooltip body (#6984)
* Show color box only on the first line of the tooltip body
* Code review feedback
2020-01-19 09:03:51 -05:00
Evert Timberg
b097fe43c9
Linear scale with min/max/stepSize set should use all 3 if the range fits (#6966)
When (max - min) / stepSize is an integer, we can do a very simple
tick generation method.
2020-01-18 08:35:30 -05:00
Dominic Jean
95345d01dc fix drawPoints parameter (#6975) 2020-01-18 08:32:09 -05:00
Ben McCann
fac507819f Use import statements in test code (#6977) 2020-01-17 19:13:38 -05:00
Jukka Kurkela
ddd1c43f2c Fix updating retinaScale (#6971)
* Fix updating retinaScale
* Destructure
2020-01-17 19:08:38 -05:00
Jukka Kurkela
767ffc05ce Resize on zoom (#6974)
* Resize on zoom
* Add test
2020-01-17 19:07:28 -05:00