Jukka Kurkela
d1a243efec
Delay data to elements synchronization to update ( #9105 )
2021-05-15 08:22:15 -04:00
Jukka Kurkela
fbff165942
Make sure context indices are up to date ( #9101 )
2021-05-14 17:16:22 -04:00
Josh Kelley
1df4883aff
Fix detecting changed events ( #9050 )
...
* Fix detecting changed events
Because `this._listeners` may contain both event handlers from options and internal event handlers for responsive support, the `setsEqual` check would often fail, causing event handlers to be unnecessarily detached and reattached and fired.
If I'm understanding correctly, this is the root cause of #9049 .
* Use a separate object for responsive listeners
Correctly update events when responsive property changes as well as when requested events change.
* Code review feedback
2021-05-10 08:48:03 -04:00
Toni Dietze
c955ffad64
Round canvas.style dimensions to avoid blurring ( #9015 )
...
When canvas.height and canvas.width are set, the numbers are rounded to
integers. The same rounding must be applied to canvas.style.height and
canvas.style.width to avoid scaling of the canvas which would lead to
blurring.
Acknowledging that canvas.height and canvas.width are integers, the
framebuffer is now only redrawn if those integer values change.
2021-05-08 08:11:52 +03:00
Jukka Kurkela
1a1e677699
Fix: Avoid negative layout dimensions ( #9027 )
2021-05-05 07:49:44 -04:00
Jukka Kurkela
44e62e77ca
Improve linear tick generators collision estimation ( #8983 )
...
* Increase distance to min/max tick to 1/3 space
* Better estimation on linear tick collision
* Lint fix
* Remove unused change
2021-04-28 16:41:57 -04:00
Evert Timberg
b92f9e52fd
Only enable the bar borderRadius at the end of the stacks ( #8941 )
...
* Only enable the bar borderRadius at the end of the stacks
* Float bars always get borders enabled
* Tests
* Update documentation
2021-04-18 16:30:54 -04:00
Jukka Kurkela
3e319f79ab
Scale: draw border on separate layer after grid ( #8936 )
2021-04-18 07:38:46 -04:00
Prateek R Patil
c107f895aa
Fix for allowing parsing:false with stacks ( #8934 )
...
* Initial fix for allowing parsing:false with stacks
* Added test from #8935 as requested.
Co-authored-by: tinfoilpancakes <tfm357@gmail.com >
2021-04-18 07:28:56 -04:00
Evert Timberg
af7965fc31
Cartesian scale tick backdrop ( #8931 )
2021-04-18 12:49:22 +03:00
Evert Timberg
e29ba78cd1
Allow the events option to be changed at runtime ( #8928 )
2021-04-17 14:08:36 -04:00
Jukka Kurkela
ca50287a76
Add initial property to animation callbacks ( #8926 )
2021-04-17 08:09:22 -04:00
Jukka Kurkela
853f094937
Scale: Make sure grace is applied only once ( #8913 )
...
* Scale: Make sure grace is applied only once
* Add description to fixture
2021-04-17 07:31:15 -04:00
Jukka Kurkela
9e06f90d14
Fix: Initialize data object when replaced ( #8918 )
2021-04-17 07:29:41 -04:00
Jukka Kurkela
8e535c574c
Skip ticks by callback value as documented ( #8914 )
2021-04-17 07:28:33 -04:00
Jukka Kurkela
0ae0fd4b2a
Limit onHover to chartArea ( #8794 )
2021-04-10 16:13:30 -04:00
Jukka Kurkela
9e70913bed
Enable event filtering per plugin ( #8876 )
2021-04-10 15:18:30 -04:00
Jukka Kurkela
7fab66ccd1
Support mirror option on x-axis ( #8867 )
2021-04-10 09:01:38 -04:00
Jukka Kurkela
1ffdecfe68
Consider dynamically positioned scales for padding ( #8868 )
2021-04-10 08:58:39 -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
e1ddaa8992
Dissociate border options from grid options ( #8823 )
...
* Dissociate border options from grid options
* Update docs
2021-04-04 14:19:07 -04:00
Jukka Kurkela
1451e5aee6
Add ability to stack different dataset types ( #8797 )
2021-04-03 09:23:35 -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
Jukka Kurkela
bc2c92e65c
Ensure scriptable context reflects updated data ( #8765 )
2021-04-01 07:17:02 -04:00
Jukka Kurkela
1a5a15265a
Revert "Scale: draw offset grid for labels before autoSkip ( #8748 )" ( #8752 )
...
This reverts commit cdba66ccef .
2021-03-30 08:00:19 -04:00
Jukka Kurkela
cdba66ccef
Scale: draw offset grid for labels before autoSkip ( #8748 )
...
* Scale: draw offset grid for labels before autoSkip
* fix tests
2021-03-29 16:53:47 -04:00
Jukka Kurkela
b2c7baf10d
Avoid recursive event replay loops ( #8738 )
...
* chart._lastEvent = null while processing onHover
* Pass replay flag to external tooltip
* Add test for replay
* cc
2021-03-27 06:11:51 -04:00
Jukka Kurkela
37080c9a8d
Add comments for finding registry hook calls ( #8734 )
2021-03-27 00:10:41 +02:00
Jukka Kurkela
bbf298f461
formatters.numeric: verify ticks length ( #8705 )
...
* formatters.numeric: verify ticks length
* use tickValue as fallback delta, add tests
* cc, chore
2021-03-23 16:14:22 -04:00
Jukka Kurkela
9499a1e1ef
Move scale defaults to separate file ( #8692 )
2021-03-21 18:13:50 -04:00
Jukka Kurkela
bd9bc69c0c
Move autoSkip related functions to separate file ( #8691 )
2021-03-21 17:07:28 -04:00
Evert Timberg
375d856a87
Expose formatNumber as a helper ( #8683 )
2021-03-21 11:04:27 +02: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
282c85827a
Re-enable oversized boxes ( #8662 )
2021-03-18 07:12:43 -04: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
420aa027b3
Exclude base-line from bar size ( #8648 )
...
* Exclude base-line from bar size
* lint
* add to types
2021-03-16 08:49:19 -04:00
Jukka Kurkela
0a579b6813
Add alignToPixles option for scales ( #8649 )
2021-03-16 08:41:51 -04:00
Jukka Kurkela
99596b0434
Reduce duplication in drawGrid ( #8647 )
2021-03-16 08:07:17 -04:00
Jukka Kurkela
a026b60653
Change default autoSkipPadding to 3 ( #8629 )
2021-03-13 13:30:19 -05:00
Evert Timberg
6ac89cbb25
Rename scale gridLines options to be clearer ( #8628 )
...
* Rename `options.gridLines` to `options.grid`
* Rename `offsetGridLines` to `offset`
2021-03-13 19:49:09 +02:00
Jukka Kurkela
9799dbd5a0
Scale: autoSkip before fit ( #8627 )
...
Scale: autoSkip now occurs before fit in the update process
2021-03-13 11:36:12 -05:00
Jukka Kurkela
aae8a06c37
Update context documentation ( #8626 )
2021-03-13 08:05:57 -05:00
Jukka Kurkela
b98974f5b2
Fix some animation issues ( #8616 )
...
* Fix some animation issues
* Stop animating shared options on reset
* cc
2021-03-11 18:06:55 -05:00
Jukka Kurkela
bedc3f1575
Fix autoSkip ( #8619 )
...
* Fix autoSkip
* Add tests
2021-03-11 16:25:16 -05:00
Jukka Kurkela
7c8ee6e77f
Add rollup-plugin-size and shave couple of bytes ( #8618 )
...
* Add rollup-plugin-size
* Shave couple of bytes
2021-03-11 16:20:54 -05:00
Jukka Kurkela
1e296ccf4c
Clear stacks when data is replaced ( #8617 )
2021-03-11 16:20:07 -05:00
Jukka Kurkela
d48a62a4e9
Add backgroundColor for scales ( #8606 )
...
* Add backgroundColor for scales
* Loosen the threshold
2021-03-10 08:18:10 -05:00
Jukka Kurkela
f7ebedc367
Scale: refactor drawTitle, add tests ( #8598 )
...
* Scale: refactor drawTitle, add tests
* CC, lint
* update
2021-03-09 08:35:43 -05:00
Jukka Kurkela
160534f913
Add 'single' mode for stacking ( #8586 )
...
* Add `'single'` mode for stacking
* Update fixture
2021-03-07 10:52:31 -05:00