Jukka Kurkela
c1aeba1e67
Add new scale hooks for plugins ( #8112 )
...
* Add new scale hooks for plugins
* Add notes
* cc
* cancelability
2020-12-02 06:51:47 +02:00
Jukka Kurkela
78dbeea1f0
Add new hooks for plugins ( #8103 )
...
* Notify beforeUpdate on disabled plugins
cc?
cc2
cc3
typo
* init, unInit, enabled, disabled
self review :)
update the new hook signatures to unified
merge error
* Review update
* start/stop, cc
* types, jsdoc
* stop between destroy and uninstall
2020-11-28 22:57:45 +02:00
Jukka Kurkela
913a01a3a6
Move title, tooltip and legend to options.plugins ( #8089 )
...
* Move title, tooltip and legend to options.plugins
* Update tooltip.md
* Update legend.md and title.md
* Add migration notes
* typo
* Types
* Restore plurals
* One more s, restore tabs
* All plugins disabled
* lint
* cc
2020-11-25 08:50:12 +02:00
Jukka Kurkela
a29af5c62c
Fix disabling hover ( #8097 )
2020-11-23 16:13:45 -05:00
Jukka Kurkela
aae53c835e
Use same merging logic for init and update ( #8006 )
...
* Use same merging logic for init and update
* Add test
2020-11-04 15:52:20 -05:00
Jukka Kurkela
4daf37e864
Delay resize to just before draw when animating ( #7989 )
...
* Remove unused properties
* Delay resize to just before draw when animating
* Remove silent resize, update migration guide
* Fix typo in migrations doc
Co-authored-by: Evert Timberg <evert.timberg+github@gmail.com>
2020-11-01 08:15:43 -05:00
Takuya Uehara
7b6737a209
Check index bounds of datasets for isDatasetVisible ( #7986 )
...
* Check index bounds of datasets
* Add test for isDatasetVisible
2020-10-31 08:10:17 -04:00
Jukka Kurkela
4f2511aff3
Relocate dataset defaults to defaults.controllers ( #7979 )
2020-10-30 18:34:32 -04:00
Jukka Kurkela
6a72bcbeca
Rename showLines to showLine ( #7936 )
2020-10-21 08:13:27 -04:00
Jukka Kurkela
f5c4f97504
Add interaction options ( #7922 )
...
* Add interaction options
* Add migration note
2020-10-19 07:24:06 -04:00
Evert Timberg
a8a83d12cd
Provide APIs to set active (hovered) and tooltip elements. ( #7845 )
...
Provide APIs to set active (hovered) and tooltip elements.
Chart.setActiveElements will set the hovered items.
Chart.tooltip.setActiveElements will set the tooltip items.
2020-10-05 17:14:38 -04:00
Evert Timberg
8438da9e84
Provide method to lookup a chart from a canvas ( #7843 )
...
* Provide method to lookup a chart from a canvas
* Throw an error during construction if a canvas is in use
* Migration docs for new constructor behaviour
2020-10-04 11:08:38 -04:00
Jukka Kurkela
d5eaa12d96
Fix: update chart when attached ( #7758 )
2020-09-04 16:47:36 -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
Evert Timberg
3ec3ac716f
Cleanup Event Handling code to match style of tooltip plugin. ( #7467 )
...
* Cleanup Event Handling code to match style of tooltip plugin.
Eliminates saving two arrays of items on the chart prototype. The `onHover`
callback now receives the wrapped event instead of the native one.
2020-06-08 07:31:00 -04:00
Yiwen Wang
94763bff35
Fix chart resizing issue ( #7297 ) ( #7298 )
...
Fix chart resizing issue
2020-05-25 16:54:55 -04:00
Jukka Kurkela
5a83a80811
Move font* to font.* ( #7383 )
2020-05-21 17:07:06 -04:00
Jukka Kurkela
a3dddb45d9
Use global element hidden status for Pie charts ( #7156 )
...
Use global element hidden status for Pie / polarArea charts
2020-03-01 09:07:39 -05:00
Jukka Kurkela
bfe34214ac
Use ResizeObserver and MutationObserver to detect detach/attach/resize ( #7104 )
...
* Use Resize/MutationObserver to detect detach/attach/resize
* Cleanup
* Review update
* Restore infinite resize detection (#6011 )
2020-02-17 11:00:03 -05:00
Jukka Kurkela
b05699eec5
Clean up after test ( #6976 )
...
* Clean up
* Make sure the event is inside chart are
2020-01-21 15:43:41 -05:00
Jukka Kurkela
767ffc05ce
Resize on zoom ( #6974 )
...
* Resize on zoom
* Add test
2020-01-17 19:07:28 -05:00
Jukka Kurkela
a1c2dd6fb6
Throttle all events (to 1 / frame each) ( #6953 )
...
* Throttle all events
* Asynchronize event tests
2020-01-14 07:34:08 -05:00
Jukka Kurkela
16b1fb11b4
waitForResize before resizing ( #6954 )
...
* waitForResize before resizing
* Change the failing test
* Change the other leaking test too
2020-01-13 19:35:44 -05:00
Jukka Kurkela
f1677b6652
Limit interactions to chartArea (+/-0.5px) ( #6943 )
...
Limit interactions to chartArea (+/-0.5px)
2020-01-11 18:10:32 -05:00
Evert Timberg
9cb65d2c97
Add API to change data visibility ( #6907 )
2020-01-06 17:16:00 -05:00
Jukka Kurkela
f4792306e0
Remove global from defaults ( #6893 )
2020-01-03 14:07:38 -05:00
Jukka Kurkela
0b68786c04
Resync metasets array when indices change. ( #6864 )
...
* Resync metasets array when indices change.
* Make sure _metasets is initialized
2019-12-28 09:49:34 -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
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
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
a3392e0e59
Remove index and datasetIndex from Element ( #6688 )
...
Remove `index` and `datasetIndex` properties from elements.
2019-11-10 07:52:12 -05:00
Ben McCann
eef153de40
Upgrade dependencies ( #6662 )
2019-10-31 18:03:00 -04:00
RatherLogical
50fd869334
Update tooltip content and styling on update() ( #6635 )
...
Update tooltip content and styling on update()
2019-10-29 06:39:07 -04:00
Jukka Kurkela
0228776e66
Remove deprecated interaction modes ( #6625 )
...
* Remove deprecated interaction modes
* Use default modes
2019-10-28 18:11:38 -04:00
Akihiko Kusanagi
bf094c59db
Assign unique scale IDs ( #6291 )
2019-06-09 15:45:12 +08:00
Ben McCann
d6a5ea0d36
Implement per-dataset type (default and per-chart) options ( #5999 )
2019-05-06 22:52:40 +02:00
Jukka Kurkela
58e154c7da
Avoid time related deprecation warnings in tests ( #6246 )
2019-05-06 22:46:22 +02:00
Janelle deMent
b9290a20de
Make line options scriptable ( #6128 )
2019-03-21 09:06:39 +01:00
Jukka Kurkela
5fc934eae1
Fix responsive resize on rtl page ( #6063 )
2019-02-13 17:08:38 +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
serhii-yakymuk
c51ac8a64a
Make animation duration consistent across browsers ( #5331 )
2019-01-02 16:13:56 +01:00
Akihiko Kusanagi
d29ec5a485
Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options ( #5914 )
2018-12-20 09:56:06 +01:00
Simon Brunel
75aa44eef6
Upgrade dev dependencies to reduce vulnerabilities ( #5840 )
2018-11-18 09:33:34 +01:00
Xingan Wang
333f2eba99
Fix scale options update ( #4198 )
...
- allow options to be updated in-place or as a new object
- re-merge new options and rebuild scales & tooltips
- preserve reference to old scale if id/type not changed
- related tests and new sample also added.
- update document about options update
- update doc and example
2017-11-29 22:52:23 +01:00
jcopperfield
e080e782ab
Fix bumpy line on smooth data set ( #4944 )
...
Linear scale getPixelForValue() method doesn't round the returned value anymore.
2017-11-14 13:56:45 +01:00
Evert Timberg
13e9676625
Reset tooltip when calling Chart.update ( #4840 )
2017-10-28 10:20:34 +02:00
JewelsJLF
8ac0257f8d
Add "beforeTooltipDraw" and "afterTooltipDraw" plugin hooks ( #4793 )
2017-10-14 23:29:35 +02:00
Simon Brunel
3fe198c860
Fix responsive issue when the chart is recreated ( #4774 )
...
Chrome specific issue that happens when destroying a chart and re-creating it immediately (same animation frame?). The CSS animation used to detect when the canvas become visible is not re-evaluated, breaking responsiveness. Accessing the `offsetParent` property will force a reflow and re-evaluate the CSS animation.
2017-10-07 17:43:09 +02:00
Ben McCann
2922dc96cf
Allow updating dataset types ( #4586 )
2017-08-02 07:29:34 +02:00
Simon Brunel
2c52209ba7
Replace the IFRAME resizer by DIVs ( #4596 )
...
Resize detection is now based on scroll events from two divs nested under a main one. Implementation inspired from https://github.com/marcj/css-element-queries .
2017-08-02 07:25:55 +02:00