Commit Graph

3700 Commits

Author SHA1 Message Date
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
Jukka Kurkela
d9a2f845f8
Types: Update LayotPosition (#8555) 2021-03-02 07:39:05 -05:00
Jacco van den Berg
33ff1fe059
update defaults in tooltip (#8554) 2021-03-02 08:59:10 +02:00
Jukka Kurkela
78d3d30d56
Add _allKeys descriptor for Object.keys behavior (#8553) 2021-03-01 16:44:14 -05:00
Ben McCann
cc8e513d0f
Add test for normalized option (#8552) 2021-03-01 15:27:36 -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
Ben McCann
e2a50b957e
Remove empty dependencies block from package.json (#8550) 2021-03-01 15:06:28 -05:00
stockiNail
bc6ef46651
Fixes sample in the doc about missing animations configuration (#8549) 2021-03-01 15:06:01 -05:00
Jukka Kurkela
ae95a8221d
Fix function support on _fallback (#8545) 2021-03-01 12:19:55 -05:00
Jukka Kurkela
86b1892810
Resolve to false only when _fallback is used (#8542)
* Resolve to false only when _fallback is used
* Typo
* 2nd part
2021-02-28 17:32:56 -05:00
Evert Timberg
c5dcf5a20d
Update chart extension docs + add samples (#8540)
* Update docs on chart extensions
* Working sample for derived chart types
* Add derived axis example
* Remove duplicated line
2021-02-28 16:02:44 -05:00
Jukka Kurkela
b795151554
Remove the constantly failing test (#8538) 2021-02-28 08:49:34 -05:00
Jukka Kurkela
9043325a6e
Provide auto-registering entry point (#8429) 2021-02-28 09:02:44 +02:00
Evert Timberg
c040b8255e
Options need to include dataset level defaults from main chart type (#8534) 2021-02-28 08:58:07 +02:00
Evert Timberg
d08eb147fc
Clarify interaction docs to indicate they apply to all interactions (#8537)
* Clarify interaction docs to indicate they apply to all interactions

* Update note on modes documentation to indicate interaction options exist

* Fix ytpo
2021-02-28 02:46:58 +02:00
Jukka Kurkela
f23807f743
Bump version to beta.12 (#8532) 2021-02-27 13:30:26 -05:00
Jacco van den Berg
9741942976
rename tooltip.custom property to tooltip.external (#8523)
* rename tooltip.custom property to tooltip.external

* Implement feedback

* missed 1
2021-02-27 18:18:12 +02:00
Jukka Kurkela
3460ef126e
Types: Add couple of tests, move utils to new file (#8526) 2021-02-26 16:29:10 -05:00
Jacco van den Berg
bd303f4a2c
Update wording in docs about merging options (#8533) 2021-02-26 14:57:34 -05: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
Jukka Kurkela
bb82aaa320
Update types so instance can be assigned to a variable of type Chart (#8525)
* Update types
* Remove outdated comments
2021-02-25 19:06:32 -05:00
Jukka Kurkela
53ea370f5c
Clean up easing functions (#8518)
* Clean up easing functions
* Remove leftover comment
2021-02-24 18:43:37 -05:00