Dan Onoshko
0c51ecd451
fix: respect aspect ratio with container height ( #10646 )
...
* fix: respect aspect ratio with container height
* docs: add info into migration guide
2022-09-02 08:03:41 -04:00
Dan Onoshko
8ff853c60e
feat: remove default axis override when custom id is given ( #10643 )
...
* feat: remove default axis override when custom id is given
* docs: add info into migration guide
* test: fix tests for the feat
* docs: add info into migration guide
* test: fix tests for the feat
* feat: review fixes
* feat: review fixes
2022-09-02 07:52:48 +03:00
Jacco van den Berg
3df687a87c
Remove destroy hook ( #10549 )
...
* remove destroy hook
* revert package-lock.json changes
* update test
* add migration guide note
* fix karma failing test
* change way of importing package.json
2022-08-05 19:51:14 +03:00
Jacco van den Berg
1a1e68380f
Improve error message with id of the canvas ( #10495 )
...
* improve error message with id of the canvas
* update test
2022-07-20 12:51:34 -04:00
Evert Timberg
43889f247c
Document tooltip draw hooks and only call hooks when the tooltip draws ( #10276 )
...
* Document tooltip draw hooks and only call hooks when the tooltip draws
* Update tests
2022-04-03 10:09:46 -04:00
Dimitri Papadopoulos Orfanos
a7d98fb1a0
Fix typos found by codespell ( #10103 )
2022-01-27 09:24:55 -05:00
Jukka Kurkela
0d250a1fbf
Fix setActiveElements behavior after a mouse event ( #9992 )
...
* Fix setActiveElements behavior after a mouse event
* Better variable name
2021-12-17 00:34:53 +02:00
Jukka Kurkela
ba6b446b04
Limit active element changes to chartArea ( #9970 )
...
* Limit active element changes to chartArea
* CC, remove duplicate ChartEvent interface
* CC2
2021-12-08 16:44:45 +02:00
Jukka Kurkela
bccb1276f0
Detect detach/attach in same observation ( #9876 )
...
* Detect detach/attach in same observation
* Missing `!`, better tests
* reduce duplication
2021-11-27 21:46:00 +02:00
Jukka Kurkela
838d40b2c8
Synchronize data visibility with data changes ( #9857 )
...
* Synchronize data visibility with data changes
* avoid babel spread bug
* Simpler?
* one more
* simple enough, cc?
2021-11-18 00:13:31 +02:00
Josh Kelley
aac0bef060
Fix cleaning up metasets ( #9656 )
...
* Fix cleaning up metasets
I believe it's a mistake to only delete the metaset if it has a valid controller; see f191f2f5
for where this behavior was introduced.
This is a minimal fix for #9653 ; as discussed there, it may also be worth updating `updateHoverStyle`.
As of #7030 , `this._metasets` should always be defined, so checking whether it's undefined is no longer necessary.
* Add a test covering metaset behavior
* Add a regression test for #9653 ; fix `toHaveSize` usage
* Fix test failure
2021-10-23 18:46:33 +03:00
Jukka Kurkela
3f23aaba9a
Add sanity checks for scale options ( #9624 )
2021-09-06 07:51:18 +03:00
Jukka Kurkela
fca0309223
Detect attach/detach from any level ( #9557 )
2021-08-18 18:14:09 -04:00
Evert Timberg
d0eac36381
Ensure getPrototypeOf will not crash on plugin options with no scopes ( #9431 )
...
* Ensure getPrototypeOf will not crash on plugin options with no scopes
* Code review improvements
2021-07-24 06:40:03 +03:00
Jukka Kurkela
bc7c58d46d
Fix: config.platform was ignored ( #9442 )
2021-07-20 07:51:16 -04:00
Jukka Kurkela
9326309afd
Fix error when swapping dataset locations ( #9183 )
2021-05-30 07:39:00 -04:00
Evert Timberg
e29ba78cd1
Allow the events option to be changed at runtime ( #8928 )
2021-04-17 14:08:36 -04:00
Jukka Kurkela
9e06f90d14
Fix: Initialize data object when replaced ( #8918 )
2021-04-17 07:29:41 -04:00
stockiNail
7ae1064ab9
Apply scale context to ticks scriptable options instead of chart context ( #8839 )
...
* Fixes #8835
* context as argument because protected
* fixes test case on formatters
* reverts previous commits and sets the scale context in the scale init
* changes documentation about linear ticks, adding scriptable Yes
2021-04-07 16:45:39 -04:00
Jukka Kurkela
515d941df7
Proxy: make sure set value ends up in first scope ( #8787 )
2021-04-02 13:47:05 -04:00
Jukka Kurkela
dd99005b5a
Remove line interaction overrides + hover.onHover ( #8770 )
...
* Remove interaction mode overrides + hover.onHover
* Restore bar override
2021-04-01 13:47:11 -04:00
Evert Timberg
4ef04a8f78
Allow changing the aspect ratio ( #8659 )
...
* Allow changing the aspect ratio
* Add test and require `resize()` call
* Update to respect maintainAspectRatio
2021-03-18 23:07:32 +02:00
Jukka Kurkela
416062bf68
Update tick positioning ( #8657 )
...
* Update tick positioning
* Update tests
2021-03-17 18:22:21 -04:00
Jukka Kurkela
79cc6d3206
Use maxOverflow as minimum layout padding ( #8650 )
...
* Use maxOverflow as minimum layout padding
* fixes
2021-03-16 16:32:29 -04:00
Jukka Kurkela
2bff4c1640
Resize: width > 0, height = 0. Use aspectRatio 2 ( #8632 )
2021-03-13 15:11:20 -05:00
Jukka Kurkela
8d6e87881a
Relocate chart type and dataset type defaults ( #8563 )
...
* Relocate chart type and dataset type defaults
* Update types
* Separate overrides and descriptors
* Update derived sample, use merge for inherit
* Don't merge overrides
* Review update
2021-03-06 10:34:52 -05:00
Evert Timberg
a23f1de6df
Rename scaleLabel to title in scale options ( #8576 )
2021-03-05 23:22:55 -05:00
Jukka Kurkela
bc8385e6bb
Fix layout refit logic ( #8567 )
...
* Fix layout refit logic
* CC
* Update fixture
2021-03-04 19:48:26 -05:00
Evert Timberg
c040b8255e
Options need to include dataset level defaults from main chart type ( #8534 )
2021-02-28 08:58:07 +02:00
Jukka Kurkela
061e3dbf2f
Fix calling of onResize ( #8529 )
...
* Fix calling of onResize
* Try to fix the bugging animation test
* try again
* and the actual fix
* maybe now
2021-02-26 14:55:43 -05:00
Jukka Kurkela
cfd9c98575
Option resolution with proxies ( #8374 )
...
* Option resolution with proxies
* Remove plugin fallback to root options/defaults
* Update core plugins, reduntant font fallbacks
* Add some notes
2021-02-15 14:42:32 -05:00
Jukka Kurkela
a8329e4f13
Update chartjs-test-utils to v0.2.1 ( #8407 )
...
* Update chartjs-test-utils to v0.2.0
* to 0.2.1
2021-02-10 16:17:08 +02:00
Jukka Kurkela
ddfbcf777a
Update eslint-config-chartjs to v0.3.0 ( #8406 )
2021-02-10 08:21:39 -05:00
Jukka Kurkela
ffe4ab14dc
Remove options.scale, in favor of options.scales.r ( #8393 )
...
Remove options.scale, in favor of options.scales.r
2021-02-06 16:19:21 -05:00
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