Commit Graph

4279 Commits

Author SHA1 Message Date
Jacco van den Berg
fc8a63e26b
fix lint in docs (#10611) 2022-08-22 21:00:26 +02:00
Ben McCann
9258f250b6
Switch to pnpm (#10576) 2022-08-22 20:42:43 +02:00
Jacco van den Berg
96633cc0f6
Documentation: how to add static typing to plugins (#10607)
* Add documentation on how to add static typing to plugins

* make the options optional

* Fix syntax
2022-08-22 21:20:35 +03:00
Jukka Kurkela
3b76488373
Refine logarithmic scaling / tick generation (#9166)
* Refine logarithmic scaling / tick generation

* Disable autoSkip on reverese test

* Reduce ticks, fix min
2022-08-22 14:05:27 -04:00
Dan Onoshko
2031cdf051
Preparing the project for TypeScript (#10595)
* Add Typescript to the build
* Converts the `helpers.core` to Typescript as an example
* Converts the `core.element` to Typescript
2022-08-22 11:58:57 -04:00
Grant Hynd
75793eb86f
fix: allow beforeTooltipDraw to be cancelable (#10598) 2022-08-22 17:33:02 +02:00
Jon Dufresne
eaee1ad63b
Use the element's window in getComputedstyle (#10608) 2022-08-22 17:29:36 +02:00
Jacco van den Berg
3eb947719e
Put the border opts in own object (#10571)
* put borderOpts in own object

* document z option

* remove todo and change scaleId to id

* update some tests

* clean bit, remove console log

* fix failing test

* lint

* Remove comment
2022-08-18 15:07:46 +02:00
Jacco van den Berg
49b16c9678
Change react integration test to TS (#10605)
* switch to ts

* change web integration test to TS

* remove space

* lint things

* one more lint

* Add spaces
2022-08-18 08:42:40 -04:00
Dan Onoshko
e7372ade24
fix: same-looking tooltips on charts (#10548)
* fix: same-looking tooltips on multiseries charts

* fix: same-looknig tooltips on all chart types

* chore: restore tooltip plugin

* docs: additions to migration guide

* docs: remove labels from scatter and bubble examples

* docs: review fix
2022-08-18 07:34:35 -04:00
Jacco van den Berg
d09e424a0a
Use borderRadius for legend and remove fallbacks (#10551)
* Use borderRadius for legend

* re enable test

* fix lint

* add note in migration guide

* Update types/index.d.ts

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2022-08-18 07:34:18 -04:00
Jacco van den Berg
dad1e98c5a
Allow animations to be set to false for the tooltip (#10582) 2022-08-18 07:33:42 -04:00
Jacco van den Berg
c74260b745
change way that linear scales calculate min and max (#10591) 2022-08-18 07:33:15 -04:00
Jacco van den Berg
bd29fcbf67
type grouped option for bar chart (#10590) 2022-08-18 09:16:13 +03:00
Jacco van den Berg
d9203719f6
add correct padding object to type (#10585)
* add correct padding object to type

* Apply suggestions from code review

Add spacing

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-08-18 09:15:50 +03:00
Ben McCann
30ba86ad3e
chore: upgrade dependencies (#10573) 2022-08-18 09:09:09 +03:00
Dan Onoshko
ffce0f9f18
feat: tooltip callbacks fallback (#10567)
* feat: tooltip callbacks fallback

* docs: review fixes
2022-08-18 09:03:12 +03:00
John Williams Metservice
7776d27268
Update index.d.ts (#10579)
Allow nulls to be passed to barChart data to allow datasets to spanGaps.
2022-08-17 18:43:46 -04:00
Jacco van den Berg
d1686fb6cc
Downgrade karma preprocessor (#10589)
* force older version of karma pre processor
* package-lock update
2022-08-12 18:15:47 -04:00
Jacco van den Berg
1551537a40
Add integration test(s) for Web (#10563)
Adds a basic react integration test
2022-08-07 13:25:11 -04:00
Dan Onoshko
3123a133fe
build: emit sourcemaps (#10568) 2022-08-07 13:23:35 -04:00
Dan Onoshko
cdb17d6eeb
feat: sideEffects false (#10526)
* feat: sideEffects false
* refactor: apply defaults by pure way
2022-08-06 08:45:41 -04:00
Jacco van den Berg
26a686f2cb
remove double space, eslint allow dynamic import (#10572) 2022-08-05 22:36:56 +02:00
Jacco van den Berg
3df687a87c
Remove destroy hook (#10549)
* remove destroy hook

* revert package-lock.json changes

* update test

* add migration guide note

* fix karma failing test

* change way of importing package.json
2022-08-05 19:51:14 +03:00
Jukka Kurkela
29395d9013
Fix docs build (#10566) 2022-08-05 08:02:04 -04:00
Ben McCann
e798defcde
Use ESM config file for Rollup (#10564) 2022-08-05 08:00:01 -04:00
Dan Onoshko
b19fc0169f
fix: pass timestamp to ticks callback (#10540)
* fix: pass timestamp to ticks callback
* docs: edit labelling page
* docs: additions to the migration guide
2022-08-05 07:59:36 -04:00
Dan Onoshko
ce375a6876
feat: add ESM support (#10525)
* feat: add ESM support

* build: rename UMD bundle

* chore: edit supbackages description

* style: disable es/no-import-meta linter rule

* test: dynamic import in cjs module

* docs: edit integrations page

* docs: review fixes

* chore: remove useless regex in webpack config

* ci: test size-limit only for ESM bundle
2022-08-04 18:43:26 -04:00
Dan Onoshko
a4de430d99
fix: treeshaking (#10504)
* fix: treeshaking
* refactor: DatasetController.datasetElementType and DatasetController.dataElementType as static props
2022-08-04 09:17:40 -04:00
Jacco van den Berg
9dfaa63639
Move parameter of TType in ChartMeta to first option (#10550)
* move paramter of TType in ChartMeta to first option

* add missing ChartMeta change

* Add note in migration guide
2022-08-04 01:06:15 +02:00
Ivan Gamboa Ultreras
9ab50e6313
Fix offset on doughnut charts (#10469)
Fix offset on doughnut charts
2022-08-03 20:27:17 +03:00
Jukka Kurkela
9224e57d93
Add integration test(s) for Node (#10554) 2022-08-03 09:17:05 -04:00
Jacco van den Berg
beaf370cc5
Bug/Radial linear scale grid get correct options at index (#10010)
* get correct options for index

* update test

* add initial migration guide
2022-08-03 02:32:02 +02:00
Jacco van den Berg
7079a1caac
Bump to 3.9.0 (#10541)
* make link work in github itself
* fix dead link on reload or new tab
* bump to 3.9.0
2022-08-02 08:54:45 -04:00
Slava Terekhov
03e9194be5
feat: remove line element from scatter controller (#10439)
* feat: remove line element from scatter controller default config

* feat: move common controllers methods to helpers and add types

* feat: mark methods for scatter and line conntrollers as private

* fix: fix error when showline is true at root options and add tests

* feat: remove else inside scatter controller update

* fix: update getStartAndCountOFVisiblePoints helper code
2022-08-01 22:39:09 +03:00
Ben McCann
6feb48b5ef
Allow ESM files to be used in Node.js (#10479)
Allow ESM files to be used in Node.js
2022-07-30 11:25:23 -04:00
Dan Onoshko
844270eb5e
feat: pass some chart options to DateAdapter (#10528)
feat: pass some chart options to DateAdapter
2022-07-30 11:25:01 -04:00
Slava Terekhov
a26ca0aca7
docs: add docs for changing from time scale to logarithmic/linear scale (#10527) 2022-07-30 11:14:33 -04:00
Slava Terekhov
f0be17c859
Add circular prop to arc element (#10405)
* feat: add circular prop to arc element draw actions
* test: add test for arc element with circular:false prop
* feat: add circular prop to Arc element options
* docs: add decriptiption for new Polar area chart prop
* docs: fix circular prop description
* docs: add info about arc element circular prop to elements docs
* docs: move circular prop from general options to styling
2022-07-30 11:08:38 -04:00
Jacco van den Berg
1fef75d990
Skip all borders if borderSkipped === true (#10530)
* Skip all borders if borderSkipped === true

This will allow you to skip all borders (not just one side) if you set borderSkipped to boolean true and so allow you to have a consistent legend marker even for bars without borders. Reason is that even if same colored borders are set there are artifacts that make the bar look bad and also even with inflateAmount the bars do look good when big but when only a few pixel in size they start to look bad too so this was the only way for me to make it work so legends are looking good and bars too.

* fix failing test, update docs and typings

* update typing comment

Co-authored-by: Istvan Petres <pijulius@users.noreply.github.com>
2022-07-30 08:12:53 -04:00
Dominic Jean
a31e1e59d6
pass boxWidth only if pointStyleWidth presents (#10524) 2022-07-29 16:40:28 +03:00
Dan Onoshko
e800b46ab9
fix: calc visible points on update #10467 (#10523) 2022-07-28 07:46:00 -04:00
Jacco van den Berg
c6120f9e71
Improve docs radial linear grid (#10518)
* make link work in github itself

* fix dead link on reload or new tab

* document the props for radial grid

* remove extra chart and space
2022-07-27 22:16:32 +02:00
Peter Hauke
02ad43a5cc
Fix Stack Overflow tag: chart.js (#10522)
* Fix Stack Overflow tag: chart.js

The same fix as accepted in: #10520

The correct Stack Overflow tag name is chart.js and not chartjs

* Fix Stack Overflow tag: chart.js

The same fix as accepted in: #10520

The correct Stack Overflow tag name is chart.js and not chartjs
2022-07-27 20:17:01 +02:00
Peter Hauke
c694d97690
Fix Stack Overflow tag: chart.js (#10520) 2022-07-27 17:15:55 +02:00
Jukka Kurkela
a4114e84d9
parsing: support dot(s) in object keys (#10517) 2022-07-26 08:30:52 -04:00
stockiNail
144a6c0c27
Enable borderDash option in the grid as scriptable (#10519) 2022-07-26 08:28:15 -04:00
Jacco van den Berg
de3596d4af
Fix dead link on reload or open in new tab (#10515)
* make link work in github itself

* fix dead link on reload or new tab
2022-07-25 15:45:52 +03:00
M4sterShake
3c56061622
Clarifying threshold requirement in the docs for decimation (#10516)
Co-authored-by: Max Borkowski <max.borkowski@lexisnexisrisk.com>
2022-07-25 15:44:17 +03:00
Evert Timberg
26e70b7608
Explicitly include package.json files for subpackages (#10513)
Remove redundant permissions on release CI to prevent a failure
Bump version to v3.8.2

Co-authored-by: Chart.js <>
2022-07-24 14:42:33 -04:00