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
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
5285735c0f
Fix ticks.mirror ( #8482 )
2021-02-21 14:27:14 -05:00
Jacco van den Berg
9f071b0f23
Update index.esm.d.ts ( #8472 )
...
* Update index.esm.d.ts
tickValue is to my knowledge always a number or a string so this will make it so people wont have to parse it themselfs
* Update core.scale.js
Update typedef according to types update
2021-02-21 09:16:11 -05: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
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
422d26d32a
Optimize context object construction ( #8413 )
...
* perf: context construction
* avoid setPrototypeOf
2021-02-14 10:34:49 -05:00
Jukka Kurkela
ddfbcf777a
Update eslint-config-chartjs to v0.3.0 ( #8406 )
2021-02-10 08:21:39 -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
Jukka Kurkela
ad84d285d8
Rename LayoutItem.fullWidth to fullSize ( #8358 )
2021-01-31 13:44:44 -05:00
Evert Timberg
7415517c83
Cache data limits to ensure they are only computed once per update ( #8234 )
...
* Cache data limits to ensure they are only computed once per updaet
* Replace `invalidateCaches` on scales with `beforeLayout`
2020-12-26 14:37:23 -05:00
Evert Timberg
988b3c5d2b
Create standardized text render method ( #8227 )
...
* Create standardized text render method
* Document renderText options and enable configurable decoration width
* Add tests for font rendering
* Split color definition to it's own file
* renderText supports setting styles
* Mock context needs to track textBaseline
* renderText can set textAlign and textBaseline
* renderText does not mutate the context + translate/rotate
* Explicitly set the text decoration style
* Move useStroke logic into renderText
* Cartesian scale: Update computeLabelItems to avoid duplicate allocations
2020-12-26 11:23:02 -05:00
Evert Timberg
1b0ed0c8c5
Scriptable tick colours ( #8222 )
2020-12-22 12:11:00 -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
b2d5a5fa97
Update defaults and types for tick stroke ( #8195 )
2020-12-18 12:36:18 -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
ddc72fcfbb
Align font options with CSS ( #8066 )
...
* Align font options with CSS
* Review comments
2020-11-19 20:59:24 +02:00
Jukka Kurkela
a35dade663
Enable bounds option to all cartesian axes ( #8060 )
2020-11-16 15:01:47 -05:00
Jukka Kurkela
1b6226342a
Refactor/cleanup range option handling ( #8057 )
2020-11-16 20:19:59 +02:00
Jukka Kurkela
d74a5d7552
Add type to context objects ( #8007 )
2020-11-08 08:43:55 -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
paul cheung
b31a815382
some minor typo fix ( #7913 )
2020-10-18 09:35:21 -04:00
Matthew Crumley
7a35f3cb3e
Fix Maximum call stack size exception in _computeLabelSizes ( #7906 )
...
Issue #7881
2020-10-18 06:52:56 +03:00
Jukka Kurkela
c9b38b63dc
Share min sample size with all bars on same scale ( #7897 )
...
Share min sample size with all bars on same scale
2020-10-16 08:04:22 -04:00
Evert Timberg
1ca60808b4
Shorten alignment settings for axes ( #7886 )
...
* Rename crossAlignment to crossAlign
* Update alignment to align for cartesian axes
2020-10-14 08:27:54 -04:00
Evert Timberg
29f1358328
Cartesian axis label cross alignment ( #7874 )
...
* Refactor Y axis alignment to it's own method
* Label Cross alignment
* Add documentation of new setting
* Update docs with live sample
2020-10-12 10:22:13 -04:00
Evert Timberg
dc4eac6323
Cartesian axis text alignment ( #7846 )
...
* Generate textBaseline per tick label
* Enable configuration of tick alignment
* Add image based tests of text alignment options
2020-10-10 11:38:55 -04:00
Jukka Kurkela
06b5325778
Add maxWidth/maxHeight options for legend ( #7852 )
2020-10-06 07:41:16 -04:00
Jukka Kurkela
8d36927b29
Normalize context creation for option resolution ( #7847 )
...
* Normalize context creation for option resolution
* Pass mode to _computeAngle
2020-10-05 09:03:16 -04:00
Jukka Kurkela
1a9b452cda
Limit pixel values further to 16bit integer range ( #7848 )
2020-10-05 08:37:12 -04:00
Jukka Kurkela
17e27e16cc
Limit pixel values to 32bit integer range ( #7800 )
2020-09-15 15:33:59 -04:00
Jukka Kurkela
e756fb93a3
Resolve fonts through options.font ( #7674 )
...
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts
2020-08-03 12:32:58 -04:00
Ben McCann
4cc3079e65
Add normalized option ( #7538 )
...
Add normalized option to time scales
2020-07-07 07:50:53 -04:00
Ben McCann
87c59fea73
Fix padding for labels ( #7572 )
2020-07-06 09:34:56 -04:00
Jukka Kurkela
40871b0062
Parse from custom properties in data ( #7489 )
...
* Parse from custom properties in data
* Resolve CC issues
* Review update
2020-06-18 17:36:53 -04:00
Evert Timberg
fc65679a07
Use consistent option context for scales ( #7499 )
2020-06-12 18:01:48 -04:00
Jukka Kurkela
026482a0cf
Correctly determine min/max for Float Bar ( #7398 )
2020-06-09 17:15:05 -04:00
Jukka Kurkela
5a83a80811
Move font* to font.* ( #7383 )
2020-05-21 17:07:06 -04:00
Ben McCann
a301ca148c
Add a scale.init method ( #7346 )
2020-05-12 16:44:40 -04:00
Ben McCann
3f58edbe80
Remove unused method parameter ( #7229 )
2020-03-29 15:02:27 -04:00
Ben McCann
0e196fc514
getPixelForTick cleanup ( #7225 )
2020-03-27 19:48:04 -04:00
Ben McCann
e46420e595
Cleaner handling of fitting no ticks ( #7212 )
2020-03-22 13:40:16 -04:00
Jukka Kurkela
d801e56106
Update dependencies and alter privacy of functions ( #7138 )
...
* Update dependencies
* Fix privacy problems
* color lib & consistency
* Review update
* getLabelCapacity
* Review update
2020-02-22 08:35:16 -05:00
Ben McCann
428411319a
Create a Tick typedef ( #7124 )
2020-02-21 18:56:39 -05:00
Ben McCann
e2145e3b55
Turn on excludeNotExported ( #7121 )
2020-02-20 12:18:21 -05:00
Ben McCann
2e5b072251
Turn on some TypeScript checks ( #7116 )
...
Turn on some TypeScript checks
2020-02-20 09:43:16 -05:00
Ben McCann
028ee30505
Make margins private ( #7123 )
2020-02-19 14:15:48 -05:00