Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vuepress docs #7

Merged
merged 348 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
b50fba3
Fix/scatter tooltip mode (#8354)
LeeLenaleee Jan 30, 2021
ad84d28
Rename LayoutItem.fullWidth to fullSize (#8358)
kurkle Jan 31, 2021
ae0c8dd
align text inside chart for far-aligned labels passing test (#8359)
LeeLenaleee Jan 31, 2021
6e555e2
Prevent test timeouts due to Chrome backgrounding (#8360)
kurkle Feb 1, 2021
49b0916
Update type map names (#8356)
etimberg Feb 1, 2021
2890b70
Shave off some bytes (#8362)
kurkle Feb 1, 2021
df4cabd
Bump version number for beta.10 (#8364)
etimberg Feb 1, 2021
650956b
Create a new hook to enable data decimation (#8255)
etimberg Feb 1, 2021
4491732
Prevent 2nd parse call with zero count (#8379)
kurkle Feb 4, 2021
0955a25
Improve radial gradient sample (#8383)
kurkle Feb 5, 2021
eb7ce4e
Add raw data to context and rename dataPoint to parsed (#8318)
benmccann Feb 5, 2021
6e56ae6
Update types for indexAxis (#8389)
kurkle Feb 5, 2021
505afa7
Fix element creation for large dataset (#8388)
kurkle Feb 5, 2021
22ca8af
Fix/type dateadapter override (#8377)
LeeLenaleee Feb 6, 2021
9075895
Update ScriptableContext, reduce warnings (#8390)
kurkle Feb 6, 2021
6737cb0
Codeclimate: Cognitive Complexity threshold 5->6 (#8391)
kurkle Feb 6, 2021
ffe4ab1
Remove options.scale, in favor of options.scales.r (#8393)
kurkle Feb 6, 2021
c280337
Update anchorlinks and offscreen canvas compatibility (#8395)
LeeLenaleee Feb 8, 2021
8fa073a
Fixes wrong and missing options and to bar element and dataset doc (#…
stockiNail Feb 9, 2021
ddfbcf7
Update eslint-config-chartjs to v0.3.0 (#8406)
kurkle Feb 10, 2021
a8329e4
Update chartjs-test-utils to v0.2.1 (#8407)
kurkle Feb 10, 2021
6de5b3f
Small chores (#8408)
kurkle Feb 10, 2021
422d26d
Optimize context object construction (#8413)
kurkle Feb 14, 2021
d26172a
infra: Bump CI to node 14 (#8426)
etimberg Feb 14, 2021
b036b7b
Provide a method to quickly register all imports in ESM builds (#8425)
etimberg Feb 15, 2021
e1f254f
Add `Decimation` to all available imports list (#8430)
kurkle Feb 15, 2021
cfd9c98
Option resolution with proxies (#8374)
kurkle Feb 15, 2021
c4bc737
Update typedoc to fix dependabot alert (#8432)
etimberg Feb 15, 2021
5baafac
Make Chart static properties and methods read only (#8431)
kurkle Feb 15, 2021
19a91be
Remove unused typedoc option that is deprecated (#8433)
etimberg Feb 15, 2021
616a877
perf: resolveObjectKey (#8434)
kurkle Feb 15, 2021
81e28c9
Add a note about hover options (#8436)
etimberg Feb 15, 2021
9fb87a4
Round canvas size to 0.1px resolution (#8437)
kurkle Feb 16, 2021
b77f258
perf: resolver caching (#8435)
kurkle Feb 16, 2021
a6a1228
Fix memory leak on destroy (#8438)
kurkle Feb 16, 2021
7e6a711
Run compressed Size action on pull_request_target (#8440)
kurkle Feb 16, 2021
a73a8c4
Fix couple of animation bugs (#8439)
kurkle Feb 16, 2021
c96c167
Update .editorconfig and fix conf indents (#8442)
kurkle Feb 17, 2021
d8ecf8b
Fix controller specific animations (#8444)
kurkle Feb 17, 2021
b468bff
Add test for default doughnut animations (#8446)
kurkle Feb 17, 2021
ba99c41
Add markdown linting, fix errors (#8449)
kurkle Feb 18, 2021
5411be1
Add support for common object methods to Proxies (#8452)
kurkle Feb 18, 2021
46d567a
Revert "Run compressed Size action on pull_request_target (#8440)" (#…
kurkle Feb 18, 2021
e2a4734
Add fixture for bar hide/show animation (#8453)
kurkle Feb 18, 2021
e6742e3
Add tests for polarArea chart animations (#8455)
etimberg Feb 18, 2021
e8f9542
Update doughnut animation fixture (#8457)
kurkle Feb 18, 2021
850e6e4
Update resolver fallback logic (#8456)
kurkle Feb 19, 2021
0770e80
add clarification about object data structure (#8447)
LeeLenaleee Feb 19, 2021
4219001
Clarify options placement (#8427)
LeeLenaleee Feb 19, 2021
ce0f7ff
Update polar animation tests to less error prone (#8461)
kurkle Feb 19, 2021
aa5e0fe
Remove core plugin fallbacks to root options (#8462)
kurkle Feb 19, 2021
d264672
Fix/getRelativePosition NaN value with native event (#8459)
LeeLenaleee Feb 19, 2021
284e357
Fix broken links (#8463)
LeeLenaleee Feb 20, 2021
5d5e48d
Isolate properties / modes from animation options (#8332)
kurkle Feb 20, 2021
d63542c
Bump version to 3.0.0-beta.11 (#8441)
kurkle Feb 20, 2021
b467c0d
Only use Path2D caching when available (#8464)
kurkle Feb 20, 2021
329b826
Disable fastPathSegment when data is decimated (#8465)
kurkle Feb 20, 2021
57c8027
Stop reading fixedStepSize from tick options (#8466)
kurkle Feb 20, 2021
709dc3e
Decimation plugin fixes (#8467)
etimberg Feb 20, 2021
9b214c0
Stop defaulting to `r` axis for Scale with id `r` (#8477)
kurkle Feb 21, 2021
b87c12e
Update dependencies (#8474)
kurkle Feb 21, 2021
def8d25
Fix animation types, add test (#8476)
kurkle Feb 21, 2021
5c9e1d5
LTTB Decimation (#8468)
etimberg Feb 21, 2021
9f071b0
Update index.esm.d.ts (#8472)
LeeLenaleee Feb 21, 2021
832bf91
Added 'hidden: boolean' to ControllerDatasetOptions type and document…
kashifshamaz21 Feb 21, 2021
24fb77b
Quote globs for equal operation in windows/linux (#8481)
kurkle Feb 21, 2021
6aa8840
Update chartjs-test-utils to v0.2.2 (#8479)
kurkle Feb 21, 2021
aa69892
Provide a chart-type specific definition for ParsedData (#8480)
etimberg Feb 21, 2021
5285735
Fix ticks.mirror (#8482)
kurkle Feb 21, 2021
6f0e795
Only consider visible vertical boxes in layout (#8483)
kurkle Feb 21, 2021
b27a460
Document the `fullSize` property of the title plugin (#8488)
etimberg Feb 21, 2021
65bfacd
Add outerRadius option to doughnut/pie (#8487)
kurkle Feb 21, 2021
8c4e862
Merge tooltip padding settings (#8493)
etimberg Feb 22, 2021
0c1320c
Sample plugin in docs for canvas background (#8492)
LeeLenaleee Feb 22, 2021
311292d
Add linting of .mdx files + fix errors (#8496)
kurkle Feb 22, 2021
8c1cca2
Document stacked parse data (#8491)
etimberg Feb 22, 2021
36966a4
update borderskipped typing (#8503)
LeeLenaleee Feb 23, 2021
f147145
Perf docs: tension is now 0 by default (#8500)
benmccann Feb 23, 2021
4c960fb
Plugin options default scriptable/indexable=false (#8497)
kurkle Feb 23, 2021
e55a12c
Add linting of type tests (.ts) + fix errors (#8505)
kurkle Feb 23, 2021
639c34f
Fix set/delete oprations on Proxies (#8506)
kurkle Feb 23, 2021
99ca833
data type is correct for all chart types (#8504)
LeeLenaleee Feb 23, 2021
4207645
Time scale: skip invalid data (#8508)
kurkle Feb 23, 2021
ee74dd6
Add resizeDelay option (#8509)
kurkle Feb 23, 2021
65a6014
Remove debug option from animation (#8512)
kurkle Feb 24, 2021
692d8a4
Remove unreachable code paths from plugins (#8513)
kurkle Feb 24, 2021
5ab5552
Fix layout bug when there are no visible boxes (#8507)
kurkle Feb 24, 2021
b31352c
Reduce duplication in PointElement (#8517)
kurkle Feb 24, 2021
2edd07d
Config is no longer updated by options setter (#8516)
kurkle Feb 24, 2021
b06cd36
Rename cutoutPercentage to cutout + chores (#8514)
kurkle Feb 24, 2021
8796a1b
Fix stacking bug when a dataset is removed (#8520)
kurkle Feb 24, 2021
12e9020
Remove unused getRingIndex from Doughnut (#8521)
kurkle Feb 24, 2021
7c75310
Use null for skipped values instead of NaN (#8510)
benmccann Feb 24, 2021
53ea370
Clean up easing functions (#8518)
kurkle Feb 24, 2021
bb82aaa
Update types so instance can be assigned to a variable of type Chart …
kurkle Feb 26, 2021
061e3db
Fix calling of onResize (#8529)
kurkle Feb 26, 2021
bd303f4
Update wording in docs about merging options (#8533)
LeeLenaleee Feb 26, 2021
3460ef1
Types: Add couple of tests, move utils to new file (#8526)
kurkle Feb 26, 2021
9741942
rename tooltip.custom property to tooltip.external (#8523)
LeeLenaleee Feb 27, 2021
f23807f
Bump version to beta.12 (#8532)
kurkle Feb 27, 2021
d08eb14
Clarify interaction docs to indicate they apply to all interactions (…
etimberg Feb 28, 2021
c040b82
Options need to include dataset level defaults from main chart type (…
etimberg Feb 28, 2021
9043325
Provide auto-registering entry point (#8429)
kurkle Feb 28, 2021
b795151
Remove the constantly failing test (#8538)
kurkle Feb 28, 2021
c5dcf5a
Update chart extension docs + add samples (#8540)
etimberg Feb 28, 2021
86b1892
Resolve to false only when _fallback is used (#8542)
kurkle Feb 28, 2021
ae95a82
Fix function support on _fallback (#8545)
kurkle Mar 1, 2021
bc6ef46
Fixes sample in the doc about missing animations configuration (#8549)
stockiNail Mar 1, 2021
e2a50b9
Remove empty dependencies block from package.json (#8550)
benmccann Mar 1, 2021
3214005
Fix normalize when null values at edge of dataset (#8547)
benmccann Mar 1, 2021
cc8e513
Add test for normalized option (#8552)
benmccann Mar 1, 2021
78d3d30
Add _allKeys descriptor for Object.keys behavior (#8553)
kurkle Mar 1, 2021
33ff1fe
update defaults in tooltip (#8554)
LeeLenaleee Mar 2, 2021
d9a2f84
Types: Update LayotPosition (#8555)
kurkle Mar 2, 2021
413b04f
Types: Update ScriptableContext (#8556)
kurkle Mar 2, 2021
118cff7
Remove distribution option from fixtures (#8559)
kurkle Mar 2, 2021
08b76b0
Time: limit offset to sane values, gen >= 2 ticks (#8560)
kurkle Mar 2, 2021
3e551d5
Use karma-spec-reporter and suppress passed (#8564)
kurkle Mar 4, 2021
91628c1
Tooltip specific scriptable context (#8561)
etimberg Mar 4, 2021
24b1419
Linear: Skip ticks that would overlap with min/max (#8569)
kurkle Mar 5, 2021
bc8385e
Fix layout refit logic (#8567)
kurkle Mar 5, 2021
e3cdd73
Move niceNum to helpers.math, cleanup IE fallbacks (#8570)
kurkle Mar 5, 2021
a23f1de
Rename scaleLabel to title in scale options (#8576)
etimberg Mar 6, 2021
279b6ae
Enable multi-line axis titles (#8579)
etimberg Mar 6, 2021
8d6e878
Relocate chart type and dataset type defaults (#8563)
kurkle Mar 6, 2021
1e6a3fb
Bump to 3.0.0-beta.13 (#8580)
etimberg Mar 6, 2021
7ccf9e2
Add `grace` option for linear scale (#8581)
kurkle Mar 6, 2021
160534f
Add `'single'` mode for stacking (#8586)
kurkle Mar 7, 2021
5a48604
Update legend.md (#8582)
LeeLenaleee Mar 7, 2021
275fdaf
Expose radial scale point label positions (#8588)
etimberg Mar 7, 2021
7ec99c3
Move startAngle to scale options (#8593)
kurkle Mar 8, 2021
b005143
scale.category: options.min/max can be index (#8594)
kurkle Mar 9, 2021
9a04267
Update scriptable tooltip context docs (#8599)
etimberg Mar 9, 2021
f7ebedc
Scale: refactor drawTitle, add tests (#8598)
kurkle Mar 9, 2021
c27c27a
Fix typo in auto package (#8601)
kurkle Mar 9, 2021
4c3e992
RadialLinear: add padding option for point labels (#8604)
kurkle Mar 10, 2021
7dce94e
Fix typo in linear.mdx (#8605)
eltociear Mar 10, 2021
0c83843
Disable warning of unused variables in types/tests (#8607)
kurkle Mar 10, 2021
d48a62a
Add backgroundColor for scales (#8606)
kurkle Mar 10, 2021
a423148
helpers.curve cleanup (#8608)
kurkle Mar 10, 2021
e513a90
Fix typo in animations.mdx (#8615)
eltociear Mar 11, 2021
1e296cc
Clear stacks when data is replaced (#8617)
kurkle Mar 11, 2021
7c8ee6e
Add rollup-plugin-size and shave couple of bytes (#8618)
kurkle Mar 11, 2021
bedc3f1
Fix autoSkip (#8619)
kurkle Mar 11, 2021
b98974f
Fix some animation issues (#8616)
kurkle Mar 11, 2021
ec5fb6b
Update v3-migration.md (#8622)
LeeLenaleee Mar 13, 2021
49b902a
Remove rollup-plugin-size (vulnerability) (#8624)
kurkle Mar 13, 2021
aee979d
Types: fix bubble chart options (#8625)
kurkle Mar 13, 2021
aae8a06
Update context documentation (#8626)
kurkle Mar 13, 2021
9799dbd
Scale: autoSkip before fit (#8627)
kurkle Mar 13, 2021
6ac89cb
Rename scale `gridLines` options to be clearer (#8628)
etimberg Mar 13, 2021
a026b60
Change default autoSkipPadding to 3 (#8629)
kurkle Mar 13, 2021
32fd5af
Radial: min 1/2 of the max radius as chartArea (#8630)
kurkle Mar 13, 2021
2bff4c1
Resize: width > 0, height = 0. Use aspectRatio 2 (#8632)
kurkle Mar 13, 2021
96f6b42
Use font lineHeight for tooltip alignment (#8631)
etimberg Mar 13, 2021
d84db2c
Radial scale point label backdrop color (#8633)
etimberg Mar 13, 2021
1a2cc27
Add documentation on how plugin hooks interact with the chart (#8634)
etimberg Mar 14, 2021
c4cf7b2
Document the different parts of cartesian and radial scales with exam…
etimberg Mar 14, 2021
51b2345
Loosen the max-statements lint rule for tests (#8638)
kurkle Mar 14, 2021
347353a
Add og:image (#8635)
38elements Mar 14, 2021
f744c3b
Add x/y shorthand for padding options (#8637)
kurkle Mar 14, 2021
85123ac
Add option to turn off grouping of bar datasets (#8641)
kurkle Mar 14, 2021
4d173c6
Allow tooltip callback override in dataset (#8640)
kurkle Mar 14, 2021
1f6d0a2
Linear Scale: Ability to specify a fixed number of ticks (#8643)
etimberg Mar 15, 2021
a6b3b99
Fix tooltip positioning issues (#8646)
kurkle Mar 16, 2021
99596b0
Reduce duplication in drawGrid (#8647)
kurkle Mar 16, 2021
0a579b6
Add alignToPixles option for scales (#8649)
kurkle Mar 16, 2021
420aa02
Exclude base-line from bar size (#8648)
kurkle Mar 16, 2021
79cc6d3
Use maxOverflow as minimum layout padding (#8650)
kurkle Mar 16, 2021
34a9991
Update deps (#8654)
kurkle Mar 16, 2021
b6bb248
Bump version to v3.0.0-beta.14 (#8653)
kurkle Mar 16, 2021
cc7a3fd
Update stacked option's typing (#8656)
coyotte508 Mar 17, 2021
416062b
Update tick positioning (#8657)
kurkle Mar 17, 2021
da50c97
Changes defaults in documentation, applied by PR 8657 (#8660)
stockiNail Mar 18, 2021
282c858
Re-enable oversized boxes (#8662)
kurkle Mar 18, 2021
f10b510
Fix tooltip padding (#8666)
kurkle Mar 18, 2021
97136d0
Add textAlign for legend labels (#8665)
kurkle Mar 18, 2021
851861e
Fix category scale invalid data handling (#8668)
kurkle Mar 18, 2021
4ef04a8
Allow changing the aspect ratio (#8659)
etimberg Mar 18, 2021
0b4eef5
Bumpo version to 3.0.0-rc (#8670)
kurkle Mar 18, 2021
180f1b9
Docs/licence year update (#8671)
LeeLenaleee Mar 19, 2021
9a0a509
Update external tooltip docs (#8674)
kurkle Mar 19, 2021
81342d6
Fix _isPointInArea for undefined point (#8678)
kurkle Mar 19, 2021
375d856
Expose `formatNumber` as a helper (#8683)
etimberg Mar 21, 2021
537064b
Modify Scale typing (#8681)
kurkle Mar 21, 2021
7e8e7f0
Generalize toTRBL and toTRBLCorners (#8686)
kurkle Mar 21, 2021
57301bb
Bump to v3.0.0-rc.2 (#8687)
etimberg Mar 21, 2021
992cdec
Make sure all helpers are exported (#8688)
kurkle Mar 21, 2021
d79b5a3
Add typings for throttled and debounce (#8689)
kurkle Mar 21, 2021
1460477
Add rollup-plugin-analyzer (#8690)
kurkle Mar 21, 2021
bd9bc69
Move autoSkip related functions to separate file (#8691)
kurkle Mar 21, 2021
9499a1e
Move scale defaults to separate file (#8692)
kurkle Mar 21, 2021
e51a401
Category: parse to valid index values only (#8697)
kurkle Mar 22, 2021
2fc98dd
Allow `fill: true` and `null` in `ChartDataset.data` (#8700)
etimberg Mar 22, 2021
8ed6898
Update api.md (#8701)
LeeLenaleee Mar 23, 2021
74f2f85
Line: update all points when scale range changes (#8703)
kurkle Mar 23, 2021
4cd26fa
Bump version to rc.3 (#8706)
kurkle Mar 23, 2021
bbf298f
formatters.numeric: verify ticks length (#8705)
kurkle Mar 23, 2021
4d69a85
fix: Scales correctly respect the locale setting when generating labe…
etimberg Mar 24, 2021
39140cc
Remove the comparrison doc page (#8709)
LeeLenaleee Mar 24, 2021
9583edd
LayoutItem.update should return void (#8714)
etimberg Mar 24, 2021
7fff21b
Add defaults.describe/defaults.override typings (#8716)
kurkle Mar 24, 2021
9293dda
Minor type fixes (#8719)
joshkel Mar 25, 2021
3671c01
Distribute types as is (#8720)
joshkel Mar 25, 2021
499a71d
Make type-tests strict (#8717)
kurkle Mar 25, 2021
658749f
Bump version to 3.0.0-rc.4 (#8721)
kurkle Mar 25, 2021
04d67aa
Point to correct type file & bump (#8724)
etimberg Mar 25, 2021
cf39221
Update v3-migration.md (#8725)
LeeLenaleee Mar 26, 2021
21aaa35
Update helper types location (#8729)
LeeLenaleee Mar 26, 2021
54c5b7a
Add a convenience alias for scale options (#8732)
joshkel Mar 26, 2021
671d6e0
Document install/start/stop plugin hooks (#8733)
etimberg Mar 26, 2021
37080c9
Add comments for finding registry hook calls (#8734)
kurkle Mar 26, 2021
396cbcb
Bubble: Fix maxOverflow before elements update (#8736)
kurkle Mar 26, 2021
b2c7baf
Avoid recursive event replay loops (#8738)
kurkle Mar 27, 2021
0b21578
Improved alignment of pixels in scales at low widths (#8739)
etimberg Mar 27, 2021
64593ed
Time: Fix offset with low data counts (#8740)
kurkle Mar 27, 2021
d6972ab
Add note about inline plugins and registration (#8741)
kurkle Mar 27, 2021
c76ee82
Bump version to 3.0.0-rc.6 (#8742)
kurkle Mar 27, 2021
fe406bf
Legend: Ignore replayed events (#8749)
kurkle Mar 28, 2021
cdba66c
Scale: draw offset grid for labels before autoSkip (#8748)
kurkle Mar 29, 2021
8fc9442
Initial work
etimberg Mar 24, 2021
ad2bf77
Update doc commands
etimberg Mar 28, 2021
15decb3
Updated sidebar config
etimberg Mar 28, 2021
fdcc51a
Move docs
etimberg Mar 28, 2021
ee62f29
Update theme version and enable
etimberg Mar 28, 2021
8d20b27
Convert to chart.js sample
etimberg Mar 28, 2021
f39777e
Update scripts to point to local build
etimberg Mar 28, 2021
d259238
Chart.js from local build
etimberg Mar 28, 2021
8207879
Simplify getting-started example
etimberg Mar 28, 2021
7b56e4c
Axis docs updated except for imported content
etimberg Mar 28, 2021
9423895
Common ticks import works
etimberg Mar 28, 2021
5d9ba61
Chart type docs ported to editor plugin
etimberg Mar 28, 2021
48053e6
Last pages to use editor
etimberg Mar 28, 2021
3bd2ffc
Fix small errors
kurkle Mar 29, 2021
b8b6ece
Frontmatter title to heading
kurkle Mar 29, 2021
b059e69
Remove duplicate example
kurkle Mar 29, 2021
cb9e263
Update sidebar
kurkle Mar 29, 2021
0f01aa1
Add paths
kurkle Mar 29, 2021
d97888a
Remove paths
kurkle Mar 29, 2021
6343dbb
Add getting-started back
etimberg Mar 29, 2021
8292d70
Update menus and add copyright to license section of the docs
etimberg Mar 29, 2021
ae79a6c
Add GA plugin
etimberg Mar 29, 2021
1040bc9
Style sub-groups
kurkle Mar 29, 2021
bba545d
Remove unneeded license page since it is covered on the main page
etimberg Mar 29, 2021
0500f35
Remove docusaurus readme page
etimberg Mar 29, 2021
f069856
Remove docusaurus files
etimberg Mar 29, 2021
c275e3f
Fix issues in docs
etimberg Mar 29, 2021
bfaa962
Build and deploy scripts for docs work
etimberg Mar 29, 2021
afda155
Conditional base URL for nice local testing
etimberg Mar 29, 2021
276f4c3
Use eslint-plugin-markdown
kurkle Mar 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ plugins:
- javascript
fixme:
enabled: true
checks:
method-complexity:
config:
threshold: 6
exclude_patterns:
- "dist/"
- "docs/"
Expand Down
18 changes: 5 additions & 13 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@
root = true

[*]
indent_style = tab
indent_size = 4
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2

[*.mdx]
indent_style = space
indent_size = 2
[*.html]
indent_style = tab
indent_size = 4
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extends:
- chartjs
- plugin:es/no-2019
- plugin:es/no-new-in-es2019
- plugin:markdown/recommended

env:
es6: true
Expand Down
40 changes: 38 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
build:
runs-on: ${{ matrix.os }}

outputs:
coveralls: ${{ steps.changes.outputs.src }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -23,9 +26,36 @@ jobs:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Build and Test
with:
node-version: '14'
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
docs:
- 'docs/**'
- 'package.json'
- 'tsconfig.json'
src:
- 'src/**'
- 'package.json'
test:
- 'test/**'
- 'karma.conf.js'
- 'package.json'
types:
- 'types/**'
- 'package.json'
- 'tsconfig.json'
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Test
if: |
steps.changes.outputs.src == 'true' ||
steps.changes.outputs.test == 'true'
run: |
npm ci
npm run build
if [ "${{ runner.os }}" == "Windows" ]; then
npm test
Expand All @@ -35,19 +65,24 @@ jobs:
xvfb-run --auto-servernum npm test
fi
shell: bash
- name: Lint
run: npm run lint
- name: Package
if: steps.changes.outputs.docs == 'true'
run: |
npm run docs
npm run typedoc
npm pack
- name: Coveralls Parallel - Chrome
if: steps.changes.outputs.src == 'true'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/chrome/lcov.info'
flag-name: ${{ matrix.os }}-chrome
parallel: true
- name: Coveralls Parallel - Firefox
if: steps.changes.outputs.src == 'true'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
Expand All @@ -61,6 +96,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
if: needs.build.outputs.coveralls == 'true'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Chart.js Contributors
Copyright (c) 2014-2021 Chart.js Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
4 changes: 3 additions & 1 deletion MAINTAINING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Maintaining

## Release Process

Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [releases](https://github.com/chartjs/Chart.js/releases).

### Releasing a New Version
Expand All @@ -11,7 +13,7 @@ Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [
Creation of this tag triggers a new build:

* `Chart.js.zip` package is generated, containing dist files and examples
* `dist/*.js` and `Chart.js.zip` are attached to the GitHub release (downloads)
* `dist/*.js`, `types/*.ts`, and `Chart.js.zip` are attached to the GitHub release (downloads)
* A new npm package is published on [npmjs](https://www.npmjs.com/package/chart.js)

Finally, [cdnjs](https://cdnjs.com/libraries/Chart.js) is automatically updated from the npm release.
Expand Down
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@

## Documentation

- [Introduction](https://www.chartjs.org/docs/latest/)
- [Getting Started](https://www.chartjs.org/docs/latest/getting-started/)
- [General](https://www.chartjs.org/docs/latest/general/)
- [Configuration](https://www.chartjs.org/docs/latest/configuration/)
- [Charts](https://www.chartjs.org/docs/latest/charts/)
- [Axes](https://www.chartjs.org/docs/latest/axes/)
- [Developers](https://www.chartjs.org/docs/latest/developers/)
- [Popular Extensions](https://github.com/chartjs/awesome)
- [Samples](https://www.chartjs.org/samples/)
Currently, there are two versions of the library (2.9.4 and 3.x.x). Version 2 is the latest stable version while 3 is the next (currently beta) version. As such bear the following in mind:

* Current docs points to version 2.9.4
* Npm/CDN/etc point to version 2.9.4 (unless you explicitly set newer version, e.g. npm next)
* Source currently points to 3.x.x version. 2.9.4 source is available [here](https://github.com/chartjs/Chart.js/tree/2.9)
* Docs for version 3.x.x are available [here](https://www.chartjs.org/docs/master/)

* [Introduction](https://www.chartjs.org/docs/latest/)
* [Getting Started](https://www.chartjs.org/docs/latest/getting-started/)
* [General](https://www.chartjs.org/docs/latest/general/)
* [Configuration](https://www.chartjs.org/docs/latest/configuration/)
* [Charts](https://www.chartjs.org/docs/latest/charts/)
* [Axes](https://www.chartjs.org/docs/latest/axes/)
* [Developers](https://www.chartjs.org/docs/latest/developers/)
* [Popular Extensions](https://github.com/chartjs/awesome)
* [Samples](https://www.chartjs.org/samples/)

## Contributing

Expand Down
4 changes: 4 additions & 0 deletions auto/auto.esm.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Chart } from '../dist/chart.esm';

export * from '../dist/chart.esm';
export default Chart;
5 changes: 5 additions & 0 deletions auto/auto.esm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {Chart, registerables} from '../dist/chart.esm';

Chart.register(...registerables);

export default Chart;
1 change: 1 addition & 0 deletions auto/auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/chart');
8 changes: 8 additions & 0 deletions auto/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "chart.js-auto",
"private": true,
"description": "auto registering package",
"main": "auto.js",
"module": "auto.esm.js",
"types": "auto.esm.d.ts"
}
163 changes: 163 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
const path = require('path');
const docsVersion = "VERSION";
const base = process.env.NODE_ENV === "development" ? '' : `/docs/${docsVersion}/`;

module.exports = {
title: 'Chart.js',
description: 'Open source HTML5 Charts for your website',
theme: 'chartjs',
base,
dest: path.resolve(__dirname, '../../dist/docs'),
head: [
['link', {rel: 'icon', href: '/favicon.ico'}],
],
plugins: [
'tabs',
[
'@vuepress/google-analytics',
{
'ga': 'UA-28909194-3'
}
],
],
chainWebpack(config) {
config.merge({
resolve: {
alias: {
'chart.js': path.resolve(__dirname, '../../dist/chart.esm.js'),
}
}
})
},
markdown: {
extendMarkdown: md => {
md.use(require('markdown-it-include'), path.resolve(__dirname, '../'));
}
},
themeConfig: {
repo: 'chartjs/Chart.js',
logo: '/favicon.ico',
lastUpdated: 'Last Updated',
searchPlaceholder: 'Search...',
editLinks: false,
docsDir: 'docs',
chart: {
imports: [
['scripts/register.js'],
['scripts/utils.js', 'Utils'],
]
},
nav: [
{text: 'Home', link: '/'},
// TODO: Make local when samples moved to vuepress
{text: 'Samples', link: `https://www.chartjs.org/samples/${docsVersion}/`},
{
text: 'Ecosystem',
ariaLabel: 'Community Menu',
items: [
{ text: 'Awesome', link: 'https://github.com/chartjs/awesome' },
{ text: 'Slack', link: 'https://chartjs-slack.herokuapp.com/' },
{ text: 'Stack Overflow', link: 'https://stackoverflow.com/questions/tagged/chart.js' }
]
}
],
sidebar: {
'/': [
'',
{
title: 'Getting Started',
children: [
'getting-started/',
'getting-started/installation',
'getting-started/integration',
'getting-started/usage',
'getting-started/v3-migration'
]
},
{
title: 'General',
children: [
'general/data-structures',
'general/accessibility',
'general/options',
'general/colors',
'general/fonts',
'general/padding',
'general/performance'
]
},
{
title: 'Configuration',
children: [
'configuration/',
'configuration/responsive',
'configuration/device-pixel-ratio',
'configuration/locale',
'configuration/interactions',
'configuration/canvas-background',
'configuration/animations',
'configuration/layout',
'configuration/legend',
'configuration/title',
'configuration/tooltip',
'configuration/elements',
'configuration/decimation'
]
},
{
title: 'Chart Types',
children: [
'charts/line',
'charts/bar',
'charts/radar',
'charts/doughnut',
'charts/polar',
'charts/bubble',
'charts/scatter',
'charts/area',
'charts/mixed'
]
},
{
title: 'Axes',
children: [
'axes/',
{
title: 'Cartesian',
children: [
'axes/cartesian/',
'axes/cartesian/category',
'axes/cartesian/linear',
'axes/cartesian/logarithmic',
'axes/cartesian/time',
'axes/cartesian/timeseries'
],
},
{
title: 'Radial',
children: [
'axes/radial/linear'
],
},
'axes/labelling',
'axes/styling'
]
},
{
title: 'Developers',
children: [
'developers/',
'developers/api',
[`https://chartjs.org/docs/${docsVersion}/typedoc/`, 'TypeDoc'],
'developers/updates',
'developers/plugins',
'developers/charts',
'developers/axes',
'developers/contributing',
'developers/publishing'
]
},
],
}
}
};
File renamed without changes.
Binary file added docs/.vuepress/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading