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
4d173c6b8a
Allow tooltip callback override in dataset ( #8640 )
2021-03-14 11:29:54 -04:00
Jukka Kurkela
85123ac074
Add option to turn off grouping of bar datasets ( #8641 )
...
* Add option to turn off grouping of bar datasets
* Disregard time offset
2021-03-14 11:27:57 -04:00
Jukka Kurkela
f744c3bde6
Add x/y shorthand for padding options ( #8637 )
2021-03-14 11:21:30 -04:00
38elements
347353a1c9
Add og:image ( #8635 )
2021-03-14 11:08:12 -04:00
Jukka Kurkela
51b2345b67
Loosen the max-statements lint rule for tests ( #8638 )
2021-03-14 11:07:39 -04:00
Evert Timberg
c4cf7b2e08
Document the different parts of cartesian and radial scales with examples ( #8636 )
2021-03-14 08:22:28 +02:00
Evert Timberg
1a2cc27f3a
Add documentation on how plugin hooks interact with the chart ( #8634 )
...
* Add documentation on how plugin hooks interact with the chart
* Add draw.io file for flowcharts
2021-03-14 08:12:06 +02: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
Evert Timberg
96f6b42c57
Use font lineHeight for tooltip alignment ( #8631 )
...
* Use font lineHeight for tooltip alignment
* Remove toFontString usage from tooltip
2021-03-13 15:14:48 -05:00
Jukka Kurkela
2bff4c1640
Resize: width > 0, height = 0. Use aspectRatio 2 ( #8632 )
2021-03-13 15:11:20 -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
Jukka Kurkela
a026b60653
Change default autoSkipPadding to 3 ( #8629 )
2021-03-13 13:30:19 -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
aae8a06c37
Update context documentation ( #8626 )
2021-03-13 08:05:57 -05:00
Jukka Kurkela
aee979da54
Types: fix bubble chart options ( #8625 )
2021-03-13 08:04:59 -05:00
Jukka Kurkela
49b902aeab
Remove rollup-plugin-size (vulnerability) ( #8624 )
2021-03-13 08:03:45 -05:00
Jacco van den Berg
ec5fb6b601
Update v3-migration.md ( #8622 )
...
Add note in migration guide about ability to use the `auto` register path as a npm module
2021-03-13 14:03:04 +02:00
Jukka Kurkela
b98974f5b2
Fix some animation issues ( #8616 )
...
* Fix some animation issues
* Stop animating shared options on reset
* cc
2021-03-11 18:06:55 -05:00
Jukka Kurkela
bedc3f1575
Fix autoSkip ( #8619 )
...
* Fix autoSkip
* Add tests
2021-03-11 16:25:16 -05: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
1e296ccf4c
Clear stacks when data is replaced ( #8617 )
2021-03-11 16:20:07 -05:00
Ikko Ashimine
e513a90427
Fix typo in animations.mdx ( #8615 )
...
transtion -> transition
2021-03-11 08:19:33 +02:00
Jukka Kurkela
a4231486eb
helpers.curve cleanup ( #8608 )
...
* helpers.curve cleanup
* Use distanceBetweenPoints
2021-03-10 09:32: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
0c838432fc
Disable warning of unused variables in types/tests ( #8607 )
2021-03-10 08:13:04 -05:00
Ikko Ashimine
7dce94e820
Fix typo in linear.mdx ( #8605 )
...
minumum -> minimum
2021-03-10 09:23:05 +02: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
c27c27a081
Fix typo in auto package ( #8601 )
2021-03-09 20:05:41 +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
Evert Timberg
9a042672a7
Update scriptable tooltip context docs ( #8599 )
2021-03-09 08:08:50 -05: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
Jacco van den Berg
5a48604df7
Update legend.md ( #8582 )
...
Noticed from https://github.com/chartjs/Chart.js/issues/6185#issuecomment-748097030 that there is an option to get the legend in the chart, this was not documented. Only difference I noticed from kurkles screenshot is that the legend now shows in the middle instead of in the top corner.
https://jsfiddle.net/Leelenaleee/wszdv8q0/2/
2021-03-07 22:43:31 +02: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
1e6a3fb8e6
Bump to 3.0.0-beta.13 ( #8580 )
2021-03-06 10:44:15 -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
e3cdd7323a
Move niceNum to helpers.math, cleanup IE fallbacks ( #8570 )
2021-03-05 08:10:24 -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
Evert Timberg
91628c1449
Tooltip specific scriptable context ( #8561 )
...
* Update plugin to use it's own tooltip context
* Scriptable tooltip option types
* Tests
* Update types to use UnionToIntersection
* Update TooltipItem to use UnionToIntersection
2021-03-04 08:25:24 -05:00
Jukka Kurkela
3e551d5f27
Use karma-spec-reporter and suppress passed ( #8564 )
2021-03-04 08:24:52 -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
Jukka Kurkela
413b04ffa6
Types: Update ScriptableContext ( #8556 )
...
* Types: Update ScriptableContext
* Add data array type test
2021-03-02 07:41:17 -05:00