Dave Kichler
07fae6159e
Implement legend.align: 'start', 'center', 'end' ( #6141 )
...
New `options.legend.align`config option for controlling alignment of legend blocks in horizontal/vertical legends.
2019-03-23 10:25:17 +01:00
Janelle deMent
b9290a20de
Make line options scriptable ( #6128 )
2019-03-21 09:06:39 +01:00
Akihiko Kusanagi
86ed35446d
Fix hover animations and optimize pivot() ( #6129 )
2019-03-21 09:03:39 +01:00
Ben McCann
4941aa0217
Improvements to helpers.almostWhole ( #6120 )
2019-03-19 11:42:41 +01:00
Jukka Kurkela
75e76cffe5
Make decimalPlaces private and update CDN links ( #6131 )
2019-03-13 10:36:10 +01:00
Roman Borovik
f5ff45693e
Correct typo in a comment in test/index.js ( #6122 )
2019-03-11 09:06:50 +01:00
Simon Brunel
87a74f99a1
Fix missing Chart.Chart (deprecated) alias ( #6112 )
2019-03-06 09:12:29 +01:00
Vincent-Ip
93f4e6e4e8
New weight option for pie and doughnut charts ( #5951 )
...
Add functionality to give pie & doughnut datasets a weight attribute, which affects the relative thickness of the dataset when there are multiple datasets in pie & doughnut charts. The default weight of each dataset is 1, providing any other numerical value will allow the pie or doughnut dataset to be drawn with a thickness relative to its default size.
For example a weight of 2 will allow the dataset to be drawn double its typical dataset thickness. Note that the weight attribute will only affect a pie or doughnut chart if there is more than one visible dataset. Using weight on a pie or doughnut dataset when there is only one dataset on the chart will have no affect.
2019-02-27 23:06:54 +01:00
Jukka Kurkela
0ec3f5569e
Add support for per side border width for rectangle ( #6077 )
2019-02-25 09:03:12 +01:00
Ben McCann
317cae11dc
Ignore invalid log scale min and max ( #6058 )
2019-02-24 10:59:21 +01:00
Jon Rimmer
f3b18373e6
Add onLeave callback to legend ( #6059 )
2019-02-24 10:58:22 +01:00
Ben McCann
f2b099b835
Initialize date adapter with chart options ( #6016 )
2019-02-21 08:11:32 +01:00
Ben McCann
3e18708183
Use datetime as default time scale tooltip format ( #6019 )
...
Remove the logic that computed an "optimal" tooltip format. Instead, always fallback to the `datetime` adapter format which is more efficient and stable. Additionally, remove the adapter `presets` API, which is not needed anymore.
2019-02-18 19:45:38 +01:00
Jukka Kurkela
5fc934eae1
Fix responsive resize on rtl page ( #6063 )
2019-02-13 17:08:38 +01:00
Evert Timberg
ef507e11bd
Handle inextensible dataset.data array ( #6060 )
2019-02-11 19:31:26 +01:00
Jukka Kurkela
409fdde3b0
Fix randomly failing tooltip test ( #6061 )
...
Use utility to trigger the event in the center of element rather than x/y -based coordinates (its the edge for rectangles)
2019-02-10 15:12:55 +01:00
Akihiko Kusanagi
8b07cc2f28
Implement scriptable options for points in radar charts ( #6041 )
2019-02-09 23:07:54 +01:00
Evert Timberg
945d91aee2
Provide a rectangle getArea implementation for horizontal bars ( #6027 )
2019-02-04 09:56:38 +01:00
Akihiko Kusanagi
80a159eb9d
Enforce tooltip item label and value to be strings ( #6030 )
...
Also update the docs for `xLabel` and `yLabel` to also accept a `number`.
2019-02-01 09:21:53 +01:00
Simon Brunel
0697d0de90
Deprecate configMerge and scaleMerge helpers ( #6022 )
...
These methods shouldn't have been public since they are specific to the chart controller internal logic. Note that this scale custom merging will be removed in v3.
2019-01-29 17:52:21 +01:00
Ben McCann
72b7a613a6
Fix typo in test utils comment ( #6017 )
2019-01-28 19:40:07 +01:00
Jukka Kurkela
7c0ad5a05b
Stop drawing radialLinear scale twice ( #6007 )
2019-01-23 15:45:01 +01:00
Jukka Kurkela
8b110fdc51
Handle any element in triggerMouseEvent in tests ( #5994 )
2019-01-20 08:09:21 +01:00
Jukka Kurkela
d9012d9459
Trigger mouse events at the center of arc ( #5991 )
2019-01-18 07:46:13 -05:00
Jukka Kurkela
7bbf3cab5b
Return correct label for value type axis ( #5920 )
2019-01-17 16:04:08 +01:00
Evert Timberg
a655da076e
Implement scriptable options for points in line charts ( #5973 )
2019-01-15 09:24:12 +01:00
Evert Timberg
f3dd96779a
Implement scriptable options for polar area charts ( #5976 )
2019-01-13 21:17:27 +01:00
Simon Brunel
8a3eb85928
Implement adapter to abstract date/time features ( #5960 )
2019-01-11 08:03:28 +01:00
Jukka Kurkela
20c748f90b
Fix modifying ticks in afterBuildTicks ( #5913 )
2019-01-11 07:29:38 +01:00
Evert Timberg
e1ed26f315
Implement scriptable options for doughnut charts ( #5966 )
2019-01-10 16:00:36 +01:00
Simon Brunel
e03d8d8d7b
Make the main controller importable ( #5969 )
...
Merge `core/core.js` in `core/core.controller.js`, split default options next to their associated code and deprecate `Chart.types` (not sure what it was for).
2019-01-09 14:40:11 +01:00
Nodar Nutsubidze
9ecae7c5fb
Test default tooltip callbacks for scatter charts ( #5967 )
...
This moves the mouse over the drawn point and verifies that there is no title in the tooltip and that the body contains expected content.
2019-01-09 14:37:25 +01:00
Jukka Kurkela
9d7eacd251
Fix generateTicks when working with tiny numbers ( #5948 )
2019-01-09 07:58:13 +01:00
Jukka Kurkela
dd3564aee5
Fix title, body and footer alignment inside tooltip ( #5925 )
2019-01-08 13:37:36 +01:00
Simon Brunel
87e44fa360
Cleanup scales export for better import strategy ( #5953 )
...
Scales now export their class and associated defaults (`_defaults`), the registration being done globally in `src/chart.js`.
2019-01-05 14:37:54 +01:00
Akihiko Kusanagi
26b7375329
Prevent bezier points from being capped when a data point is off the chart ( #5937 )
2019-01-05 12:28:15 +01:00
serhii-yakymuk
c51ac8a64a
Make animation duration consistent across browsers ( #5331 )
2019-01-02 16:13:56 +01:00
Akihiko Kusanagi
39b4d61ac2
Fix time scale ticks.reverse issue ( #5933 )
2019-01-02 16:00:55 +01:00
Jukka Kurkela
918e2c027f
Cast getRightValue to number in the bar controller ( #5947 )
2019-01-02 15:55:27 +01:00
Akihiko Kusanagi
aae05a08da
Improve tick generation for linear scales ( #5938 )
...
* Improve tick generation for linear scales
* Simplify the tick generation code
* Refactor getTickLimit
2019-01-01 08:38:09 -05:00
Jukka Kurkela
4b6e53a617
Properly calculate space needed by tick label on autoSkip ( #5922 )
2018-12-21 07:56:53 +01:00
Jukka Kurkela
d7e8b733e3
Add reverse support to time scale ( #5927 )
2018-12-20 16:08:13 +01:00
Akihiko Kusanagi
d29ec5a485
Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options ( #5914 )
2018-12-20 09:56:06 +01:00
Jukka Kurkela
c8ce3d2018
Add support for typed arrays ( #5905 )
2018-12-18 14:49:39 +01:00
Angus Comrie
7e429a8fc6
Add 'middle' interpolation to stepped plots ( #5908 )
2018-12-18 14:47:24 +01:00
Akihiko Kusanagi
db8f6c38dc
Add support for 'inner' border for arc elements ( #5841 )
2018-12-18 13:58:02 +01:00
Dave Salomon
4fb259e3ac
Add support for hiding axis when all linked datasets are hidden ( #5885 )
...
When `display: 'auto'`, the axis is visible only if at least one associated dataset is visible.
2018-12-18 09:33:03 +01:00
Simon Brunel
52b9793ba0
Use HTTPS instead of HTTP for URLs supporting it
2018-12-17 07:50:02 +01:00
Steve Gray
69fcba029b
Remove autoSkip logic to always display last tick ( #5891 )
...
This changes the behavior of `autoSkip` so that it does not force the
display of the last tick. If the last tick can be displayed with equal
spacing to the rest of the ticks, it will be. Otherwise, it is not.
2018-12-09 12:56:51 -05:00
Akihiko Kusanagi
40495ec9d0
Fix the rounding issue of floating point numbers in category scale ( #5880 )
...
- Remove `Math.round` in the category scale code
- Add `helpers._alignPixel` to align grid/tick/axis border lines
- Fix grid/tick/axis border line calculation
- Add a check of the width of the axis border
- Refactor core.scale code
2018-12-09 11:34:34 +01:00