Commit Graph

69 Commits

Author SHA1 Message Date
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
Jacco van den Berg
341f903f5b
document defaults for plugins (#10490) 2022-07-20 18:53:14 +02:00
Jacco van den Berg
7b01d33fed
clarify api docs (#10392) 2022-06-01 14:38:39 -04:00
Evert Timberg
43889f247c
Document tooltip draw hooks and only call hooks when the tooltip draws (#10276)
* Document tooltip draw hooks and only call hooks when the tooltip draws

* Update tests
2022-04-03 10:09:46 -04:00
Jacco van den Berg
4c42bd0919
Correct chart initialization flow (#10266)
* update flow chart to reflect correct flow

* Update drawio file
2022-03-31 08:08:00 -04:00
Evert Timberg
759a56c3a5
Document scale update plugin hooks (#10154) 2022-02-13 10:22:12 -05:00
Jacco van den Berg
e7aec8c301
add beforeDestroy hook (#9933)
* add `beforeDestroy` hook
* add documentation of destroy lifecycle, add `afterDestroy` hook and deprecate destroy
2021-12-05 09:05:18 -05:00
Dmitriy Fishman
1107073a98
Fix a typo in index.md (#9900)
Fix a typo
2021-11-25 08:19:26 -05:00
Dmitriy Fishman
26ca35f8b4
Update contributing.md (#9893) 2021-11-25 08:10:12 -05:00
Eric Theise
67c5a85144
Define with let to avoid "assignment to constant" errors (#9803)
* Define with let to avoid "assignment to constant" errors

Thanks for this example. Defining `label` with `const` rather than `let` results in `Uncaught TypeError: Assignment to constant variable.`

* Another case where const needs to be replaced with let.

* Requested cases where const needs to be replaced with let +1 (style).
2021-10-30 09:23:14 -04:00
PrashoonB
6f7e09540c
Changed var to const/let in the docs (#9744)
Changed var to const/let in the docs
2021-10-13 14:51:33 -04:00
Evert Timberg
eb1e82c981
Update old codepen links to ones for v3 (#9619) 2021-09-04 14:03:52 -04: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
Juan Cortés Ross
ac6929d8f6
Update charts.md (#9472) 2021-07-26 09:35:03 -04:00
Jukka Kurkela
cf951ac611
Add ability to hide specific data element (#9450) 2021-07-21 07:08:02 -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
hiroki shimizu
f5c51afd51
fix typo on api.md (#9030) 2021-05-05 07:49:05 -04:00
Evert Timberg
ac0a86b95d
Document plugin event handling (#8828) 2021-04-05 06:48:59 +03: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
Jukka Kurkela
49f8fab448
Links: Rename .mdx to .md (#8775) 2021-04-02 07:48:50 -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
Ben McCann
2851a94b92
Migrate from GitBook to Docusaurus (#7295)
Migrate from GitBook to Docusaurus
2020-05-05 15:19:57 -04:00
Jukka Kurkela
a3dddb45d9
Use global element hidden status for Pie charts (#7156)
Use global element hidden status for Pie / polarArea charts
2020-03-01 09:07:39 -05:00
Ben McCann
3c1e04f928
Allow registering scale with single parameter (#7157)
Allow registering scale with single parameter
2020-02-27 19:38:10 -05:00
Jukka Kurkela
70b6eab563
Configurable hide/show animations (#7055)
Configurable hide/show animations
2020-02-06 18:16:24 -05:00
Ben McCann
9bd2af9e9b Move location of dataset options (#6955)
* Move location of dataset options
* Fix misplaced period
2020-01-13 19:39:30 -05:00
Evert Timberg
9cb65d2c97
Add API to change data visibility (#6907) 2020-01-06 17:16:00 -05:00
Jukka Kurkela
f4792306e0 Remove global from defaults (#6893) 2020-01-03 14:07:38 -05:00
Evert Timberg
e96ad6f249
Remove HTML legend that is mostly unsupported. (#6887)
* Remove HTML legend that is mostly unsupported.

Resolves the discussion in #5070

* Add migration docs
2020-01-03 13:56:11 -05:00
Jukka Kurkela
b83f64b16e Rewrite animation logic (#6845)
* Rewrite animation logic

* Review update 1

* Review update 2

* Review update 3

* Add 'none' to api.md
2019-12-27 17:13:24 -05:00
Ben McCann
3093562b33 Rename calculateTickRotation to calculateLabelRotation (#6809) 2019-12-14 13:22:57 -05:00
Ben McCann
2be634a478 Interactions cleanup (#6825) 2019-12-14 13:09:50 -05:00
Jukka Kurkela
ce74eb76a1 Convert axis options from arrays to objects (#6773)
* Convert axis options from arrays to objects

* Updated all chart type defaults
* Throw errors when axis type or position are not specified
* Avoid raising unnecessary errors when merging options into the default configs

* Fix additional tests

* Ensure scale defaults are set if type is not explicitly defined

* Another step

* Include `scale` as `firstIDs.r`

* update docs

* Update for buildOrUpdateScales

* Update migration guide

* Add test back
2019-11-21 18:46:49 -05:00
Ben McCann
3a33793f64 Generate jsdocs (#5824) 2019-11-08 07:28:21 -05:00
Edward Thomson
aff7d41140 Add cross-platform CI (#6670)
* Linux and Windows CI with GitHub Actions
* Add karma-edge-launcher
* Add edge configuration to karma.conf.js
* Support --browsers on the command line for karma tests
* Add macOS CI builds
* Add karma-safari-private-launcher
* Document browser specification for tests
2019-11-06 07:14:09 -05:00
Jukka Kurkela
72df272234 Early data parsing, stacking by value and support object data (#6576)
* Early data parsing + stacking by value
* Review comments
* review comments
* Remove reduntant parsing
* Couple CC warnings
* Optimize filterBetween
* More migration info
2019-11-04 18:07:01 -05:00
Ben McCann
dd8d267956 Remove bundled builds (#6680) 2019-11-02 15:48:49 -04:00
stockiNail
14010530d7 Added the global datasets defaults for new extended chart type (#6649)
Added documentation to create a global datasets default for new extended chart type.
This is currently mandatory for BAR/HORIZONTALBAR charts (see issue [#6636](https://github.com/chartjs/Chart.js/issues/6636))
2019-10-30 18:42:15 -04:00
Ben McCann
653e9a954e Add a note about how to include an example against master (#6107) 2019-03-03 10:26:40 +01:00
Ben McCann
79fc340514 Add instructions for image-based tests to the contributors guide (#6073) 2019-02-25 09:17:37 +01:00
Ben McCann
765c432dfa Fix duplicate anchor (#6038)
* Fix broken documentation anchors

* Revert changes to installation docs
2019-02-04 20:00:44 -05:00
Akihiko Kusanagi
0d01bcf5cc Fix typos and make the docs consistent (#6020) 2019-01-29 13:34:16 +01:00
Ben McCann
740e0874a4 Update contributors guide and issue templates (#5962) 2019-01-16 09:35:14 +01:00
Alexander Wunschik
f342299845 Fix contribution docs about gulp-cli (#5968)
Update the docs so that only gulp-cli is installed globally
2019-01-09 08:10:58 +01:00
Simon Brunel
52b9793ba0 Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
Ben McCann
3a29b99e3b Use HTTPS in documentation links where possible (#5915) 2018-12-15 11:28:17 +01:00
Simon Brunel
2a97ec21c5
Migrate from Browserify to rollup (#5904)
Browserify isn't optimal bundling Chart.js because it adds too many internal wrappers, doesn't handle external/global dependencies and doesn't provide a way to generate ESM builds. Therefore, it seems the right choice to switch to rollup, so move all the build process in `rollup.config.js` and make Gulp to execute `rollup -c`.

We also had to switch to Terser instead of UglifyJS because this last one contains a breaking bug. Note that tests now use the exact same rollup config as our builds (the minified one) to ensure that the bundling and minification steps don't break anything. Finally, replace the `gulp watch` task by `gulp build --watch` to be consistent with the other `unittest` and `docs` watching syntax.
2018-12-14 20:20:43 +01:00
Bart Deslagmulder
f40abe9244 Consistent use of punctuation and quick review in docs (#5796) 2018-11-02 08:46:06 +01:00