Commit Graph

3231 Commits

Author SHA1 Message Date
stockiNail
73da99a136 Tooltip Model documentation sounds not correct (#7592)
Tooltip Model documentation sounds not correct
Fixed #7591
2020-09-01 11:30:15 -04:00
Ben McCann
948355ef30 Add normalized option (#7538)
Add normalized option to time scales
2020-09-01 11:30:15 -04:00
Jukka Kurkela
5be87ca880 Generic registry for controllers, scales, elements and plugins (#7435)
* Generic registry for controllers, scales, elements and plugins
* Remove references to scale service
2020-09-01 11:30:15 -04:00
Ben McCann
291000a291 Remove duplicate tests (#7568) 2020-09-01 11:30:15 -04:00
Ben McCann
71f313facb Enable autoSkip for time scale to match others (#7570) 2020-09-01 11:30:15 -04:00
Ben McCann
b1dc6bd55a Fix padding for labels (#7572) 2020-09-01 11:30:15 -04:00
Ben McCann
5c2b4c2743 Use all timestamps for calculating offsets (#7573) 2020-09-01 11:30:15 -04:00
Ben McCann
fd2000c018 Pass context parameter to custom tooltip (#7579) 2020-09-01 11:30:15 -04:00
stockiNail
0cd445f724 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-09-01 11:30:15 -04:00
JohnMHoyt24
5b2a0942a5 Grammar updates to the description on the homepage (#7581) 2020-09-01 11:30:15 -04:00
Evert Timberg
46aa198b08 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-09-01 11:30:15 -04:00
Ben McCann
19432484d0 Update time scale docs to be Moment agnostic (#7558)
* Update time scale docs to be Moment agnostic
* Address code review comments
2020-09-01 11:30:15 -04:00
Ben McCann
a0a0a1dc55 Generate ticks from small to large (#7559)
* Generate ticks from small to large
* Add note to migration guide
2020-09-01 11:30:15 -04:00
Ben McCann
49f18c262c Add parameters to tooltip filter option (#7556) 2020-09-01 11:30:15 -04:00
Ben McCann
aa523da832 Fix financial sample (#7552)
* Fix financial sample
* Fix major unit determination by copying code from chartjs-chart-financial
2020-09-01 11:30:15 -04:00
Ben McCann
ff99600533 Fix typo in sample (#7557) 2020-09-01 11:30:15 -04:00
Ben McCann
9a0656d7ff Remove "for bugs" from bug issue template (#7562)
It's a bit redundant and doesn't add much
2020-09-01 11:30:15 -04:00
Evert Timberg
ce4fb0078e Update tooltip when the display position changes (#7469) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
5a08594ee5 ESM build, with helpers separated (#7400)
* ESM build, with helpers separated
* Remove umd environment
* Include the chunks in package
2020-09-01 11:30:15 -04:00
Ben McCann
eadd88caa7 Move timeseries fixtures to their own directory (#7536) 2020-09-01 11:30:15 -04:00
Ben McCann
1d90cf8e1e 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-09-01 11:30:15 -04:00
Ben McCann
18cf1a0eca Mark parameter as optional (#7530) 2020-09-01 11:30:15 -04:00
Evert Timberg
33e6a3d883 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-09-01 11:30:15 -04:00
Ben McCann
6a417a15b9 Split time scale into time and timeseries (#7525)
* Split time scale into time and timeseries
* Address comment
2020-09-01 11:30:15 -04:00
Jukka Kurkela
0a10908e8b Consistently resolve element options (#7520)
* Consistently resolve element options
* Add tests
2020-09-01 11:30:15 -04:00
Jukka Kurkela
42f05ee0dc Remove babel from tests (#7521)
* Remove babel from tests
* Remove unused require
2020-09-01 11:30:15 -04:00
Jukka Kurkela
7fb9822a60 Tooltip: Provide argument for custom callback (#7522) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
454d7fe4be Parse from custom properties in data (#7489)
* Parse from custom properties in data
* Resolve CC issues
* Review update
2020-09-01 11:30:15 -04:00
Jukka Kurkela
fabcdfec55 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-09-01 11:30:15 -04:00
Jukka Kurkela
c12b33160c Fix initial animations (#7511)
* Fix initial animations

* CC
2020-09-01 11:30:15 -04:00
stockiNail
5ea8e899a5 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-09-01 11:30:15 -04:00
Sebastian Niemann
f23ecd9be5 Turns off interpolation per default (#7386)
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
2020-09-01 11:30:15 -04:00
Jukka Kurkela
cce91b7381 Relocate array utils to helpers.collection (#7498) 2020-09-01 11:30:15 -04:00
Evert Timberg
3cf78310a3 Use consistent option context for scales (#7499) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
55fddd05b0 Read Title font options from correct place (#7502) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
c1c8037b28 Remove unused _scaleStacked cache (#7494) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
2aaab9522a Replace ineffective test with a fixture (#7491) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
978ccbe499 Fix measureText bug in spriting (#7492) 2020-09-01 11:30:15 -04:00
Evert Timberg
0fd5d17b7a Radial scale scriptable options (#7471)
Scriptable radialLinear options
2020-09-01 11:30:15 -04:00
Evert Timberg
df63d10cd9 Update horizontal bar chart default tooltip mode (#7488)
Ensures that vertical and horizontal bar charts behave the same way
2020-09-01 11:30:15 -04:00
Jukka Kurkela
20835caf99 Update packages (#7486) 2020-09-01 11:30:15 -04:00
Ben McCann
cc7b350448 Fix link to animations docs (#7484) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
0bdf0b497c Correctly determine min/max for Float Bar (#7398) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
1bd7bd06b9 Restore Set to arrayUnique (#7481) 2020-09-01 11:30:15 -04:00
Ben McCann
062f9a4e7c Remove unused parameter (#7480) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
ac8cb57005 Remove data checks and always re-parse data (#7458)
* Remove data checks and always re-parse data
* Fix removed helper namespace
2020-09-01 11:30:15 -04:00
Jukka Kurkela
d0a1d689fc Implement routing of defaults (#7453)
Implement routing of defaults
2020-09-01 11:30:15 -04:00
Jukka Kurkela
956149b498 Document the context properties for ticks (#7399)
Document the context properties for ticks
2020-09-01 11:30:15 -04:00
stockiNail
4c0f3b50bc Remove lineHeight property from ScaleTitle (#7477)
`lineHeight` it should not be used anymore because inside the `Font` object
2020-09-01 11:30:15 -04:00
Ben McCann
d9c1ec2f9f Better formatting of large tick values (#7335)
Better formatting of large tick values
2020-09-01 11:30:15 -04:00