Commit Graph

3947 Commits

Author SHA1 Message Date
Jukka Kurkela
0ef1897a98
Redirect to first sample (#8783) 2021-04-02 10:56:32 -04:00
Evert Timberg
877f4c6b2d
Fix tooltip align & external types (#8782) 2021-04-02 10:53:00 -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
eef5c1ebf3
Bump to v3.0.0-rc.7 (#8779) 2021-04-02 09:32:59 -04:00
Evert Timberg
d4cb431b84
Remove old sample files (#8777)
* Remove old sample files

* Code review feedback

* Add sample redirect
2021-04-02 09:10:03 -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
AW
38bd974c5a
Contributing link show 404 error page cause by wrong url (#8774) 2021-04-02 07:43:39 -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
Jukka Kurkela
9fb18c2fd7
Fix typo, add tests to catch (#8768)
* Fix typo, add tests to catch
* Tune tests
2021-04-01 11:11:14 -04:00
Jukka Kurkela
bc2c92e65c
Ensure scriptable context reflects updated data (#8765) 2021-04-01 07:17:02 -04:00
Evert Timberg
d2c8402445
Scriptable title plugin options (#8764) 2021-04-01 10:16:03 +03:00
Jukka Kurkela
f1810586f7
Pie: Fix last slice animation and NaN handling (#8760)
* Pie: Fix last slice animation and NaN handling

* Add tests

* Fix polarArea
2021-03-31 15:25:25 -04:00
Jukka Kurkela
5cb60d5110
Remove .d.ts from helper types location (#8761) 2021-03-31 15:18:09 -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
4b7b3f277f
Build docs with node14 (#8754) 2021-03-30 10:48:40 -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
88c585b11e
Legend: adjust lifecycle and event handling (#8753) 2021-03-30 10:12:07 -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
fe406bf717
Legend: Ignore replayed events (#8749) 2021-03-28 12:21:53 -04:00
Jukka Kurkela
c76ee82461
Bump version to 3.0.0-rc.6 (#8742) 2021-03-27 17:32:59 -04:00
Jukka Kurkela
d6972abd48
Add note about inline plugins and registration (#8741) 2021-03-27 16:43:56 -04:00
Jukka Kurkela
64593ed74c
Time: Fix offset with low data counts (#8740) 2021-03-27 15:55:54 -04:00
Evert Timberg
0b21578a3a
Improved alignment of pixels in scales at low widths (#8739)
* Improved alignment of pixels in scales at low widths
* Undo scale changes
2021-03-27 15:00:21 -04:00
Jukka Kurkela
b2c7baf10d
Avoid recursive event replay loops (#8738)
* chart._lastEvent = null while processing onHover

* Pass replay flag to external tooltip

* Add test for replay

* cc
2021-03-27 06:11:51 -04:00
Jukka Kurkela
396cbcb979
Bubble: Fix maxOverflow before elements update (#8736) 2021-03-26 18:20:05 -04:00
Jukka Kurkela
37080c9a8d
Add comments for finding registry hook calls (#8734) 2021-03-27 00:10:41 +02: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
Josh Kelley
54c5b7a084
Add a convenience alias for scale options (#8732)
* Add a convenience alias for scale options

Closes #8731

* Add an automated test

* Use parameter for a more realistic test
2021-03-26 16:20:59 -04:00
Jacco van den Berg
21aaa35610
Update helper types location (#8729)
Comming from #8720 resolves #8728
2021-03-26 16:58:13 +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
Evert Timberg
04d67aaf8c
Point to correct type file & bump (#8724) 2021-03-25 18:03:05 -04:00
Jukka Kurkela
658749f707
Bump version to 3.0.0-rc.4 (#8721) 2021-03-25 17:34:31 -04:00
Jukka Kurkela
499a71d4eb
Make type-tests strict (#8717) 2021-03-25 15:09:35 -04:00
Josh Kelley
3671c01c26
Distribute types as is (#8720)
I had initially seen some oddities around type augmentation for type definitions in subdirectories of `types`, and using Rollup seemed to help with that. However, now that all of Chart.js's main types are directly under `types`, there seems to be no need for this.

This simplifies the build process, since it no longer needs to use rollup-plugin-dts.

It also improves some third-party tools. For example, I'm in the habit of using WebStorm's "Go To Declaration or Usages" hotkey with third-party TypeScript definitions as a quick way of getting more information about an API. With the Rollup-generate types, that works poorly; WebStorm goes to the imported-and-re-exported symbol within the barely-readable machine-generated dist/chart.esm.d.ts file, and I have to navigate two more hops to find the actual definitions.
2021-03-25 15:08:00 -04:00
Josh Kelley
9293dda4a7
Minor type fixes (#8719)
* Update RadialLinearScaleOptions.pointLabels.callback type

The code passes `index` as the second parameter, and one of the tests uses this.  `@default true` doesn't seem to make sense.

* Add types for additional documented parameters in tooltip callbacks
2021-03-25 11:09:01 -04:00
Jukka Kurkela
7fff21b3bb
Add defaults.describe/defaults.override typings (#8716) 2021-03-24 15:30:45 -04:00
Evert Timberg
9583edd38d
LayoutItem.update should return void (#8714) 2021-03-24 13:38:25 -04:00
Jacco van den Berg
39140cca2e
Remove the comparrison doc page (#8709) 2021-03-24 15:39:48 +02:00
Evert Timberg
4d69a8510c
fix: Scales correctly respect the locale setting when generating labels (#8710) 2021-03-24 09:33:47 -04:00
Jukka Kurkela
bbf298f461
formatters.numeric: verify ticks length (#8705)
* formatters.numeric: verify ticks length
* use tickValue as fallback delta, add tests
* cc, chore
2021-03-23 16:14:22 -04:00
Jukka Kurkela
4cd26fad6a
Bump version to rc.3 (#8706) 2021-03-23 16:08:14 -04:00
Jukka Kurkela
74f2f85ec3
Line: update all points when scale range changes (#8703) 2021-03-23 08:28:38 -04: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
Evert Timberg
2fc98ddc39
Allow fill: true and null in ChartDataset.data (#8700)
* Handle `fill: true`
* ChartDataset allow number/null data
2021-03-22 18:59:50 -04:00
Jukka Kurkela
e51a401449
Category: parse to valid index values only (#8697) 2021-03-22 17:20:03 -04:00
Jukka Kurkela
9499a1e1ef
Move scale defaults to separate file (#8692) 2021-03-21 18:13:50 -04:00
Jukka Kurkela
bd9bc69c0c
Move autoSkip related functions to separate file (#8691) 2021-03-21 17:07:28 -04:00