Jukka Kurkela
10292c6912
Linear: determine grace amount from range ( #9719 )
2021-10-04 17:43:04 -04:00
Evert Timberg
fea3f20762
Account for floating point error in niceNum helper ( #9343 )
...
* Account for floating point error in niceNum helper
* Better solution
2021-07-01 15:07:32 -04:00
Jukka Kurkela
7265bb51d5
Update chartjs-test-utils and mis-sized fixtures ( #9135 )
2021-05-20 14:59:55 +03:00
Jukka Kurkela
a6f0b37dfe
Further improve linear tick collision estimation ( #9129 )
...
* Further improve linear tick collision estimation
* More tolerance
* Re-create fixtures
* And more tolerance
2021-05-20 10:01:47 +03:00
Evert Timberg
78009390ad
Show correct decimal places when using count but min
is not an integer ( #9122 )
...
* Show correct decimal places when using count but `min` is not an integer
* Fix lint issues
2021-05-19 18:31:15 -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
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
697e3ffde7
Fix: tick spacing when min=0 | niceMin or max=0 ( #8811 )
2021-04-04 07:03:48 -04:00
Jukka Kurkela
416062bf68
Update tick positioning ( #8657 )
...
* Update tick positioning
* Update tests
2021-03-17 18:22:21 -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
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
24b14193b3
Linear: Skip ticks that would overlap with min/max ( #8569 )
2021-03-04 19:37:46 -05:00
Jukka Kurkela
ddfbcf777a
Update eslint-config-chartjs to v0.3.0 ( #8406 )
2021-02-10 08:21:39 -05: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
0b3ef9c1a6
Replace ineffective test with a fixture ( #7491 )
2020-06-11 18:21:10 -04:00