Commit Graph

985 Commits

Author SHA1 Message Date
Jukka Kurkela
05ba2eedff
Add version menu in documentation (#8866)
* Add version menu in documentation
* Use filters for tags
* Use limit
* Update
* Use released plugin
* use published version
2021-04-10 16:10:59 -04:00
Jukka Kurkela
f8885ce7a2
Font validate style, move defaults to weight (#8877) 2021-04-10 15:58:11 -04:00
Jukka Kurkela
9e70913bed
Enable event filtering per plugin (#8876) 2021-04-10 15:18:30 -04:00
Evert Timberg
d6d189c804
Legend boxes support borderRadius (#8875) 2021-04-10 15:05:34 -04:00
Evert Timberg
7ee498e412
Tooltip colorbox supports configurable borderWidth, borderRadius, and dash effect (#8874)
* Start on extending tooltip style
* Correct borderRadius implementation
* Tests of updated tooltip styling
* Update docs
2021-04-10 13:37:22 -04:00
Jukka Kurkela
c35bee1f4f
Document the no-parsing requirement of decimation (#8869) 2021-04-10 08:59:14 -04:00
Jukka Kurkela
ba84cc5c2a
Filler: support segment backgroundColor (#8864) 2021-04-09 19:10:48 -04:00
Jacco van den Berg
735764ac4f
Docs/broken link (#8863)
* Change tabs from area samples to buttons to switch to be in line with other samples, change linewith of extra line datasets to default instead of 1 to be in line with all other lines in the sampels

* fix few broken links in docs
2021-04-09 17:06:18 -04:00
Jukka Kurkela
4eb59454be
Allow styling of line segments (#8844)
Allow styling of line segments

* docs & sample
* Types
* update sample
2021-04-08 18:02:12 -04:00
Jacco van den Berg
6c7bf2299b
Docs migration register options (#8850)
* Change tabs from area samples to buttons to switch to be in line with other samples, change linewith of extra line datasets to default instead of 1 to be in line with all other lines in the sampels

* add link to all available import sample in the migration guide
2021-04-08 07:15:43 +03:00
stockiNail
7ae1064ab9
Apply scale context to ticks scriptable options instead of chart context (#8839)
* Fixes #8835

* context as argument because protected

* fixes test case on formatters

* reverts previous commits and sets the scale context in the scale init

* changes documentation about linear ticks, adding scriptable Yes
2021-04-07 16:45:39 -04:00
Mohammad Ahmadi
82d42bd799
Fix typos in canvas-background.md (#8837) 2021-04-07 19:51:45 +03:00
Mohammad Ahmadi
873223fc78
Fix typo in migration guide (#8836) 2021-04-07 08:05:33 +03:00
mjcross
b4d118e6e9
complete the first 'getting-started' example (#8829)
This page is very likely the first example a new user sees, so we should make it clear how to actually use the config and setup show to actually render a chart.
2021-04-06 18:54:18 -04:00
Evert Timberg
ac0a86b95d
Document plugin event handling (#8828) 2021-04-05 06:48:59 +03:00
Jukka Kurkela
e1ddaa8992
Dissociate border options from grid options (#8823)
* Dissociate border options from grid options
* Update docs
2021-04-04 14:19:07 -04:00
Jukka Kurkela
33df3a6d73
Update chart type documentation (#8805)
* Update chart type documentation
* Self-review
2021-04-03 18:08:20 -04:00
Evert Timberg
019233457f
HTML Legend sample (#8804) 2021-04-03 16:10:39 -04:00
Jacco van den Berg
35e8af726d
Docs small update (#8791)
* Change tabs from area samples to buttons to switch to be in line with other samples, change linewith of extra line datasets to default instead of 1 to be in line with all other lines in the sampels

* Final tip to Note again and update latest v2 docs to latest release

* remove whitespace between tip and dots, remove double the in the note

* Update index.md

Implement feedback
2021-04-03 22:19:51 +03:00
Evert Timberg
0ea9fa7efe
Update documentation for getElementsAtEventFor Mode (#8803)
The correct properties are `datasetIndex` and `index` without an '_' prefix
2021-04-03 21:16:26 +03:00
Evert Timberg
bdfaa44ab3
Correct decimation plugin documentation (#8801)
* Correct decimation plugin documentation

* The default for decimation is `false`.
* Added a sample for data decimation
* Corrected an issue in the decimation plugin when switched from enabled to disabled
2021-04-03 13:06:31 -04:00
Evert Timberg
238bfa589c
Add the ability to change font color per legend item (#8800) 2021-04-03 11:55:27 -04:00
Jukka Kurkela
a4cc21f9a9
Update ticks.callback documentation (#8798) 2021-04-03 09:34:57 -04:00
Jukka Kurkela
1451e5aee6
Add ability to stack different dataset types (#8797) 2021-04-03 09:23:35 -04:00
Jukka Kurkela
5af8f8859b
Add legend events sample (#8795)
* Add legend events sample
* review update
2021-04-03 08:13:38 -04:00
Jukka Kurkela
6df7fae625
Add drawTime option to filler plugin (#8796) 2021-04-03 08:13:00 -04:00
Evert Timberg
6f6b1b2d17
Doughnut/Pie chart border radius (#8682)
* Arc with rounded ends implementation
* End style option
* Working border radius implementation for arcs
* Linting
* Fix bug introduced when converting to new border object
* Fix bugs identified by tests
* Arc border radius tests
* Add test to cover small borderRadii
* Reduce the weight of the arc border implementation
* lint fix
2021-04-03 07:58:51 -04:00
Evert Timberg
96dd201028
Clean up a few sample issues (#8790) 2021-04-02 17:25:14 -04:00
Evert Timberg
dc6a660eeb
Tweak redirect urls (#8788)
* Redirect to html links
* No delay on redirect
2021-04-02 13:57:05 -04:00
Evert Timberg
678974654b
Vuepress HTML redirect for samples folder (#8785)
* HTML redirect using vuepress plugin

* Add other needed redirects

Co-authored-by: Evert Timberg <--global>
2021-04-02 20:33:56 +03:00
stockiNail
69fae1a1e7
Adds scriptable column to options table in the title documentation (#8786)
* Fixes typo on padding doc
* adds column to the options table for scriptable
* Fixes table headers
2021-04-02 12:13:43 -04:00
Jukka Kurkela
48f2039ac1
Add vuepress-plugin-flexsearch (#8784) 2021-04-02 11:18:53 -04:00
Jukka Kurkela
0ef1897a98
Redirect to first sample (#8783) 2021-04-02 10:56:32 -04:00
Jacco van den Berg
c9eec3112f
Change tabs from area samples to buttons to switch to be in line with other samples, change linewith of extra line datasets to default instead of 1 to be in line with all other lines in the sampels (#8780) 2021-04-02 10:06:29 -04:00
Evert Timberg
66ee0fecaf
Vuepress samples (#8756)
* Generate API docs with vuepress-plugin-typedoc

* Links, fixes, cleanup

* Convert bar samples to Vuepress

* Some line chart samples moved over

* Fix lint issues

* Derived axis type sample

* LineAreaStacked chart created in vuepress

* added radar area axample

* Line dataset added sample

* final area example added

* Add derived-chart-type

* Bar scriptable sample

* Scriptable samples

* Clean lint errors

* added linear axis samples to vuepress

* change tab to spaces to fix lint error

* Convert the rest of the scale samples

* Scale option samples

* Fix typo

* Fixes

* Legend samples

* Title samples

* Change the title of the tip block to Note (#8758)

* Convert bar samples to Vuepress

* Some line chart samples moved over

* Fix lint issues

* Derived axis type sample

* LineAreaStacked chart created in vuepress

* added radar area axample

* Line dataset added sample

* final area example added

* Add derived-chart-type

* Bar scriptable sample

* Scriptable samples

* Clean lint errors

* added linear axis samples to vuepress

* change tab to spaces to fix lint error

* Convert the rest of the scale samples

* Scale option samples

* Fix typo

* Fixes

* Legend samples

* Advanced samples

* Remove extra section

* Animation samples

* Hide legend from progressive line

* Add a comment on what `from` does

* Tooltip samples

* Ädd other charts to vuepress samples

* enable plugin again since all samples have been converted

* fix skip radar example, middle skip was not calculated correctly

* lint error

* Progressive-line: add 2nd line

* Fix lint errors

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com>
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
2021-04-02 08:04:39 -04:00
Jukka Kurkela
49f8fab448
Links: Rename .mdx to .md (#8775) 2021-04-02 07:48:50 -04:00
Jukka Kurkela
dd99005b5a
Remove line interaction overrides + hover.onHover (#8770)
* Remove interaction mode overrides + hover.onHover

* Restore bar override
2021-04-01 13:47:11 -04:00
Jacco van den Berg
a6eaaf771f
Change the title of the tip block to Note (#8758) 2021-03-30 18:19:45 -04:00
Jukka Kurkela
93e07ebb48
Generate API docs with vuepress-plugin-typedoc (#8755)
* Generate API docs with vuepress-plugin-typedoc

* Links, fixes, cleanup
2021-03-30 16:19:59 -04:00
Evert Timberg
ed2b96eeaf
Switch docs to Vuepress to match other chart.js repositories (#8751)
* Initial work

* Update doc commands

* Updated sidebar config

* Move docs

* Update theme version and enable

* Convert to chart.js sample

* Update scripts to point to local build

* Chart.js from local build

* Simplify getting-started example

* Axis docs updated except for imported content

* Common ticks import works

* Chart type docs ported to editor plugin

* Last pages to use editor

* Fix small errors

* Frontmatter title to heading

* Remove duplicate example

* Update sidebar

* Add paths

* Remove paths

* Add getting-started back

* Update menus and add copyright to license section of the docs

* Add GA plugin

* Style sub-groups

* Remove unneeded license page since it is covered on the main page

* Remove docusaurus readme page

* Remove docusaurus files

* Fix issues in docs

* Build and deploy scripts for docs work

* Conditional base URL for nice local testing

* Use eslint-plugin-markdown

* Remove hard coded lines

* Remove mentions of docusaurus

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2021-03-30 10:32:39 -04:00
Jukka Kurkela
1a5a15265a
Revert "Scale: draw offset grid for labels before autoSkip (#8748)" (#8752)
This reverts commit cdba66ccef.
2021-03-30 08:00:19 -04:00
Jukka Kurkela
cdba66ccef
Scale: draw offset grid for labels before autoSkip (#8748)
* Scale: draw offset grid for labels before autoSkip
* fix tests
2021-03-29 16:53:47 -04:00
Jukka Kurkela
d6972abd48
Add note about inline plugins and registration (#8741) 2021-03-27 16:43:56 -04:00
Evert Timberg
671d6e0560
Document install/start/stop plugin hooks (#8733)
* Add code comment to make searching easier

* Update flowcharts

* Comment added in separate MR
2021-03-27 00:09:46 +02:00
Jacco van den Berg
cf39221a10
Update v3-migration.md (#8725)
update sentece to make it read/sound better
2021-03-26 06:59:21 +02:00
Jacco van den Berg
39140cca2e
Remove the comparrison doc page (#8709) 2021-03-24 15:39:48 +02:00
Jacco van den Berg
8ed689877f
Update api.md (#8701)
Add clarification that you can pass type and quality options
2021-03-23 08:27:07 -04:00
Jukka Kurkela
9a0a509385
Update external tooltip docs (#8674) 2021-03-19 08:02:51 -04:00
Jacco van den Berg
180f1b941e
Docs/licence year update (#8671)
* Update license year

* Update docusaurus.config.js

update license year

* Update LICENSE.md
2021-03-19 09:09:55 +02:00
Jukka Kurkela
97136d0cbf
Add textAlign for legend labels (#8665)
* Add textAlign for legend labels

* Update tests
2021-03-18 07:37:03 -04:00
stockiNail
da50c97e07
Changes defaults in documentation, applied by PR 8657 (#8660) 2021-03-18 09:57:56 +02:00
Jukka Kurkela
0a579b6813
Add alignToPixles option for scales (#8649) 2021-03-16 08:41:51 -04:00
Evert Timberg
1f6d0a244b
Linear Scale: Ability to specify a fixed number of ticks (#8643)
* Option to specify exact number of ticks on linear scale
* Fix issue description in tests
* Add tests for conditions where min/max do not align with niceMin/niceMax
* Refactor linear tick generation algorithm
* Add TS definitions
* Update docs
* Code review feedback + lint fixes
2021-03-15 08:49:25 -04:00
Jukka Kurkela
4d173c6b8a
Allow tooltip callback override in dataset (#8640) 2021-03-14 11:29:54 -04:00
Jukka Kurkela
85123ac074
Add option to turn off grouping of bar datasets (#8641)
* Add option to turn off grouping of bar datasets

* Disregard time offset
2021-03-14 11:27:57 -04:00
Jukka Kurkela
f744c3bde6
Add x/y shorthand for padding options (#8637) 2021-03-14 11:21:30 -04:00
38elements
347353a1c9
Add og:image (#8635) 2021-03-14 11:08:12 -04:00
Evert Timberg
c4cf7b2e08
Document the different parts of cartesian and radial scales with examples (#8636) 2021-03-14 08:22:28 +02:00
Evert Timberg
1a2cc27f3a
Add documentation on how plugin hooks interact with the chart (#8634)
* Add documentation on how plugin hooks interact with the chart

* Add draw.io file for flowcharts
2021-03-14 08:12:06 +02:00
Evert Timberg
d84db2cefc
Radial scale point label backdrop color (#8633)
* Radial scale point label backdrop color

* Update default tests

* backdropPadding is a single setting

* Up the tolerance a bit

* Update tick backdrop padding options
2021-03-13 17:37:43 -05:00
Jukka Kurkela
a026b60653
Change default autoSkipPadding to 3 (#8629) 2021-03-13 13:30:19 -05:00
Evert Timberg
6ac89cbb25
Rename scale gridLines options to be clearer (#8628)
* Rename `options.gridLines` to `options.grid`

* Rename `offsetGridLines` to `offset`
2021-03-13 19:49:09 +02:00
Jukka Kurkela
aae8a06c37
Update context documentation (#8626) 2021-03-13 08:05:57 -05:00
Jacco van den Berg
ec5fb6b601
Update v3-migration.md (#8622)
Add note in migration guide about ability to use the `auto` register path as a npm module
2021-03-13 14:03:04 +02:00
Ikko Ashimine
e513a90427
Fix typo in animations.mdx (#8615)
transtion -> transition
2021-03-11 08:19:33 +02:00
Jukka Kurkela
a4231486eb
helpers.curve cleanup (#8608)
* helpers.curve cleanup
* Use distanceBetweenPoints
2021-03-10 09:32:54 -05:00
Jukka Kurkela
d48a62a4e9
Add backgroundColor for scales (#8606)
* Add backgroundColor for scales
* Loosen the threshold
2021-03-10 08:18:10 -05:00
Ikko Ashimine
7dce94e820
Fix typo in linear.mdx (#8605)
minumum -> minimum
2021-03-10 09:23:05 +02:00
Jukka Kurkela
4c3e992657
RadialLinear: add padding option for point labels (#8604)
* RadialLinear: add padding option for point labels

* lint

* only resolve padding once
2021-03-10 08:40:22 +02:00
Evert Timberg
9a042672a7
Update scriptable tooltip context docs (#8599) 2021-03-09 08:08:50 -05:00
Jukka Kurkela
7ec99c38c1
Move startAngle to scale options (#8593) 2021-03-08 13:36:54 -05:00
Evert Timberg
275fdaf3da
Expose radial scale point label positions (#8588) 2021-03-07 16:58:45 -05:00
Jacco van den Berg
5a48604df7
Update legend.md (#8582)
Noticed from https://github.com/chartjs/Chart.js/issues/6185#issuecomment-748097030 that there is an option to get the legend in the chart, this was not documented. Only difference I noticed from kurkles screenshot is that the legend now shows in the middle instead of in the top corner.

https://jsfiddle.net/Leelenaleee/wszdv8q0/2/
2021-03-07 22:43:31 +02:00
Jukka Kurkela
160534f913
Add 'single' mode for stacking (#8586)
* Add `'single'` mode for stacking

* Update fixture
2021-03-07 10:52:31 -05:00
Jukka Kurkela
7ccf9e2d4d
Add grace option for linear scale (#8581)
* Add `grace` option for linear scale

* cc
2021-03-06 17:18:49 -05:00
Jukka Kurkela
8d6e87881a
Relocate chart type and dataset type defaults (#8563)
* Relocate chart type and dataset type defaults

* Update types

* Separate overrides and descriptors

* Update derived sample, use merge for inherit

* Don't merge overrides

* Review update
2021-03-06 10:34:52 -05:00
Evert Timberg
279b6ae1da
Enable multi-line axis titles (#8579) 2021-03-06 10:18:32 -05:00
Evert Timberg
a23f1de6df
Rename scaleLabel to title in scale options (#8576) 2021-03-05 23:22:55 -05:00
Jacco van den Berg
33ff1fe059
update defaults in tooltip (#8554) 2021-03-02 08:59:10 +02:00
stockiNail
bc6ef46651
Fixes sample in the doc about missing animations configuration (#8549) 2021-03-01 15:06:01 -05:00
Evert Timberg
c5dcf5a20d
Update chart extension docs + add samples (#8540)
* Update docs on chart extensions
* Working sample for derived chart types
* Add derived axis example
* Remove duplicated line
2021-02-28 16:02:44 -05:00
Jukka Kurkela
9043325a6e
Provide auto-registering entry point (#8429) 2021-02-28 09:02:44 +02:00
Evert Timberg
d08eb147fc
Clarify interaction docs to indicate they apply to all interactions (#8537)
* Clarify interaction docs to indicate they apply to all interactions

* Update note on modes documentation to indicate interaction options exist

* Fix ytpo
2021-02-28 02:46:58 +02:00
Jacco van den Berg
9741942976
rename tooltip.custom property to tooltip.external (#8523)
* rename tooltip.custom property to tooltip.external

* Implement feedback

* missed 1
2021-02-27 18:18:12 +02:00
Jacco van den Berg
bd303f4a2c
Update wording in docs about merging options (#8533) 2021-02-26 14:57:34 -05:00
Ben McCann
7c75310a0c
Use null for skipped values instead of NaN (#8510)
* Use null for skipped values instead of NaN

* Document skipped values when parsing is false

* Update src/core/core.datasetController.js

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

* Update src/core/core.datasetController.js

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

* fix lint issue

* use isFinite

* revert change checking for pixel values

* ternary readability

* revert accidental paren movement

* test with parsing: false

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2021-02-24 18:20:11 -05:00
Jukka Kurkela
12e9020ab7
Remove unused getRingIndex from Doughnut (#8521) 2021-02-24 18:13:51 -05:00
Jukka Kurkela
b06cd36697
Rename cutoutPercentage to cutout + chores (#8514) 2021-02-24 16:58:01 -05:00
Jukka Kurkela
65a601476c
Remove debug option from animation (#8512)
* Remove debug option from animation

* Add converage for visible animation

* Update visible animation fn
2021-02-24 21:32:54 +02:00
Jukka Kurkela
ee74dd646a
Add resizeDelay option (#8509)
* Add resizeDelay option
* Extract helper
2021-02-23 18:40:57 -05:00
Jacco van den Berg
99ca8334f8
data type is correct for all chart types (#8504)
* data type is correct for all chart types
* implement feedback
2021-02-23 15:30:57 -05:00
Ben McCann
f1471458c4
Perf docs: tension is now 0 by default (#8500) 2021-02-23 13:59:50 +02:00
Jukka Kurkela
311292da7e
Add linting of .mdx files + fix errors (#8496) 2021-02-22 08:53:13 -05:00
Jacco van den Berg
0c1320c2f9
Sample plugin in docs for canvas background (#8492)
* color done

* add example inline plugins for background image and color

* add link to css background

* improve text bit

* fix build error

* implement kurkles feedback

* fix indenting tab -> spaces
2021-02-22 08:52:57 -05:00
Evert Timberg
8c4e862a2c
Merge tooltip padding settings (#8493) 2021-02-22 08:30:25 +02:00
Jukka Kurkela
65bfacd9a5
Add outerRadius option to doughnut/pie (#8487) 2021-02-21 17:30:37 -05:00
Evert Timberg
b27a4608cc
Document the fullSize property of the title plugin (#8488) 2021-02-21 23:25:03 +02:00
Kashif Shamaz
832bf9144a
Added 'hidden: boolean' to ControllerDatasetOptions type and documented the field's usage in Dataset configuration section (#8478) 2021-02-21 18:17:01 +02:00
Evert Timberg
5c9e1d578c
LTTB Decimation (#8468)
* LTTB Decimation
* Lint fixes
2021-02-21 09:15:45 -05:00
Jukka Kurkela
57c8027e7c
Stop reading fixedStepSize from tick options (#8466) 2021-02-20 13:56:50 -05:00