Jukka Kurkela
33c16382b3
Allow scale to auto-adjust it's min when stacked ( #9045 )
2021-05-07 15:48:55 -04:00
Jukka Kurkela
7c3a412887
Add includeBounds option for cartesian ticks ( #9020 )
...
* Add includeBounds option for cartesian ticks
* Types, test and fix
* lint
* Improve linear tick min/max collision detection
* Update comments
2021-05-07 09:03:37 +03: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
Jukka Kurkela
3e319f79ab
Scale: draw border on separate layer after grid ( #8936 )
2021-04-18 07:38:46 -04:00
Jukka Kurkela
e1404ac834
Time: cache options needed by parse ( #8933 )
2021-04-18 07:30:54 -04:00
Evert Timberg
af7965fc31
Cartesian scale tick backdrop ( #8931 )
2021-04-18 12:49:22 +03: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
7d08bab45d
Time: Use callback helper on ticks.callback ( #8822 )
2021-04-04 11:24:42 -04:00
Jukka Kurkela
697e3ffde7
Fix: tick spacing when min=0 | niceMin or max=0 ( #8811 )
2021-04-04 07:03:48 -04:00
Jukka Kurkela
bd1df1bc34
Logarithmic: handle null/NaN values ( #8793 )
2021-04-03 08:01:48 -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
64593ed74c
Time: Fix offset with low data counts ( #8740 )
2021-03-27 15:55:54 -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
e51a401449
Category: parse to valid index values only ( #8697 )
2021-03-22 17:20:03 -04:00
Evert Timberg
375d856a87
Expose formatNumber as a helper ( #8683 )
2021-03-21 11:04:27 +02:00
Jukka Kurkela
851861e9cc
Fix category scale invalid data handling ( #8668 )
...
* Fix category scale invalid data handling
* Fix NaN
2021-03-18 16:34:08 -04:00
Evert Timberg
1f6d0a244b
Linear Scale: Ability to specify a fixed number of ticks ( #8643 )
...
* Option to specify exact number of ticks on linear scale
* Fix issue description in tests
* Add tests for conditions where min/max do not align with niceMin/niceMax
* Refactor linear tick generation algorithm
* Add TS definitions
* Update docs
* Code review feedback + lint fixes
2021-03-15 08:49:25 -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
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
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
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
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
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
e3cdd7323a
Move niceNum to helpers.math, cleanup IE fallbacks ( #8570 )
2021-03-05 08:10:24 -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
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
4207645a9a
Time scale: skip invalid data ( #8508 )
2021-02-23 15:31:43 -05:00
Jukka Kurkela
57c8027e7c
Stop reading fixedStepSize from tick options ( #8466 )
2021-02-20 13:56:50 -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
59000abd1d
Use cached Intl.NumberFormat everywhere ( #8244 )
2020-12-28 12:31:19 -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
Jukka Kurkela
04c45aacda
Make PointLabels color scriptable ( #8194 )
2020-12-18 12:36:38 -05:00
UrielMaD
92646a973d
Radius validation for drawRadiusLine ( #8191 )
2020-12-18 12:35:13 -05:00
Jukka Kurkela
6814b79b65
Fix CategoryScale.getValueForPixel with autoSkip ( #8101 )
2020-12-02 06:51:33 +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
0c515c0e67
Unify cartesian scale tick order ( #8062 )
2020-11-16 14:59:53 -05:00
Jukka Kurkela
1b6226342a
Refactor/cleanup range option handling ( #8057 )
2020-11-16 20:19:59 +02:00
Jukka Kurkela
ef89abb84b
CategoryScale: automatically add missing labels ( #8053 )
...
CategoryScale: automatically add missing labels
2020-11-14 17:00:17 -05:00
Evert Timberg
c428797592
Enable suggestedMin and suggestedMax setts for logarithmic axes ( #7955 )
2020-10-25 10:38:41 -04:00
paul cheung
7ce9710f33
fix some typos ( #7914 )
2020-10-18 16:52:56 +03:00
Jukka Kurkela
ff811aaddf
Fix: beginAtZero for logarighmic ( #7899 )
2020-10-16 10:32:37 -04:00