Commit Graph

3486 Commits

Author SHA1 Message Date
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
Jukka Kurkela
2bbe244570
Update charts.md (#7609) 2020-07-12 18:28:39 -04:00
Ben McCann
30e197742d
Align the tooltip callbacks parameters with scriptable options (#7603)
Align the tooltip callbacks parameters with scriptable options
2020-07-12 18:26:13 -04:00
Ben McCann
fb68e91312
Fix errors in custom tooltip samples (#7595) 2020-07-12 07:52:57 -04:00
Jukka Kurkela
7024aad38f
PluginService using registry (#7590)
PluginService using registry
2020-07-11 18:08:45 -04:00
stockiNail
69c8cc7e7b
Tooltip Model documentation sounds not correct (#7592)
Tooltip Model documentation sounds not correct
Fixed #7591
2020-07-08 17:17:53 -04:00
Ben McCann
4cc3079e65
Add normalized option (#7538)
Add normalized option to time scales
2020-07-07 07:50:53 -04:00
Jukka Kurkela
6bd5ad5518
Generic registry for controllers, scales, elements and plugins (#7435)
* Generic registry for controllers, scales, elements and plugins
* Remove references to scale service
2020-07-06 17:38:04 -04:00
Ben McCann
f544707e2c
Remove duplicate tests (#7568) 2020-07-06 09:35:30 -04:00
Ben McCann
a33086bfc1
Enable autoSkip for time scale to match others (#7570) 2020-07-06 09:35:16 -04:00
Ben McCann
87c59fea73
Fix padding for labels (#7572) 2020-07-06 09:34:56 -04:00
Ben McCann
13e7a1163b
Use all timestamps for calculating offsets (#7573) 2020-07-06 09:34:43 -04:00
Ben McCann
6c38c31a0a
Pass context parameter to custom tooltip (#7579) 2020-07-06 09:34:06 -04:00
stockiNail
e878a3954a
The hover* options of bar chart doc page change as scriptable (#7584)
In the bar chart, the `hoverBackgroundColor`, `hoverBorderColor and `hoverBorderWidth` options are scriptable.
In the previous version (2.9.3) they weren't documented as scriptable but they are.
2020-07-05 08:07:39 -04:00
JohnMHoyt24
77a60af3bd
Grammar updates to the description on the homepage (#7581) 2020-07-01 16:05:08 -04:00
Evert Timberg
ff29522f5f
Fix tooltip caret border when caret is on right or bottom (#7565)
* Fix tooltip caret border when caret is on right or bottom
* Lint fixes

* Code review feedback
2020-06-29 07:55:09 -04:00
Ben McCann
533bbea766
Update time scale docs to be Moment agnostic (#7558)
* Update time scale docs to be Moment agnostic
* Address code review comments
2020-06-29 07:53:29 -04:00
Ben McCann
919e50b9fc
Generate ticks from small to large (#7559)
* Generate ticks from small to large
* Add note to migration guide
2020-06-29 07:52:28 -04:00
Ben McCann
2ca155cce1
Add parameters to tooltip filter option (#7556) 2020-06-29 07:51:20 -04:00
Ben McCann
faa218dbbd
Fix financial sample (#7552)
* Fix financial sample
* Fix major unit determination by copying code from chartjs-chart-financial
2020-06-29 07:51:05 -04:00
Ben McCann
9ea8292b6e
Fix typo in sample (#7557) 2020-06-29 07:50:35 -04:00
Ben McCann
f353a5039e
Remove "for bugs" from bug issue template (#7562)
It's a bit redundant and doesn't add much
2020-06-29 07:50:10 -04:00
Evert Timberg
ba5c9e01c6
Update tooltip when the display position changes (#7469) 2020-06-25 13:51:34 -04:00
Jukka Kurkela
40e9029a59
ESM build, with helpers separated (#7400)
* ESM build, with helpers separated
* Remove umd environment
* Include the chunks in package
2020-06-23 19:02:51 -04:00
Ben McCann
8ac700961a
Move timeseries fixtures to their own directory (#7536) 2020-06-21 08:30:34 -04:00
Ben McCann
1c2a03225e
Remove lookup table from TimeScale (#7532)
* Add getDecimalForValue
* Move interpolate to timeseries scale
* Remove getTimestampsForTable from time scale
* Remove parameters from buildLookupTable
* Restore getValueForPixel
* Remove table from time scale
2020-06-20 16:39:39 -04:00
Ben McCann
09a6aea396
Mark parameter as optional (#7530) 2020-06-20 07:31:04 -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
Ben McCann
c2cd00ca90
Split time scale into time and timeseries (#7525)
* Split time scale into time and timeseries
* Address comment
2020-06-19 10:21:39 -04:00
Jukka Kurkela
6cf97859f0
Consistently resolve element options (#7520)
* Consistently resolve element options
* Add tests
2020-06-18 17:44:55 -04:00
Jukka Kurkela
99580664af
Remove babel from tests (#7521)
* Remove babel from tests
* Remove unused require
2020-06-18 17:38:09 -04:00
Jukka Kurkela
2e4d623bf3
Tooltip: Provide argument for custom callback (#7522) 2020-06-18 17:37:27 -04:00
Jukka Kurkela
40871b0062
Parse from custom properties in data (#7489)
* Parse from custom properties in data
* Resolve CC issues
* Review update
2020-06-18 17:36:53 -04:00
Jukka Kurkela
59a1af91ac
Replace horizontalBar with indexAxis: 'y' (#7514)
* Replace horizontalBar with indexAxis: 'y'
* Fix drawing of line for last x-position
* Consistently determine axis of scale
* Add test
2020-06-18 17:35:52 -04:00
Jukka Kurkela
c439d816fa
Fix initial animations (#7511)
* Fix initial animations

* CC
2020-06-16 17:56:42 -04:00
stockiNail
988464323f
Remove lineHeight property from LegendTitlt (#7508)
The updates 
 * removes `lineHeight` property from LegendTitle because already defined into Font.
 * changes the link tp `Fonts.md` because it was wrong.
2020-06-15 17:27:13 -04:00
Sebastian Niemann
8b628c33b2
Turns off interpolation per default (#7386)
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
2020-06-12 18:03:52 -04:00
Jukka Kurkela
1bfd1daa75
Relocate array utils to helpers.collection (#7498) 2020-06-12 18:02:12 -04:00
Evert Timberg
fc65679a07
Use consistent option context for scales (#7499) 2020-06-12 18:01:48 -04:00
Jukka Kurkela
d0d9d7dd5c
Read Title font options from correct place (#7502) 2020-06-12 17:58:09 -04:00
Jukka Kurkela
41f0f12af8
Remove unused _scaleStacked cache (#7494) 2020-06-12 17:55:51 -04:00
Jukka Kurkela
0b3ef9c1a6
Replace ineffective test with a fixture (#7491) 2020-06-11 18:21:10 -04:00
Jukka Kurkela
281ee42def
Fix measureText bug in spriting (#7492) 2020-06-11 08:50:17 -04:00
Evert Timberg
d315934513
Radial scale scriptable options (#7471)
Scriptable radialLinear options
2020-06-11 08:49:54 -04:00
Evert Timberg
21fff1e4fe
Update horizontal bar chart default tooltip mode (#7488)
Ensures that vertical and horizontal bar charts behave the same way
2020-06-10 07:50:15 -04:00
Jukka Kurkela
e97acd95f9
Update packages (#7486) 2020-06-09 17:16:03 -04:00
Ben McCann
ac8142b4dc
Fix link to animations docs (#7484) 2020-06-09 17:15:36 -04:00
Jukka Kurkela
026482a0cf
Correctly determine min/max for Float Bar (#7398) 2020-06-09 17:15:05 -04:00
Jukka Kurkela
87a0653e57
Restore Set to arrayUnique (#7481) 2020-06-09 13:15:06 -04:00
Ben McCann
6e02f30252
Remove unused parameter (#7480) 2020-06-09 07:51:12 -04:00