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
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
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
bedc3f1575
Fix autoSkip ( #8619 )
...
* Fix autoSkip
* Add tests
2021-03-11 16:25:16 -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
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
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
Evert Timberg
279b6ae1da
Enable multi-line axis titles ( #8579 )
2021-03-06 10:18:32 -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
Jukka Kurkela
08b76b0efd
Time: limit offset to sane values, gen >= 2 ticks ( #8560 )
2021-03-02 17:00:03 -05:00
Jukka Kurkela
118cff7cfc
Remove distribution option from fixtures ( #8559 )
2021-03-02 16:03:08 -05:00
Ben McCann
cc8e513d0f
Add test for normalized option ( #8552 )
2021-03-01 15:27:36 -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
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
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
5ab5552acb
Fix layout bug when there are no visible boxes ( #8507 )
2021-02-24 16:27:11 -05:00
Jukka Kurkela
4207645a9a
Time scale: skip invalid data ( #8508 )
2021-02-23 15:31:43 -05:00
Jukka Kurkela
65bfacd9a5
Add outerRadius option to doughnut/pie ( #8487 )
2021-02-21 17:30:37 -05:00
Jukka Kurkela
6f0e7959df
Only consider visible vertical boxes in layout ( #8483 )
2021-02-21 15:43:31 -05:00
Jukka Kurkela
5285735c0f
Fix ticks.mirror ( #8482 )
2021-02-21 14:27:14 -05:00
Jukka Kurkela
ce0f7ff903
Update polar animation tests to less error prone ( #8461 )
2021-02-19 11:44:37 -05:00
Jukka Kurkela
e8f954249a
Update doughnut animation fixture ( #8457 )
2021-02-18 18:04:48 -05:00
Evert Timberg
e6742e31ac
Add tests for polarArea chart animations ( #8455 )
...
* Add tests for polarArea chart animations
* Remove commented code
2021-02-18 17:29:15 -05:00
Jukka Kurkela
e2a47342ba
Add fixture for bar hide/show animation ( #8453 )
...
* Add fixture for bar hide/show animation
* Cleanup
* try using longer times
2021-02-18 19:23:15 +02:00
Jukka Kurkela
b468bffa9b
Add test for default doughnut animations ( #8446 )
2021-02-17 15:42:38 -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
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
LeeLenaleee
ae0c8dd457
align text inside chart for far-aligned labels passing test ( #8359 )
...
* align text inside chart for far-aligned labels
* added fix for failing test on suggestion of @kurkle
Co-authored-by: Marcel Samyn <marcel.samyn@lab900.com >
2021-01-31 15:19:40 -05:00
Evert Timberg
da0535e1ff
Horizontal axis with center position should display labels ( #8221 )
...
* Horizontal axes with center positions should have labels
* Linting
* Test updates
* Increase the tolerance for one test
2020-12-22 11:33:53 -05:00
Evert Timberg
55a26e69ba
Add options to configure tick styling independent of grid lines ( #8215 )
...
* Enable axis tick styling independent of grid lines
* Change tickMarkLength to tickLength for consistency with new options
* Add new scale options to TS definitions
2020-12-22 11:27:57 -05:00
Jukka Kurkela
7a2acebc28
Layout: enforce box limits, reject <0 chartArea ( #8193 )
...
* Skip chartArea boxes when chartArea <= 0
* Legend: limit to maxWidth/maxHeight
* Layout: enforce box limits, reject <0 chartArea
* Update legend fixtures
2020-12-18 12:56:04 -05:00
Jukka Kurkela
979cd4131b
Fix legend alignment issues ( #8168 )
2020-12-15 08:50:13 +02:00
Jukka Kurkela
d6b4fe2629
LineElement: no fill by default ( #8111 )
...
* LineElement: no fill by default
* Update negative-times fixture
2020-11-28 15:07:46 -05: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
e3ad31893d
Restore datasets namespace (revert 6955) ( #8090 )
2020-11-24 22:27:51 +02:00
Jukka Kurkela
021561072b
Disable all plugins when options.plugins = false ( #8098 )
...
Disabling all plugins when options.plugins = false
2020-11-23 17:58:03 -05:00
Jukka Kurkela
ef89abb84b
CategoryScale: automatically add missing labels ( #8053 )
...
CategoryScale: automatically add missing labels
2020-11-14 17:00:17 -05:00
Jukka Kurkela
23bf7c0c89
Preserve scriptable context ( #7981 )
...
* Preserve scriptable context
* CC, utilize `index` in tests
* Update example to utilize context
2020-11-01 07:39:08 -05:00
Jukka Kurkela
ff76a236bf
Rename lineTension back to tension ( #7978 )
2020-10-31 14:54:14 +02:00
Jukka Kurkela
607c37eb8c
Complete rename of showLines to showLine ( #7977 )
2020-10-30 13:05:21 -04:00
Dan Manastireanu
6869a41d40
feat: Draw tooltips with point styles. Closes #7774 ( #7972 )
...
* feat: Draw tooltips with point styles. Closes #7774
* chore: Add tooltip usePointStyle docs
* chore: Add tests and visual tests for tooltip usePointStyle
* chore: Update typescript with tooltip usePointStyle
2020-10-29 22:55:40 +02:00
Dan Manastireanu
aad748dc5a
feat: Make options.layout.padding scriptable. Closes #7873 ( #7968 )
2020-10-28 11:28:17 -04:00