4389 Commits

Author SHA1 Message Date
Dan Onoshko
b51c523366 chore: version bump (#11034) v4.1.2 2023-01-05 17:00:35 +01:00
Dan Onoshko
2cde2bf41d fix: package.json fields fixes for old jest-resolver versions (#11033) 2023-01-05 10:28:07 -05:00
Dan Onoshko
fd505acced fix: fix Plugin interface (#11016) 2022-12-22 16:17:28 -05:00
Jacco van den Berg
237a893415 Add Z index to border options (#11008) 2022-12-20 12:23:16 -05:00
Jacco van den Berg
9bc0f76c40 Update link to UMD bundle for master (#11004) 2022-12-20 16:42:29 +01:00
Matvey Kottsov
9440dc3679 fix: missing markdown link in docs (#11006) 2022-12-20 16:27:33 +02:00
Dan Onoshko
da348044f7 chore: replace cp with js code (#11000) 2022-12-19 09:39:23 +01:00
Evert Timberg
810ceb7741 Bump to 4.1.1 (#10997) v4.1.1 2022-12-17 11:06:49 -05:00
Guy B
9306d7fd49 fix: avoid resize loop when browser zoom is set to 90% (#10971)
* test: new test to reproduce issue #10951

* test:  validate the canvas style too

* fix: Avoid reassigning the the chart size. For specific values of pixelRatio the assignment would cause the size to reduce by 1px. Since it's called from the ResizeObserver it will be stuck in a loop that constantly reduce the size of the chart and canvas.

* Revert "fix: Avoid reassigning the the chart size. For specific values of pixelRatio the assignment would cause the size to reduce by 1px. Since it's called from the ResizeObserver it will be stuck in a loop that constantly reduce the size of the chart and canvas."

This reverts commit ed7a34814d.

* fix: Avoid the resize loop by fixing the rounding error in the retinaScale function.

* fix: getMaximumSize was flooring non-integer height values unnecessarily.

* Revert "fix: Avoid the resize loop by fixing the rounding error in the retinaScale function."

This reverts commit 23525abc6a.

* fix: Avoid the resize loop by fixing the rounding error in the retinaScale function.
2022-12-17 09:41:21 -05:00
Dan Onoshko
64a027874c fix: move types to src dir to escape src / dist dirs in paths (#10993) 2022-12-16 07:56:06 -05:00
Dan Onoshko
bc84a98ec6 fix: hotfix chart.js/auto for commonjs (#10992)
* fix: hotfix chart.js/auto for commonjs

* fix: add auto.cjs to side effects
2022-12-16 07:53:27 -05:00
Igor Lukanin
26f711df81 Revert "chore: Add Product Hunt button (temporarily) (#10980)" (#10988)
This reverts commit 2810bbc6fa.
2022-12-16 07:52:36 -05:00
Igor Lukanin
1fddec40ec fix (#10990) 2022-12-16 10:55:49 +02:00
Dan Onoshko
ae264e14e7 add getLabelItems public method (#10966) v4.1.0 2022-12-16 07:36:14 +01:00
Dan Onoshko
38bf550558 fix: unbind instance config from chart type (#10963) 2022-12-15 19:27:12 -05:00
Dan Onoshko
35fd6204b9 feat: restore commonjs bundle (#10984) 2022-12-16 01:11:11 +02:00
Dan Onoshko
185bb97d2e fix: turn on types linting (#10962) 2022-12-16 01:09:14 +02:00
Jacco van den Berg
9d51e99e80 bunp version to 4.1.0 (#10983) 2022-12-15 18:48:31 +01:00
Igor Lukanin
2810bbc6fa chore: Add Product Hunt button (temporarily) (#10980) 2022-12-15 07:52:12 -05:00
Igor Lukanin
acfb981ba3 Update Slack link (#10976) 2022-12-14 23:33:39 +01:00
Simon He
c9f55ccf19 chore: add lint cache (#10974)
* chore: add lint cache

* chore: update

* chore: update
2022-12-14 16:24:43 -05:00
Jacco van den Berg
41f8128c2b Allow dynamic datasets to be colored (#10964)
* Allow dynamic datasets to be colored

* revieuw
2022-12-14 21:43:41 +01:00
Erencan Taşbaş
532c1409a4 Broken link is fixed. (#10965) 2022-12-13 11:46:10 +01:00
Jacco van den Berg
c4fbd5fc3e Update auto import in usage docs (#10955) 2022-12-10 14:39:11 +01:00
Evert Timberg
b491554995 Ensure that args are saved inside of the throttled helper (#10942)
* Ensure that args are saved inside of the throttled helper

* Capture args in outer scope

* Simplify capture
2022-12-10 08:21:41 -05:00
Jacco van den Berg
a14f6cc1d1 update-react-to-v4 (#10930) 2022-12-09 09:11:13 -05:00
Dan Onoshko
8283ad5867 fix: move @kurkle/color to dependencies (#10917)
fixes #10915
2022-11-30 09:31:43 -05:00
Jacco van den Berg
8239567802 Allow color plugin to work with custom dataset controllers (#10904) 2022-11-25 15:03:49 +01:00
Jacco van den Berg
5fdc0f71af Use UDM build for reproducible sample (#10919) 2022-11-25 08:03:51 -05:00
Dan Onoshko
80a931ebd3 docs: add info about ESM into migration guide. (#10903) 2022-11-25 12:31:14 +02:00
stockiNail
784216130a Add stepSize option to time scale options types (#10910) 2022-11-24 07:47:17 -05:00
Kit PANG
667b28beca fix: respect minBarLength in stacked bar chart (#10766) 2022-11-22 20:21:02 -05:00
stockiNail
36fb08c946 Sets the transition mode to the context for scriptable options (#10898) 2022-11-21 14:00:51 -05:00
Dan Onoshko
22f0dfe9a7 feat: colors for mixed charts (#10870) 2022-11-18 13:15:08 -05:00
Jacco van den Berg
9a9ff6fdbd Pointstyle false (#10886)
* fix-#10755

* none to false

* str to bool

* str to bool

* 10/10

* fix test

Co-authored-by: puneetkathar1 <puneetkathar1@gmail.com>
Co-authored-by: Puneet Kathar <73285338+puneetkathar1@users.noreply.github.com>
2022-11-18 13:14:47 -05:00
Jacco van den Berg
934c14069f update migration guide (#10885) 2022-11-18 19:39:58 +02:00
Jacco van den Berg
909c719331 Move border opts to correct location for samples (#10884) 2022-11-17 22:51:12 +01:00
Dan Onoshko
51441272a7 refactor: move to esm in sources (#10879) 2022-11-17 08:08:44 -05:00
Ben McCann
a6f118388f fix: put types first in exports map (#10880) 2022-11-17 08:22:47 +02:00
Jacco van den Berg
c0fe7f9b05 Remove V3 support, update readme (#10872) 2022-11-15 20:14:15 +02:00
Jacco van den Berg
ae1365e1ed Fix release (#10871)
* Update namespace

* fix release, bump version
v4.0.1
2022-11-15 00:17:20 +01:00
Evert Timberg
11f3cf6361 v4.0.0 bump (#10868) v4.0.0-release 2022-11-13 21:16:32 +01:00
Jacco van den Berg
53b79673eb Remove type attribute from dataset specific type specification (#10869) 2022-11-13 19:36:25 +02:00
t-mangoe
63993b03b1 check the data set type in DoughnutController (#10867) 2022-11-12 15:41:21 -05:00
Richard Gibson
89487501b6 fix: Always draw full arcs and borders for doughnut slices (#10806)
* test: Add a failing test for single-slice doughnut with offset

* fix: Always draw full arcs and borders for doughnut slices

Fixes #10801

* test: Update existing image
2022-11-12 21:47:08 +02:00
Igor Lukanin
69175847ef Updated docs (why Chart.js + getting started + step-by-step guide) (#10816)
* Update docs

* Minor fixes

* Replace screenshots with live demos

* Replace the last screenshot with a live demo

* Bring back images

* Bring back images #2

* Remove unnecessary files

* Apply suggestions from code review

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>

* Very last tiny fixes

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2022-11-11 16:37:13 -05:00
Dan Onoshko
718f46095a docs: notes about html legend, tooltip and title (#10857)
* docs: notes about html legend, tooltip and title

* Update docs/configuration/legend.md

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>

* Update docs/configuration/tooltip.md

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>

* docs: notes about html legend, tooltip and title fix

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2022-11-07 19:49:47 -05:00
stockiNail
5a90b71163 Fix the missing apply for the color on the legend labels (#10855)
* Fix the missing apply for the color on the legend labels
* apply review
2022-11-04 18:55:27 -04:00
stockiNail
b271b5098a Enable colors plugin for pie charts (#10851)
* Enable colors plugin for pie charts

* fixes CC
2022-11-04 11:17:49 -04:00
Lucca Miranda
24745fac51 refactor: migrate helpers.options to typescript (#10753)
* refactor: migrate helpers.options to typescript

* chore: nitpicks
2022-11-04 11:17:09 -04:00