Commit Graph

4483 Commits

Author SHA1 Message Date
Igor Lukanin
1c2f66a00e
Introduce Colors plugin (#10764)
Introduces a colors plugin that provides a color palette

Co-authored-by: Dan Onoshko <danon0404@gmail.com>
Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2022-10-21 08:21:08 -04:00
Jacco van den Berg
005aa45c32
Fix broken links (#10812) 2022-10-19 19:59:35 +03:00
Philippe Jaubert
b5f5f468d3
Update tooltip.md (#10813)
Fixed spawn closes before its content.
2022-10-19 15:13:34 +02:00
Ian Webster
ca326b75e7
docs: Fix typo (#10811)
Remove an extra word on https://www.chartjs.org/docs/latest/developers/publishing.html
2022-10-19 08:13:28 -04:00
Rich
6b357a5965
docs: Fix typos (#10809)
* Spell "corresponding" correctly

* Spell "circle" correctly

* Spell "configuration" correctly
2022-10-19 14:02:20 +02:00
Jukka Kurkela
c35d0c6e48
rename jasmine failFast -> stopOnSpecFailure (#10804) 2022-10-17 22:59:54 +03:00
Jonatan
f5cb133551
fix: label text not centered when applied rotation (#10773)
* fix: label text not centered on tick when rotated

#10485

* fix: label text not centered on tick when rotated

#10485
2022-10-17 21:28:31 +03:00
dependabot[bot]
3ecda1c7c5
Bump pnpm/action-setup from 2.2.2 to 2.2.4 (#10800)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.2.2 to 2.2.4.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.2.2...v2.2.4)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 21:25:41 +03:00
Jacco van den Berg
c849b7bc1d
Bump alpha 2 (#10790) 2022-10-12 18:59:56 +02:00
Jacco van den Berg
0b54338d7f
Remove setting of version in package-lock since it does not exist and pnpm-lock does not have it (#10789) 2022-10-12 09:25:04 -04:00
Jacco van den Berg
02a7bdbf80
Bump alpha v4 (#10787)
* Update namespace

* bump alpha
2022-10-12 07:16:03 -04:00
Evert Timberg
c338942ebb
Convert the Arc element to TS (#10772)
* Convert the Arc element to TS

* Make max-statements and complexity warnings in TS files as well

* Increase size limit

* Update src/elements/element.arc.ts

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

Co-authored-by: Dan Onoshko <danon0404@gmail.com>
2022-10-12 07:08:37 -04:00
cmcnulty
fbf3427ca2
Fix #10749 - backdrops with rotated labels (#10759)
* Fix #10749 - backdrops with rotated labels

* remove translation adjustment
Because backdrop now occurs after translation, we don't want to double-adjust the position.

* increase tolerance slightly due to anti-aliasing

Co-authored-by: Charles McNulty <charles.mcnulty@tasconline.com>
2022-10-12 07:08:22 -04:00
Lucca Miranda
b0160e138a
refactor: migrate helpers.dom to typescript (#10734) 2022-10-09 09:21:12 -04:00
Amin Cheloh
7410a3c30e
docs: fix typos (#10763) 2022-10-07 09:56:07 -04:00
Evert Timberg
41612d1320
Convert the curve helpers to TS (#10733)
* Convert the curve helpers to TS
* Remove old type
2022-10-07 08:28:24 -04:00
Evert Timberg
06bbadb00f
Convert the PointElement to TS (#10730)
Co-authored-by: Chart.js <>
2022-10-07 08:28:03 -04:00
Brainshaker95
813943ac72
Types: Change grid option of CartesianScaleOptions and RadialLinearScaleOptions to Partial of GridLineOptions (#10760) 2022-10-07 07:36:57 +03:00
Jacco van den Berg
72b185afa6
Allow to configure X and Y axis ID in TS for bubble charts (#10739)
* Update namespace

* Allow for x and y axisId to be passed to bubbledataset controller
2022-10-06 22:41:51 +03:00
Evert Timberg
e6892a92cb
Convert helpers.extra to TS (#10728)
Co-authored-by: Chart.js <>
2022-10-06 15:37:42 -04:00
wenzdey
1d6b8f3b44
Updated dead sample link (#10748)
* Updated dead sample link

* Updated option sample
2022-10-06 10:36:26 -04:00
stockiNail
c51d697d7f
Use the correct area to clip for dataset drawing when stacked scales are used (#10691)
* Use the correct area to clip when stacked scales are used

* adds test cases

* fix CI issue

* apply review

* Update .size-limit.cjs

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

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2022-10-01 21:26:45 +03:00
Evert Timberg
740ae60db0
Export declare const enums (#10729)
Co-authored-by: Chart.js <>
2022-09-30 16:13:35 -04:00
Luciano Santana
6f4b365d8b
Types: Export UpdateModeEnum as const (#10726)
Co-authored-by: Luciano Santana <contacto@lucianosantana.net>
2022-09-30 11:15:59 -04:00
Dan Onoshko
d1e118aea8
refactor: move batch of helpers to ts (#10722)
* refactor: move batch of helpers to ts

* refactor: review fixes
2022-09-30 09:48:12 -04:00
Dan Onoshko
52cf8e8a94
fix: aspect ratio calc (#10693) 2022-09-28 15:31:19 -04:00
Jacco van den Berg
dec3d2338f
Update namespace (#10719) 2022-09-28 07:54:58 +03:00
Jacco van den Berg
dea889b980
Add defaults to plugin interface (#10712) 2022-09-27 13:39:48 +02:00
Jacco van den Berg
b6322f3ab5
add ts explanation and unify display of snipets (#10708) 2022-09-27 13:39:35 +02:00
Jacco van den Berg
fbaf28e4f8
Use guard clause typings (#10683)
* Use guard clasue

* use function type instead of build in function
2022-09-27 14:00:48 +03:00
Jacco van den Berg
5f37ba6fc4
Add warning if filler plugin is used but not registered (#10702)
* add warning if filler plugin is used but not registered

* fix lint

* increase size limit

* add test, only put warning in dataset controller

* fix register in docs, remove commented code

* remove other mr

* add documentation

* Apply suggestions from code review

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>

* Also return false if plugin is disabled by options

* improve warning message

* undo docs changes

* update test

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2022-09-26 20:20:54 +02:00
Jacco van den Berg
a8b7def547
Exclude dist folder form linting (#10701) 2022-09-24 23:21:17 +02:00
Dan Onoshko
22f32af1bc
fix: calc visible points on update (#10667) 2022-09-24 17:01:47 -04:00
Kartik
1253ceddb1
FIX: render multiline legend items without overlapping (#10532) (#10641)
* FIX: render multiline legend items without overlapping (#10532)

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>

* CLN: Extract method to fix codeclimate line count

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>

* CLN: Shift helper methods from class to module scope

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>

* TST: Add test with fixtures

Co-authored-by: kartik <codebull707@gmail.com>

* FIX: Fix test case for multiline label

Co-authored-by: kartik <codebull707@gmail.com>

* 10532-ENH: Calculate legend item width for multiline labels

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>

* 10532-TST: use spriteText and non-empty labels for test

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>

* 10532-FIX: failing test case due to legendItem.text being undefined

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>

* 10532-FIX: Update compression size

Co-authored-by: kartik <codebull707@gmail.com>

Co-authored-by: Nirav Chavda <nmchavda99@gmail.com>
2022-09-16 09:46:53 -04:00
stockiNail
d4e106cc9c
Provide an empty object when the target of the resolver is undefined (#10655)
* Provide an empty object when the target of the proxy is undefined

* changes check on subGetTarget function

* adds test case

* fixes lint
2022-09-15 12:12:35 -04:00
Dan Onoshko
47cb9e1f76
feat: typescript node next support (#10661) 2022-09-14 06:44:57 -04:00
Jacco van den Berg
cc65c2bac2
Fix autoskip logic (#10663)
* fix autoskip logic

* add test

* fix lint erro

* Update variable name
2022-09-13 19:33:22 +02:00
Rupert B
1c9e536de2
Update line-boundaries.md (#10666)
Fixed broken link in docs
2022-09-13 19:32:48 +02:00
stockiNail
9871aaa262
Use ticks.steSize instead of time.stepSize on time and timeseries scales (#10653) 2022-09-10 18:46:26 +03:00
Dan Onoshko
83a41c2e0c
fix: types and tests (#10660) 2022-09-10 11:36:50 -04:00
Lonylis
21305e2883
Update bar data type to comply with floating bar charts data (#10652)
* Update index.d.ts

Floating bars charts can take an array of array.
https://www.chartjs.org/docs/latest/samples/bar/floating.html

* Update types/index.d.ts

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

* floating bar chart data validation

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2022-09-06 09:42:04 -04:00
Dan Onoshko
0c51ecd451
fix: respect aspect ratio with container height (#10646)
* fix: respect aspect ratio with container height

* docs: add info into migration guide
2022-09-02 08:03:41 -04:00
Dan Onoshko
8ff853c60e
feat: remove default axis override when custom id is given (#10643)
* feat: remove default axis override when custom id is given

* docs: add info into migration guide

* test: fix tests for the feat

* docs: add info into migration guide

* test: fix tests for the feat

* feat: review fixes

* feat: review fixes
2022-09-02 07:52:48 +03:00
Dominic Jean
0edb2ac604
enable pointStyleWidth for all legend style (#10639) 2022-09-01 06:37:12 -04:00
Alex
eee1bf257b
Update release.yml (#10642) 2022-08-31 09:54:21 -04:00
Evert Timberg
b95ba3d5c3
Convert the easing helpers to typescript (#10627)
Co-authored-by: Chart.js <>
2022-08-31 09:53:54 -04:00
Jacco van den Berg
818b933c92
Bump markdown-it in docs (#10632)
* bump dep

* regenerate lock with new pnpm
2022-08-31 16:46:23 +03:00
Jacco van den Berg
08a5c572e8
Update link to master umd build (#10645) 2022-08-31 08:24:21 +02:00
Devesh Pal
74f50df250
Fix broken link (#10640) 2022-08-29 17:02:08 -04:00
Dan Onoshko
f957aad352
docs: fix images loading (#10621)
* docs: fix images loading

* docs: temporary restore configureWebpack

* docs: rm html-webpack-plugin
2022-08-23 15:30:03 +02:00