Commit Graph

1039 Commits

Author SHA1 Message Date
Jacco van den Berg
bc6ef16f31
fix 2 broken links, clarify order property (#9516) 2021-08-08 16:52:09 -04:00
Evert Timberg
148114b03b
Add more details on legend sort function (#9524) 2021-08-08 16:51:56 -04:00
M4sterShake
96ab578b6e
fixing typo in docs on axes labelling (#9503)
Co-authored-by: Max <max.borkowski@reedbusiness.com>
2021-08-01 07:02:44 +03:00
Jacco van den Berg
f0a53fd44e
Move pointStyle types and update plugin link&render chart (#9479)
* Place canvasElement on next line to keep table clean

* move typing to global location, update plugin page
2021-07-30 08:14:07 -04:00
Yash Singh
c0d8dd9d05
Shorthand labels key in getting started (#9465)
* Shorthand labels key in getting started

* Change to longhand
2021-07-27 23:48:14 +03:00
Niklas Noldin
2400fcb432
Adjust text to code example (#9475)
The previous text explains that, in the example, the font color is set and overridden but the code sets and overrides the _font size_.
2021-07-26 13:15:39 -04:00
Juan Cortés Ross
ac6929d8f6
Update charts.md (#9472) 2021-07-26 09:35:03 -04:00
stockiNail
3311377682
Adds HTMLCanvasElement as possible value for pointStyle option (#9458) 2021-07-23 08:26:49 +03:00
Jukka Kurkela
b32fb48574
Bar: add 'middle' option for borderSkipped (#9452)
* Bar: add 'middle' option for borderSkipped
* Split in 2
2021-07-21 07:13:45 -04:00
Jukka Kurkela
cf951ac611
Add ability to hide specific data element (#9450) 2021-07-21 07:08:02 -04:00
Jukka Kurkela
151188e2f2
Add data/dataset indices to line segment context (#9451) 2021-07-21 07:00:05 -04:00
Jukka Kurkela
47d4b04836
Layout: support box stacking (#9364)
* Layout: support box stacking

* Add stackWeight and sample

* Cleanup, update docs and types

* Avoid div0

* missing semi
2021-07-11 06:23:42 -04:00
Jacco van den Berg
655c635191
Add SubTitle to the list of all esm imports (#9384) 2021-07-10 08:09:33 -04:00
Evert Timberg
774c444cb9
Point label specific scriptable context (#9373) 2021-07-09 06:57:55 -04:00
Jukka Kurkela
840599637f
Add 'shape' mode for filler-plugin (#9360) 2021-07-05 17:03:19 -04:00
Nico-DF
b4dee5507c
Adding threshold option to decimation plugin (#9327) 2021-07-04 13:19:35 -04:00
Jukka Kurkela
28d6619555
Update deps (#9349) 2021-07-04 07:27:00 -04:00
stockiNail
548d042099
Fixes spacing options in the table (#9338) 2021-07-01 11:09:44 -04:00
Jacco van den Berg
925fc71cc9
Clarify how to import and use the helper functions with bundlers (#9319) 2021-06-25 18:34:41 -04:00
Jacco van den Berg
e4c7a73e31
resolves #9316 (#9317) 2021-06-25 08:07:11 -04:00
Ben Lumley
3bb0241dee
Fix broken link (#9315) 2021-06-25 14:08:38 +03:00
Jukka Kurkela
ed73dce18b
Docs: describe catching events with plugin (#9296) 2021-06-20 13:11:30 -04:00
Jukka Kurkela
c6976e8975
New plugin: subtitle (#9294)
* New plugin: subtitle

* Fix naive error for multiple charts
2021-06-20 07:34:55 -04:00
Josh Kelley
2768c7dea7
Fix type definitions for getPixelForValue (#9263)
Update docs: From what I can tell, the `index` parameter was re-introduced as part of the new `normalized` option.
2021-06-14 07:49:27 +03:00
Jukka Kurkela
54da5341f1
Docs: Add copy button to code blocks (#9262) 2021-06-13 07:40:51 -04:00
Jukka Kurkela
6a46cc39bb
Docs: fix broken and inconsistent links (#9237) 2021-06-05 08:04:57 -04:00
Jacco van den Berg
26f8d7b735
complete custom legend click sample to also work for pie/doughnut charts (#9219) 2021-06-02 22:48:04 +03:00
Jacco van den Berg
b78b7c3534
Add explanation on how to run the samples locally (#9207)
* add explenation on how to run the samples locally

* Remove unecesarry parts from link
2021-06-02 22:47:16 +03:00
Evert Timberg
599e23abfd
Tick backdrop padding is not scriptable (#9191)
* Tick backdrop padding is not scriptable
* Remove unneeded change
* Update _scriptable for callback
2021-05-30 16:59:49 -04:00
Evert Timberg
c853ca6942
Allow setting a constance spacing between arc elements (#9180) 2021-05-29 17:47:44 -04:00
Jukka Kurkela
8c63351067
Add documentation about default scales (#9173) 2021-05-28 07:37:21 -04:00
Jacco van den Berg
f486610693
Update pointstyle type and default value (#9168) 2021-05-26 11:21:57 -04:00
Jacco van den Berg
140cbb4cd6
show the utils file in the samples page to clarify what the functions do (#9160) 2021-05-26 07:55:26 -04:00
Sylhare
ee519606f2
Fix scales option in example (#9146) 2021-05-21 17:56:21 -04:00
Jacco van den Berg
6f7d5fbb64
add legend to the default onclick to make sample work (#9126) 2021-05-19 10:40:10 -04:00
Evert Timberg
ccff2fd163
Add documentation note about only styling the parent div (#9115) 2021-05-18 08:11:17 -04:00
Jacco van den Berg
43d3f4d19b
remove double sentence and adjust scale to scales.r (#9111) 2021-05-17 17:08:39 +03:00
Jacco van den Berg
9885126ac0
add default values so it wont crash on out of memory calculation by calcualting power of infinity (#9060) 2021-05-10 08:50:17 -04:00
Evert Timberg
a87175f119
HTML legend handles doughnut/pie charts (#9044)
* HTML legend handles doughnut/pie charts

* Fix lint error
2021-05-08 08:10:18 +03:00
Jukka Kurkela
7c3a412887
Add includeBounds option for cartesian ticks (#9020)
* Add includeBounds option for cartesian ticks

* Types, test and fix

* lint

* Improve linear tick min/max collision detection

* Update comments
2021-05-07 09:03:37 +03:00
hiroki shimizu
f5c51afd51
fix typo on api.md (#9030) 2021-05-05 07:49:05 -04:00
Jacco van den Berg
e021a77214
add index for radial axes to nav and update fonts location file in pointlabels (#9024) 2021-05-04 22:18:25 -04:00
Evert Timberg
55dd426a41
Add documentation on tooltip xAlign and yAlign (#9011) 2021-05-01 11:57:13 -04:00
Jukka Kurkela
eaa3a68cea
Add drawTime: beforeDraw option to filler (#8973) 2021-04-24 15:27:52 -04:00
Evert Timberg
87ce198ac8
In html tooltip sample padding is read from the options (#8971) 2021-04-24 10:51:19 -04:00
Evert Timberg
b92f9e52fd
Only enable the bar borderRadius at the end of the stacks (#8941)
* Only enable the bar borderRadius at the end of the stacks
* Float bars always get borders enabled
* Tests
* Update documentation
2021-04-18 16:30:54 -04:00
Jukka Kurkela
019cb9f305
Add example plugins for border and quadrants (#8942) 2021-04-18 16:02:20 -04:00
Evert Timberg
af7965fc31
Cartesian scale tick backdrop (#8931) 2021-04-18 12:49:22 +03:00
Jukka Kurkela
ca50287a76
Add initial property to animation callbacks (#8926) 2021-04-17 08:09:22 -04:00
Jukka Kurkela
d5f4a82e74
Fix minor issues in docs (#8910) 2021-04-16 15:46:14 -04:00
Касымов Нурлан
be7a2ce69e
Fix javascript syntax error in docs/general/padding.md (#8907) 2021-04-16 20:32:26 +03:00
Jacco van den Berg
768bd38822
Update v3-migration.md (#8904)
Update link to index axis of horizontal bar
2021-04-15 23:08:07 +03:00
Jukka Kurkela
95faa4f2a2
Docs: Update version menu title (#8887) 2021-04-12 17:18:02 -04:00
Jukka Kurkela
0ae0fd4b2a
Limit onHover to chartArea (#8794) 2021-04-10 16:13:30 -04:00
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