Commit Graph

4422 Commits

Author SHA1 Message Date
Hubert Olender
287394e5e3 Update tooltip.md (#11154)
* Update tooltip.md

Add missing `'`

* Update tooltip.md

Improve textDirection text
2023-02-23 08:05:50 -05:00
Jacco van den Berg
6cc429ddde
Specify node version for CI (#11160)
* specify node version

* Spam to run CI

* Remove docs update, specify node version at other places
2023-02-22 18:42:18 -05:00
stockiNail
82aca7852f
Use custom scale defaults and dataset axis ID options to determine the axis (#11134)
Use custom scale defaults to determine the axis
2023-02-15 09:27:13 -05:00
Dan Onoshko
1324672637
refactor: rewrite canvas helpers to ts (#11100)
* refactor: rewrite canvas helpers to ts

* refactor: review fixes

* refactor: rm src/helpers/types.ts temporary entry point
2023-02-15 09:26:49 -05:00
Mikhail
22c6906bbe
Simplify _arrayUnique (#11145) 2023-02-15 09:20:29 -05:00
leo2436
120b72eaae
Docs: fix tooltip model doc. (#11143)
Co-authored-by: Leo Chen <liang.chen@thoughtworks.com>
2023-02-15 08:13:24 -05:00
stockiNail
7f9bca6844
Add borderDash options to arc element (#11127) 2023-02-12 17:46:05 -05:00
leo2436
6cf9de9681
Change labelColors to labelColor in tooltip drawColorBox method. (#11135)
Co-authored-by: Leo Chen <liang.chen@thoughtworks.com>
2023-02-12 14:15:07 -05:00
CodingMarco
e417c60c22
Fix: don't generate ticks > max if max is specified (#11116)
* Fix: don't generate ticks > max if max is specified (#11083)

* Add test "Should not generate any ticks > max if max is specified" (#11083)
2023-02-10 07:57:58 -05:00
Shahab HM
2481547ef8
fix RTL tooltip colorBox placement (#11061)
* fix RTL tooltip colorBox placement #10771

* fix lint problem
2023-02-10 07:57:24 -05:00
Evert Timberg
cfefb3d47f
Bump to 4.2.1 (#11130) 2023-02-10 07:33:01 +01:00
Johannes Kronmüller
207fe8f66e
fix: decimation plugin data not writeable after clean (#11045) 2023-02-10 07:45:43 +02:00
stockiNail
8dfcf1c443
Use maxTicksLimit option to calculate the labels size on ticks (#11069)
* Use maxTicksLimit option to calculate the labels size on ticks

* apply review
2023-02-09 09:26:11 -05:00
stockiNail
1db46efa5f
Remove unused property from arc element for center calculation (#11124) 2023-02-08 18:01:11 -05:00
Dan Onoshko
6cb10dc895
chore: #10963 revert (#11102) 2023-02-07 11:51:48 -05:00
Jacco van den Berg
d20b59fb03
Add colors plugin TS options to be configured (#11115) 2023-02-07 08:19:00 -05:00
Jacco van den Berg
23e8f7d378
Update link to new template (#11113) 2023-02-03 08:28:17 +01:00
Jacco van den Berg
916aa6e1ab
Remove override warning tooltips (#11110) 2023-02-02 14:50:11 +01:00
Yujin Choi
1684cf7dbf
fix: add bgColor type in RadialLinearScaleOptions (#11081)
* fix: add bgColor type in RadialLinearScaleOptions

* Update src/types/index.d.ts

remove trailing space

---------

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2023-01-30 18:23:08 -05:00
Jean-Louis Jouannic
b967d71c87
🐛 fixes compilation error when option --isolatedModules is set (#11095)
* 🐛 fixes compilation error when option --isolatedModules is set

* ♻️ preserve UpdateModeEnum to prevent breaking change
2023-01-28 09:19:02 -05:00
Jacco van den Berg
43abacbae5
Remove meetup banner (#11093) 2023-01-27 13:01:12 -05:00
Yury Shevchenko
cfe8e0311b
Fix documentation typo (#11077) 2023-01-20 05:06:19 +02:00
Igor Lukanin
1d7dfadbad
Bump to 4.2.0 (#11070) 2023-01-18 08:35:00 -05:00
stockiNail
e8d9fb579e
Add format method to time scale to format timestamp using scale options (#11063) 2023-01-18 08:27:52 -05:00
stockiNail
997eab46ac
Change 'normal' update mode to 'default' as documented (#11017) 2023-01-18 08:27:47 -05:00
stockiNail
ab55f6c976
Check colors definition in the chart options (#11003)
* Check colors definition in the chart options

* Update src/plugins/plugin.colors.ts

Co-authored-by: Dan Onoshko <danon0404@gmail.com>

* Update src/plugins/plugin.colors.ts

Co-authored-by: Dan Onoshko <danon0404@gmail.com>

* Update src/plugins/plugin.colors.ts

Co-authored-by: Dan Onoshko <danon0404@gmail.com>

* apply review

Co-authored-by: Dan Onoshko <danon0404@gmail.com>
2023-01-18 13:31:33 +01:00
Igor Lukanin
97bc329d72
Add banner (#11058) 2023-01-13 09:33:57 -05:00
Igor Lukanin
073a97e3ee
Update banner (#11057)
* Update banner

* Update

* Add width
2023-01-13 09:33:43 -05:00
stockiNail
4cd68535d7
Remove console.warn from a test case where not needed (#11056) 2023-01-13 09:33:34 -05:00
Michiel Lankamp
0e189dd554
fix: updated type for doughnut offset (#11051) 2023-01-13 10:06:33 +02:00
stockiNail
be049a3296
Add pointLabel context type documentation (#11054) 2023-01-13 10:05:19 +02:00
Andrew Kane
b2b881b9b1
Specify module for Webpack 4 (#11037) 2023-01-10 12:01:59 -05:00
Igor Lukanin
300e2119d8
chore: Add Chart.js meetup announcement to README (#11043) 2023-01-10 12:00:01 -05:00
Dan Onoshko
b51c523366
chore: version bump (#11034) 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) 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) 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