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
396cbcb979
Bubble: Fix maxOverflow before elements update ( #8736 )
2021-03-26 18:20:05 -04:00
Evert Timberg
4d69a8510c
fix: Scales correctly respect the locale setting when generating labels ( #8710 )
2021-03-24 09:33:47 -04: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
e51a401449
Category: parse to valid index values only ( #8697 )
2021-03-22 17:20:03 -04:00
Jukka Kurkela
81342d6c65
Fix _isPointInArea for undefined point ( #8678 )
2021-03-19 16:09:13 -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
97136d0cbf
Add textAlign for legend labels ( #8665 )
...
* Add textAlign for legend labels
* Update tests
2021-03-18 07:37:03 -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
a6b3b99675
Fix tooltip positioning issues ( #8646 )
...
* Fix tooltip positioning issues
* Update fixture, add npm run dev:ff
* Refactor determineXAlign
* Simplify more
* remove unneeded change
2021-03-16 08:06:05 -04:00
Jukka Kurkela
f744c3bde6
Add x/y shorthand for padding options ( #8637 )
2021-03-14 11:21:30 -04:00
Evert Timberg
d84db2cefc
Radial scale point label backdrop color ( #8633 )
...
* Radial scale point label backdrop color
* Update default tests
* backdropPadding is a single setting
* Up the tolerance a bit
* Update tick backdrop padding options
2021-03-13 17:37:43 -05:00
Evert Timberg
96f6b42c57
Use font lineHeight for tooltip alignment ( #8631 )
...
* Use font lineHeight for tooltip alignment
* Remove toFontString usage from tooltip
2021-03-13 15:14:48 -05:00
Jukka Kurkela
2bff4c1640
Resize: width > 0, height = 0. Use aspectRatio 2 ( #8632 )
2021-03-13 15:11:20 -05: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
a4231486eb
helpers.curve cleanup ( #8608 )
...
* helpers.curve cleanup
* Use distanceBetweenPoints
2021-03-10 09:32:54 -05:00
Jukka Kurkela
4c3e992657
RadialLinear: add padding option for point labels ( #8604 )
...
* RadialLinear: add padding option for point labels
* lint
* only resolve padding once
2021-03-10 08:40:22 +02:00
Jukka Kurkela
7ec99c38c1
Move startAngle to scale options ( #8593 )
2021-03-08 13:36:54 -05:00
Evert Timberg
275fdaf3da
Expose radial scale point label positions ( #8588 )
2021-03-07 16:58:45 -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
Jukka Kurkela
24b14193b3
Linear: Skip ticks that would overlap with min/max ( #8569 )
2021-03-04 19:37:46 -05:00
Evert Timberg
91628c1449
Tooltip specific scriptable context ( #8561 )
...
* Update plugin to use it's own tooltip context
* Scriptable tooltip option types
* Tests
* Update types to use UnionToIntersection
* Update TooltipItem to use UnionToIntersection
2021-03-04 08:25:24 -05:00
Jukka Kurkela
78d3d30d56
Add _allKeys descriptor for Object.keys behavior ( #8553 )
2021-03-01 16:44:14 -05:00
Jukka Kurkela
ae95a8221d
Fix function support on _fallback ( #8545 )
2021-03-01 12:19:55 -05:00
Jukka Kurkela
86b1892810
Resolve to false only when _fallback is used ( #8542 )
...
* Resolve to false only when _fallback is used
* Typo
* 2nd part
2021-02-28 17:32:56 -05:00
Jukka Kurkela
b795151554
Remove the constantly failing test ( #8538 )
2021-02-28 08:49:34 -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
b06cd36697
Rename cutoutPercentage to cutout + chores ( #8514 )
2021-02-24 16:58:01 -05:00
Jukka Kurkela
65a601476c
Remove debug option from animation ( #8512 )
...
* Remove debug option from animation
* Add converage for visible animation
* Update visible animation fn
2021-02-24 21:32:54 +02:00
Jukka Kurkela
639c34f89e
Fix set/delete oprations on Proxies ( #8506 )
2021-02-23 19:46:31 +02:00
Jukka Kurkela
4c960fb138
Plugin options default scriptable/indexable=false ( #8497 )
...
* Plugin options default scriptable/indexable=false
* Update test
* Inherti desciptors
* Remove unreachable code
* remove unintentional change
* remove double default
2021-02-23 17:54:42 +02:00
Evert Timberg
8c4e862a2c
Merge tooltip padding settings ( #8493 )
2021-02-22 08:30:25 +02:00
Jukka Kurkela
5d5e48d01b
Isolate properties / modes from animation options ( #8332 )
...
* Isolate properties / modes from animation options
* tabs, something wrong with the linter
* Update misleading variable name
2021-02-20 09:02:22 -05:00
Jacco van den Berg
d264672381
Fix/getRelativePosition NaN value with native event ( #8459 )
...
* fix bug where onClick value returned NaN because originalEvent does not exist
* add test for this behaviour
* test to async
2021-02-19 17:57:59 -05:00
Jukka Kurkela
aa5e0fe413
Remove core plugin fallbacks to root options ( #8462 )
...
* Remove core plugin fallbacks to root options
* Legend font color default fallbacks
2021-02-19 17:53:01 -05:00
Jukka Kurkela
850e6e4588
Update resolver fallback logic ( #8456 )
2021-02-19 08:30:39 +02:00
Jukka Kurkela
5411be10a0
Add support for common object methods to Proxies ( #8452 )
2021-02-18 10:04:46 -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
505afa7f13
Fix element creation for large dataset ( #8388 )
...
* Fix element creation for large dataset
* Fix syncing
* Remove duplication
2021-02-05 17:53:05 -05:00