Jukka Kurkela
85123ac074
Add option to turn off grouping of bar datasets ( #8641 )
...
* Add option to turn off grouping of bar datasets
* Disregard time offset
2021-03-14 11:27:57 -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
32fd5af904
Radial: min 1/2 of the max radius as chartArea ( #8630 )
...
* Radial: min 1/2 of the max radius as chartArea
* Keep fooling TS
2021-03-13 13:47:21 -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
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
a4231486eb
helpers.curve cleanup ( #8608 )
...
* helpers.curve cleanup
* Use distanceBetweenPoints
2021-03-10 09:32:54 -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
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
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
b005143470
scale.category: options.min/max can be index ( #8594 )
2021-03-09 08:08:36 -05: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
160534f913
Add 'single'
mode for stacking ( #8586 )
...
* Add `'single'` mode for stacking
* Update fixture
2021-03-07 10:52:31 -05:00
Jukka Kurkela
7ccf9e2d4d
Add grace
option for linear scale ( #8581 )
...
* Add `grace` option for linear scale
* cc
2021-03-06 17:18:49 -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
279b6ae1da
Enable multi-line axis titles ( #8579 )
2021-03-06 10:18:32 -05:00
Evert Timberg
a23f1de6df
Rename scaleLabel to title in scale options ( #8576 )
2021-03-05 23:22:55 -05:00
Jukka Kurkela
e3cdd7323a
Move niceNum to helpers.math, cleanup IE fallbacks ( #8570 )
2021-03-05 08:10:24 -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
08b76b0efd
Time: limit offset to sane values, gen >= 2 ticks ( #8560 )
2021-03-02 17:00:03 -05:00
Jukka Kurkela
78d3d30d56
Add _allKeys descriptor for Object.keys behavior ( #8553 )
2021-03-01 16:44:14 -05:00
Ben McCann
3214005322
Fix normalize when null values at edge of dataset ( #8547 )
...
* Fix normalize when null values at edge of dataset
* Fix test with mismatched number of points
2021-03-01 15:06:48 -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
Evert Timberg
c040b8255e
Options need to include dataset level defaults from main chart type ( #8534 )
2021-02-28 08:58:07 +02:00
Jacco van den Berg
9741942976
rename tooltip.custom property to tooltip.external ( #8523 )
...
* rename tooltip.custom property to tooltip.external
* Implement feedback
* missed 1
2021-02-27 18:18:12 +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
53ea370f5c
Clean up easing functions ( #8518 )
...
* Clean up easing functions
* Remove leftover comment
2021-02-24 18:43:37 -05:00
Ben McCann
7c75310a0c
Use null for skipped values instead of NaN ( #8510 )
...
* Use null for skipped values instead of NaN
* Document skipped values when parsing is false
* Update src/core/core.datasetController.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
* Update src/core/core.datasetController.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
* fix lint issue
* use isFinite
* revert change checking for pixel values
* ternary readability
* revert accidental paren movement
* test with parsing: false
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2021-02-24 18:20:11 -05:00
Jukka Kurkela
12e9020ab7
Remove unused getRingIndex from Doughnut ( #8521 )
2021-02-24 18:13:51 -05:00
Jukka Kurkela
8796a1ba1d
Fix stacking bug when a dataset is removed ( #8520 )
2021-02-24 17:31:17 -05:00
Jukka Kurkela
b06cd36697
Rename cutoutPercentage to cutout + chores ( #8514 )
2021-02-24 16:58:01 -05:00
Jukka Kurkela
2edd07d724
Config is no longer updated by options setter ( #8516 )
2021-02-24 16:34:29 -05:00
Jukka Kurkela
b31352c665
Reduce duplication in PointElement ( #8517 )
2021-02-24 16:28:18 -05:00
Jukka Kurkela
5ab5552acb
Fix layout bug when there are no visible boxes ( #8507 )
2021-02-24 16:27:11 -05:00
Jukka Kurkela
692d8a4128
Remove unreachable code paths from plugins ( #8513 )
2021-02-24 21:33:07 +02: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
ee74dd646a
Add resizeDelay option ( #8509 )
...
* Add resizeDelay option
* Extract helper
2021-02-23 18:40:57 -05:00
Jukka Kurkela
4207645a9a
Time scale: skip invalid data ( #8508 )
2021-02-23 15:31:43 -05:00