Commit Graph

1105 Commits

Author SHA1 Message Date
wenzdey
1d6b8f3b44
Updated dead sample link (#10748)
* Updated dead sample link

* Updated option sample
2022-10-06 10:36:26 -04:00
Jacco van den Berg
dec3d2338f
Update namespace (#10719) 2022-09-28 07:54:58 +03: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
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
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
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
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
Jukka Kurkela
1d6b8cc047
Document components for bundle optimization (#10569)
* Update integration.md

* Update integration.md

* Fix typo

* Another typo

* Update docs/getting-started/integration.md

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

* Update docs/getting-started/integration.md

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

* review update

* version

Co-authored-by: Rich Lott <artfulrobot@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-08-23 08:41:20 +03:00
Jacco van den Berg
432d1e6a60
move option to correct namespace (#10613)
* move option to correct namespace

* change plugin name from snake_case to camelCase
2022-08-22 22:44:04 +02:00
Jacco van den Berg
3c33d87dd2
Remove tooltip constructor fallbacks, this.chart and this._chart (#10612)
* remove tooltip fallbacks/backwards compatability in constructor

* increase size limit
2022-08-22 21:17:40 +02:00
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
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
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
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
c74260b745
change way that linear scales calculate min and max (#10591) 2022-08-18 07:33:15 -04:00
Dan Onoshko
ffce0f9f18
feat: tooltip callbacks fallback (#10567)
* feat: tooltip callbacks fallback

* docs: review fixes
2022-08-18 09:03:12 +03: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
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
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
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
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
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
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
Jacco van den Berg
341f903f5b
document defaults for plugins (#10490) 2022-07-20 18:53:14 +02:00
Jacco van den Berg
eeba91e0de
make link work in github itself (#10497) 2022-07-20 12:51:50 -04:00
Jacco van den Berg
97351d1b5d
update typing of clip, allow it to be configurable in the options for typescript (#10494) 2022-07-20 12:51:22 -04:00
Dominic Jean
5452502b8c
Add pointStyleWidth option for legend (#10412)
* add pointStyleWidth for legend

* add drawPointLegend to keep drawPoint signature
2022-07-18 06:49:08 -04:00
Igor Lukanin
1ccafe7d8f
Add a stale version warning + a link to the latest version of docs (#10446)
* Add a stale version warning + a link to the latest version of docs

* Update docs/.vuepress/config.js

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

* Shorten the warning

* Revert master title

* Revert master title

Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
2022-07-18 06:48:41 -04:00
Andrew Lyndem
cf6e1d2354
Update integration.md (#10470)
Fixed grammatical error on line 93
2022-07-07 07:15:09 -04:00
Igor Lukanin
88f9665954
Enforce maximum width on chart editor blocks in the docs (#10447)
* Enforce max width on chart editor blocks

* Shrink the chart view rather than the whole chart editor
2022-06-29 16:38:00 +03:00