Evert Timberg
4ed650acbe
Enable overriding the legend pointStyle using new pointStyle option ( #7959 )
2020-10-26 14:16:00 +02:00
Jukka Kurkela
73b4e82fd5
Use Object.create(null) as merge target, to prevent prototype pollution ( #7917 )
...
Use Object.create(null) as merge target to prevent polluting `Object.prototype`
2020-10-18 13:31:01 -04:00
Jukka Kurkela
06b5325778
Add maxWidth/maxHeight options for legend ( #7852 )
2020-10-06 07:41:16 -04:00
Evert Timberg
168965fa38
Enable custom sorting of the legend items ( #7851 )
2020-10-05 22:15:38 -04:00
Jukka Kurkela
e756fb93a3
Resolve fonts through options.font ( #7674 )
...
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts
2020-08-03 12:32:58 -04:00
Evert Timberg
70c2b07eb2
Do not use line defaults in legend ( #7649 )
2020-07-19 12:52:59 -04:00
Jukka Kurkela
b8ad2a6a0a
Registry bugs ( #7608 )
...
* Stop failing early when no scales are registered
* Move filler defaults
* Move legend defaults
* Remove legendHitBoxes from title
* Move @kurkle/color to devDependencies
2020-07-13 09:41:42 -04:00
Evert Timberg
537cd74919
Update the legend object during beforeUpdate ( #7528 )
...
* Update the legend object during beforeUpdate
When the legend is updated in afterUpdate, the position is not updated
before the layout system runs. When the event that the legend position
was changed, the legend would not move to the new position in the layout
system. This causes the chart to render incorrectly because the layout
system handled the layout as if the legend was still at the original position.
The update is split into two passes to ensure that labels still update correctly
after datasets (#6968 )
2020-06-20 07:30:31 -04:00
Evert Timberg
0703d78286
Enable custom legend box heights ( #7459 )
...
Enable custom legend box heights
2020-06-04 19:53:40 -04:00
Evert Timberg
13b8924ac3
Legend onClick callback supports arrow functions ( #7410 )
...
#7409 Legend callbacks support arrow functions
The `Legend` is no longer implicitly found through `this` and instead
passed as an explicit argument to the callback functions.
2020-05-24 10:28:41 -04:00
Jukka Kurkela
5a83a80811
Move font* to font.* ( #7383 )
2020-05-21 17:07:06 -04:00
Jukka Kurkela
d801e56106
Update dependencies and alter privacy of functions ( #7138 )
...
* Update dependencies
* Fix privacy problems
* color lib & consistency
* Review update
* getLabelCapacity
* Review update
2020-02-22 08:35:16 -05:00
Ben McCann
e2145e3b55
Turn on excludeNotExported ( #7121 )
2020-02-20 12:18:21 -05:00
Ben McCann
028ee30505
Make margins private ( #7123 )
2020-02-19 14:15:48 -05:00
Jukka Kurkela
7c1fb37c61
Babel @kurkle/color for IE support ( #7099 )
...
Babel @kurkle/color for IE support
2020-02-14 12:29:33 -05:00
Jukka Kurkela
25a9969489
Enable esnext and fix all lint errors ( #7094 )
...
* enable esnext and fix all lint errors
* Review update
* Missed some
* Some cleanup still
* Remove leftover eslint disable
2020-02-13 18:41:49 -05:00
Ben McCann
40b8254ca4
Cleanup private methods on Scales ( #7082 )
2020-02-11 19:18:13 -05:00
Jukka Kurkela
25002f2763
Defaults as ES6 class ( #7074 )
...
* Defaults as ES6 class
* Review comments
2020-02-09 08:52:18 -05:00
Ben McCann
795c86e95b
Fix errors reported by TypeScript compiler ( #7030 )
2020-02-07 18:03:33 -05:00
Jukka Kurkela
70b6eab563
Configurable hide/show animations ( #7055 )
...
Configurable hide/show animations
2020-02-06 18:16:24 -05:00
Evert Timberg
93757a53e5
Fix legend title drawing + update sample ( #7060 )
2020-02-06 07:31:33 -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
771fe52095
Update legend imports ( #7048 )
2020-02-01 08:29:39 -05:00
Dominic Jean
95345d01dc
fix drawPoints parameter ( #6975 )
2020-01-18 08:32:09 -05:00
Jukka Kurkela
2e880ed99d
Rebuild legend after datasets are updated ( #6969 )
2020-01-16 16:20:22 -05:00
Evert Timberg
d04cdfc21f
Add the ability to add a title to the legend ( #6906 )
...
* Add the ability to add a title to the legend
- Legend title can be specified
- Font & color options added
- Padding option added
- Positioning option added
- Legend title sample file added
2020-01-10 18:28:51 -05:00
Ben McCann
c6c4a52257
Switch most requires to imports ( #6935 )
2020-01-09 07:23:53 -05:00
Ben McCann
ecb0784f0d
Remove minSize ( #6910 )
2020-01-05 10:42:42 -05:00
Jukka Kurkela
f4792306e0
Remove global from defaults ( #6893 )
2020-01-03 14:07:38 -05:00
Evert Timberg
e96ad6f249
Remove HTML legend that is mostly unsupported. ( #6887 )
...
* Remove HTML legend that is mostly unsupported.
Resolves the discussion in #5070
* Add migration docs
2020-01-03 13:56:11 -05:00
Jukka Kurkela
b83f64b16e
Rewrite animation logic ( #6845 )
...
* Rewrite animation logic
* Review update 1
* Review update 2
* Review update 3
* Add 'none' to api.md
2019-12-27 17:13:24 -05:00
Ben McCann
fc7a72a8c1
Remove helpers.where and unnecessary calls to helpers.each ( #6860 )
...
* Remove unnecessary calls to helpers.each
* Remove where
2019-12-25 08:21:42 -05:00
Ben McCann
64bc48ab53
Remove Element.initialize ( #6777 )
2019-11-21 07:06:15 -05:00
Ben McCann
4a8a7ee824
Use ES6 classes for elements ( #6702 )
...
* Use ES6 classes for elements
* Add additional elements
2019-11-07 19:51:26 -05:00
Jukka Kurkela
6942e9058c
Hide correct dataset from legend ( #6667 )
2019-11-01 14:06:08 -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
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
ce8ee02ccd
Reduce indentation by reversing if check ( #6497 )
2019-09-07 10:56:15 -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
Akihiko Kusanagi
d81914ea29
Adjust virtical alignment of tooptip items ( #6292 )
2019-06-19 07:11:48 -04:00
Akihiko Kusanagi
feeda5d034
Make legend appearance consistent with chart elements ( #5621 )
2019-05-09 15:33:19 +02:00
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
Jon Rimmer
f3b18373e6
Add onLeave callback to legend ( #6059 )
2019-02-24 10:58:22 +01:00
Ben McCann
2f874fde62
Use lowercase for primitives in jsdocs ( #6033 )
2019-02-11 08:51:39 +01:00
Alfie Hopkin
af464f8a85
Enhance legend label color point when usePointStyle is true ( #6006 )
2019-02-10 19:04:29 +01:00
Akihiko Kusanagi
820debf452
Refactoring using helpers.options.resolve ( #5965 )
2019-01-08 16:50:33 +01:00
Akihiko Kusanagi
d29ec5a485
Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options ( #5914 )
2018-12-20 09:56:06 +01:00
Akihiko Kusanagi
e730f87e15
Fix legend item layout issue ( #5816 )
2018-11-12 08:57:16 +01:00
Simon Brunel
6bea15e7cf
Rename Chart.layout to Chart.layouts ( #5118 )
...
Chart.layouts seems more consistent with other service names (Chart.plugins, Chart.scales, etc.) but also more inline with the service which handle many layout (one per charts).
2018-01-09 14:12:40 +01:00
Simon Brunel
fb3ea03440
Make Chart.plugins importable ( #5114 )
...
Explicitly deprecate (since 2.1.5) `Chart.Legend` and `Chart.Title`.
2018-01-08 11:48:59 +01:00