Commit Graph

899 Commits

Author SHA1 Message Date
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