Evert Timberg
0703d78286
Enable custom legend box heights ( #7459 )
...
Enable custom legend box heights
2020-06-04 19:53:40 -04:00
Evert Timberg
e590a9792c
Only draw the tooltip if it is defined ( #7411 )
2020-05-26 20:03:18 -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
Samuel Gratzl
3e28825c0f
use direct imports instead of generic helpers import ( #7385 )
...
Split all helper functions in different files and import them directly where used
2020-05-21 16:41:56 -04:00
Jukka Kurkela
5920858513
Remove default export from plugins/index ( #7389 )
2020-05-21 16:37:37 -04:00
Jukka Kurkela
1228981e4f
Fix couple of small issues ( #7268 )
2020-04-13 19:33:15 -04:00
bjones526
e1796d361f
expose boxWidth and boxHeight on tooltip ( #6995 )
2020-03-06 12:17:59 -05:00
Jukka Kurkela
5e489f16f6
Issue 4991 ( #7084 )
...
* Fix remaining handleEvent issues
* Reduce lines
* Update tooltip always on replay
* Address issues
* Fix test
* More tooltip fixing
* Extend comment
2020-02-25 14:35:32 -05:00
Jukka Kurkela
a9ae64f1e2
Stop leaking fonts (and fillStyle) to ctx ( #7150 )
2020-02-23 13:08:01 -05: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
Jukka Kurkela
9bd34ecf28
Fill between datasets ( #7139 )
2020-02-21 18:58:14 -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
7397a41fac
Change remaining for of loops to regular ones ( #7103 )
2020-02-14 14:12:23 -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
f9cd9fdf76
JSDoc and other cleanup ( #7057 )
2020-02-05 08:27:02 -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
Ben McCann
26536f8849
Fix bug in opacity handling ( #7047 )
2020-02-01 08:20:22 -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
Jukka Kurkela
b76dd46d72
Filler fix ( #6989 )
...
* Filler fix
* Add an indicator of reference points
2020-01-21 18:30:23 -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
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
Evert Timberg
5f6c3df6dc
Title alignment options ( #6908 )
...
* Add alignment options for title plugin.
Alignment can be set to 'start', 'center'. or 'end'. A new sample has been added as well.
* Update sample file title
2020-01-05 14:59:57 -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
102a311b44
Rewrite filler ( #6795 )
...
Filler plugin is rewritten and test coverage increased
2019-12-31 12:56:15 -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
SansDK
1d35ebb290
(feature) Added separate top and bottom padding for title plugin. ( #6852 )
...
* (feature) Added separate top and bottom padding for title plugin.
* Added regular padding multiplier like how it was before.
* Now makes use of toPadding helper.
Fixed typo in toPadding helper.
* Fixed requested changes.
2019-12-20 08:21:20 -05:00
Jukka Kurkela
ce74eb76a1
Convert axis options from arrays to objects ( #6773 )
...
* Convert axis options from arrays to objects
* Updated all chart type defaults
* Throw errors when axis type or position are not specified
* Avoid raising unnecessary errors when merging options into the default configs
* Fix additional tests
* Ensure scale defaults are set if type is not explicitly defined
* Another step
* Include `scale` as `firstIDs.r`
* update docs
* Update for buildOrUpdateScales
* Update migration guide
* Add test back
2019-11-21 18:46:49 -05:00
L M
18e3bc0624
Allow filling above and below with different colors ( #6318 )
...
Two colors allowed : first one to fill above the target, second to fill below
Tests added
Docs edited
2019-11-21 13:48:31 -05:00
Ben McCann
64bc48ab53
Remove Element.initialize ( #6777 )
2019-11-21 07:06:15 -05:00
Jukka Kurkela
eb0751c6d0
Point cleanup ( #6755 )
...
* remove steppedLine from Point
* Remove tension from Point
* Migration guide, private
2019-11-17 20:28:13 -05:00
Jukka Kurkela
7f97adf5a0
Move scale defining options up from ticks ( #6738 )
...
* Move scale defining options up from `ticks`
* Include `ticks.reverse` in v3-migration
2019-11-15 12:11:13 -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
Ben McCann
08d133817b
Remove xLabel and yLabel from tooltip and chart and scales from element ( #6606 )
...
* Element should not have reference to chart
* Remove scales from element
* Remove deprecated xLabel and yLabel
2019-10-27 16:35: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