Commit Graph

4003 Commits

Author SHA1 Message Date
Jukka Kurkela
cf951ac611
Add ability to hide specific data element (#9450) 2021-07-21 07:08:02 -04:00
Jukka Kurkela
151188e2f2
Add data/dataset indices to line segment context (#9451) 2021-07-21 07:00:05 -04:00
Jukka Kurkela
92e39a295d
Apply segment styles with only single segment (#9447) 2021-07-20 08:45:18 -04:00
Jukka Kurkela
ba2f158dc6
Fix interaction on partially visible bar (#9446) 2021-07-20 07:57:56 -04:00
Jukka Kurkela
c73add9d6c
Typescript 4.2+ compatibility (#9444) 2021-07-20 07:55:51 -04:00
Jukka Kurkela
566d722431
Don't draw points outside chartArea (#9443) 2021-07-20 07:52:41 -04:00
Jukka Kurkela
bc7c58d46d
Fix: config.platform was ignored (#9442) 2021-07-20 07:51:16 -04:00
Evert Timberg
8008488aba
Allow dataset specific ChartMeta type extensions (#9432) 2021-07-19 13:33:18 -04:00
Filip Borkiewicz
8dc7696348
Define bounds as a field common to all cartesian axes options (#9438)
Associated with #9437.
2021-07-19 13:06:12 -04:00
Evert Timberg
991f151f51
Linear scale handle min === max when abs(max) > Number.MAX_SAFE_INTEGER (#9433) 2021-07-18 11:14:33 -04:00
Jacco van den Berg
259f8e8471
lower default value of grid z index so it draws behind chart elements (#9426) 2021-07-16 11:16:31 -04:00
Jukka Kurkela
0094a58ef1
Properly update stacks when datasets index changes (#9425) 2021-07-16 07:15:54 -04:00
Evert Timberg
11045a731a
Fix center axis title positions (#9413)
* Fix the title positions for center positioned axes

* Handle center position for vertical axes

* Tests
2021-07-15 08:20:22 -04:00
Jukka Kurkela
fb45d8aa95
Update a failing fixture (#9414) 2021-07-14 07:39:22 -04:00
Evert Timberg
df49447867
Limit Math.asin inputs to the range [-1, 1] (#9410) 2021-07-14 09:14:29 +03:00
Jukka Kurkela
58999ea7ac
Bar: inflate rects by 0.33px to avoid artifacts (#9399)
* Bar: inflate rects by 0.33px to avoid artifacts
* Update fixture
* YAGNI
2021-07-13 18:20:24 -04:00
Drew J. Sonne
f315daf5cf
Add missing resizeDelay option to types (#9403)
This option is defined in the documentation (https://www.chartjs.org/docs/master/configuration/responsive.html) and the native js code, but not listed in the types. This allows its use in typescript.
2021-07-13 13:43:21 -04:00
Jukka Kurkela
c3e709e90e
Fix bar direction when minBarLength is applied (#9400) 2021-07-13 08:02:14 -04:00
Jukka Kurkela
31be610001
Fix stacked box dimension calculation with weights (#9394)
* Fix stacked box dimension calculation with weights

* Fix typo in filename
2021-07-12 07:45:03 -04:00
Jukka Kurkela
47d4b04836
Layout: support box stacking (#9364)
* Layout: support box stacking

* Add stackWeight and sample

* Cleanup, update docs and types

* Avoid div0

* missing semi
2021-07-11 06:23:42 -04:00
Evert Timberg
27b91b7458
Adjust legend hitboxes when RTL and each item has a different size (#9353)
* Adjust legend hitboxes when RTL and
each item has a different size

* Add test for RTL legend hitboxes
2021-07-10 18:36:46 -04:00
Evert Timberg
6ab2e8cdcd
Indicate that SubTitle is a plugin in TS types (#9386)
* Indicate that `SubTitle` is a plugin in TS types

* Export subtitle plugin options
2021-07-10 16:26:37 +03:00
Jacco van den Berg
655c635191
Add SubTitle to the list of all esm imports (#9384) 2021-07-10 08:09:33 -04:00
Evert Timberg
6349df98c6
Fix type linting for merge between two PRs (#9385) 2021-07-10 08:08:27 -04:00
Jukka Kurkela
d661bd788b
Resolve warnings from typings (#9363) 2021-07-09 07:03:11 -04:00
Evert Timberg
774c444cb9
Point label specific scriptable context (#9373) 2021-07-09 06:57:55 -04:00
Evert Timberg
ab613a301f
Improve LegendElement and TooltipItem type definitions (#9376)
* Document LegendElement properties in TS

* Pass chart type to LegendElement

* Update tooltip item dataset type
2021-07-09 06:57:30 -04:00
Jukka Kurkela
066130be4d
Decimation: Prevent buffer overflow (#9367) 2021-07-07 17:45:31 -04:00
Jukka Kurkela
840599637f
Add 'shape' mode for filler-plugin (#9360) 2021-07-05 17:03:19 -04:00
Nico-DF
b4dee5507c
Adding threshold option to decimation plugin (#9327) 2021-07-04 13:19:35 -04:00
Jukka Kurkela
dac7101131
Bump version to 3.4.1 (#9350) 2021-07-04 07:29:42 -04:00
Jukka Kurkela
28d6619555
Update deps (#9349) 2021-07-04 07:27:00 -04:00
Jukka Kurkela
124581a679
Add type tests for float bar / object data arrays (#9348) 2021-07-04 07:26:22 -04:00
Jukka Kurkela
bb2bddcfd4
Timeseries: support panning (#9345)
* Timeseries: support panning

* Update

* Missing semi, reduntant variables.

* cc
2021-07-03 18:44:44 +03: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
Evert Timberg
3934935caa
Enable pointStyle for doughnut, pie, and polar area charts (#9341)
* Enable pointStyle for doughnut, pie, and polar area charts

* Fix whitespace
2021-07-01 14:15:06 -04:00
Evert Timberg
3a790329c6
Ensure correct item is clicked when a horizontal legend is in RTL mode (#9340) 2021-07-01 14:14:05 -04:00
stockiNail
548d042099
Fixes spacing options in the table (#9338) 2021-07-01 11:09:44 -04:00
Evert Timberg
5f58c1f8e0
Update types with more possible events (#9336) 2021-07-01 09:37:49 -04:00
Jacco van den Berg
760fcff6fa
Fix typing of the isoWeekday field (#9330) 2021-07-01 08:24:40 -04:00
Tycho Bokdam
e5dee9f88e
Fix comma causing Terser issue (#9326) 2021-06-28 22:37:21 +03:00
Evert Timberg
4bdb57df8c
Bump to version 3.4.0 (#9322) 2021-06-26 12:04:20 -04:00
Jacco van den Berg
925fc71cc9
Clarify how to import and use the helper functions with bundlers (#9319) 2021-06-25 18:34:41 -04:00
Алексей Дорохов
860c130fe5
fix typings (#9318)
Co-authored-by: Aleksey Dorokhov <aleksey.dorokhov@x5.ru>
2021-06-25 08:07:47 -04:00
Jacco van den Berg
e4c7a73e31
resolves #9316 (#9317) 2021-06-25 08:07:11 -04:00
Ben Lumley
3bb0241dee
Fix broken link (#9315) 2021-06-25 14:08:38 +03:00
Jukka Kurkela
ed73dce18b
Docs: describe catching events with plugin (#9296) 2021-06-20 13:11:30 -04:00
Jukka Kurkela
c6976e8975
New plugin: subtitle (#9294)
* New plugin: subtitle

* Fix naive error for multiple charts
2021-06-20 07:34:55 -04:00
Jacco van den Berg
4560a87727
resolve auto register typescript failure (#9292) 2021-06-20 07:31:53 -04:00
Jukka Kurkela
87bd5785ff
Legend: fix layout padding handling (#9290) 2021-06-19 18:31:33 -04:00