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
bc8385e6bb
Fix layout refit logic ( #8567 )
...
* Fix layout refit logic
* CC
* Update fixture
2021-03-04 19:48:26 -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
Evert Timberg
c040b8255e
Options need to include dataset level defaults from main chart type ( #8534 )
2021-02-28 08:58:07 +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
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
2edd07d724
Config is no longer updated by options setter ( #8516 )
2021-02-24 16:34:29 -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
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
4c960fb138
Plugin options default scriptable/indexable=false ( #8497 )
...
* Plugin options default scriptable/indexable=false
* Update test
* Inherti desciptors
* Remove unreachable code
* remove unintentional change
* remove double default
2021-02-23 17:54:42 +02: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
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
9b214c08a5
Stop defaulting to r axis for Scale with id r ( #8477 )
2021-02-21 09:13:16 -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
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
d8ecf8bae5
Fix controller specific animations ( #8444 )
2021-02-17 15:29:12 -05:00
Jukka Kurkela
a73a8c4a5e
Fix couple of animation bugs ( #8439 )
2021-02-16 16:42:07 -05:00
Jukka Kurkela
a6a12282c4
Fix memory leak on destroy ( #8438 )
2021-02-16 10:26:22 -05:00
Jukka Kurkela
b77f2585b1
perf: resolver caching ( #8435 )
...
* perf: resolver caching
* Fix plugin caching
* resetCache
* Reduce duplication, cache only by keys cached
* Reduce lines
* reduce more lines
* Double plural, noop-caching of chart level options
2021-02-16 15:43:11 +02:00
Jukka Kurkela
9fb87a4fc2
Round canvas size to 0.1px resolution ( #8437 )
...
* Round canvas size to 0.1px resolution
* Types + docs
* typofix
2021-02-16 08:30:40 -05:00
Jukka Kurkela
5baafac8ad
Make Chart static properties and methods read only ( #8431 )
2021-02-15 15:06:37 -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
6de5b3fa9e
Small chores ( #8408 )
2021-02-10 18:06:48 +02: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
Jukka Kurkela
505afa7f13
Fix element creation for large dataset ( #8388 )
...
* Fix element creation for large dataset
* Fix syncing
* Remove duplication
2021-02-05 17:53:05 -05:00
Ben McCann
eb7ce4e5a0
Add raw data to context and rename dataPoint to parsed ( #8318 )
...
* Make the raw data point available in scriptable context
* Rename variables
* Update samples
2021-02-05 09:13:32 -05:00
Jukka Kurkela
4491732ad5
Prevent 2nd parse call with zero count ( #8379 )
2021-02-04 16:59:57 -05:00
Evert Timberg
650956b2e1
Create a new hook to enable data decimation ( #8255 )
...
* Create a new hook to enable data decimation
The `beforeElementUpdate` hook can be used to decimate data. The chart
elements will not be created until after this hook has fired ensuring that
if decimation occurs, only the needed elements will be created.
* Address code review feedback
* Rename hook to beforeElementsUpdate
* Simplify parsing logic
* Add decimation plugin to the core
* Allow a dataset to specify a different data key
* Decimation plugin uses the dataKey feature
* Refactor the decimation plugin to support configurable algorithms
* Lint the plugin changes
* Tests for the dataKey feature
* Convert test files to tabs
* Standardize on tabs in ts files
* Remove the dataKey feature
* Replace dataKey usage in decimation plugin
We define a new descriptor for the `data` key allowing the
plugin to be simpler.
* Disable decimation when indexAxis is Y
* Simplify the decimation width approximation
* Resolve the indexAxis correctly in all cases
* Initial documentation
* Reverse check
* Update TS definitions for new plugin options
* Move defineProperty after bailouts
* Add destroy hook
2021-02-01 16:37:32 -05:00
Jukka Kurkela
2890b7022b
Shave off some bytes ( #8362 )
2021-02-01 08:39:43 -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
Ben McCann
00dbe71dbb
Revert "Update spelling of cancellable ( #8236 )" ( #8312 )
...
This reverts commit e6dfc47927 .
2021-01-16 21:14:15 +02:00
LeeLenaleee
aa9a04a014
Skip delete undefined stack ( #8291 )
...
* fixes error on undefined stacks
* added test for functionality
2021-01-09 10:27:18 -05:00
Jukka Kurkela
610461d714
Use provided options in tooltip plugin ( #8254 )
2020-12-31 08:46:23 +02:00
Jukka Kurkela
d00ffdcd76
Tooltip: Render when animations are disabled ( #8252 )
2020-12-30 08:33:30 -05:00
Jukka Kurkela
2e43f787de
Fix small bugs when animations are disabled ( #8253 )
...
* Fix small bugs when animations are disabled
* Update test
2020-12-30 08:31:30 -05:00
Jukka Kurkela
c2091fc77d
Skip reset when animations are disabled ( #8248 )
...
* Skip reset when animations are disabled
* Review update
2020-12-29 10:10:32 -05:00
Jukka Kurkela
12682c619d
Always freeze cached options ( #8247 )
2020-12-29 08:45:07 -05:00
Jukka Kurkela
59000abd1d
Use cached Intl.NumberFormat everywhere ( #8244 )
2020-12-28 12:31:19 -05:00
Jukka Kurkela
66c92548e8
Rename helpers.clear to helpers.clearCanvas ( #8238 )
...
* Change parameters of helpers.clear
* Update test
2020-12-28 10:21:46 +02:00