dependabot[bot]
ffa24628b5
Bump terser from 4.8.0 to 4.8.1 ( #10493 )
...
Bumps [terser](https://github.com/terser/terser ) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases )
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/terser/terser/commits )
---
updated-dependencies:
- dependency-name: terser
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 12:51:10 -04:00
Dominic Jean
5452502b8c
Add pointStyleWidth option for legend ( #10412 )
...
* add pointStyleWidth for legend
* add drawPointLegend to keep drawPoint signature
2022-07-18 06:49:08 -04:00
Igor Lukanin
1ccafe7d8f
Add a stale version warning + a link to the latest version of docs ( #10446 )
...
* Add a stale version warning + a link to the latest version of docs
* Update docs/.vuepress/config.js
Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com >
* Shorten the warning
* Revert master title
* Revert master title
Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com >
2022-07-18 06:48:41 -04:00
dependabot[bot]
59a2d53178
Bump moment from 2.29.2 to 2.29.4 ( #10471 )
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases )
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4 )
---
updated-dependencies:
- dependency-name: moment
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 07:53:32 -04:00
Jacco van den Berg
3fe5811648
Lint before build & test, remove lint from test ( #10462 )
...
* Lint before build & test, remove lint from test
* should reconize test now
* test skip build in test step
* readd build step
2022-07-07 07:15:54 -04:00
Andrew Lyndem
cf6e1d2354
Update integration.md ( #10470 )
...
Fixed grammatical error on line 93
2022-07-07 07:15:09 -04:00
Jacco van den Berg
7432b609c4
Add dependencie updates under the development part in release drafter ( #10445 )
2022-06-29 10:41:13 -04:00
Jukka Kurkela
7a13906114
Fix options update when changing to shared opts ( #10451 )
2022-06-29 16:44:51 +03:00
Igor Lukanin
88f9665954
Enforce maximum width on chart editor blocks in the docs ( #10447 )
...
* Enforce max width on chart editor blocks
* Shrink the chart view rather than the whole chart editor
2022-06-29 16:38:00 +03:00
Jukka Kurkela
e3b2b52790
Fix crash with skipNull and uneven datasets ( #10454 )
2022-06-29 07:46:48 -04:00
Jukka Kurkela
58e736a0b9
Update aspectRatio documentation ( #10456 )
2022-06-29 07:46:00 -04:00
Jacco van den Berg
0312697f38
Add index to legendItem interface ( #10436 )
...
* Add index to legendItem interface for doughnut, pie and polarArea charts. Make datasetIndex optional since the before named charts dont include it.
* Remove test to check if datasetIndex has been set in generateLabels function for legend
2022-06-22 09:22:53 -04:00
Brian Ball
8ee0c5c9b4
Update responsive.md ( #10415 )
...
* Update responsive.md
* Update docs/configuration/responsive.md
Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com >
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
Co-authored-by: Jacco van den Berg <jaccoberg2281@gmail.com >
2022-06-22 15:22:31 +02:00
Jacco van den Berg
954ed953a5
Respect fill: false with custom draw times ( #10414 )
...
* Resolve canvasgradient is not defined in node
* Remove trailing white space
* export isPaternOrGradient helper with typings
* fix lint failure, single qoute
* Respect `fill: false` with custom draw times
* correctly listen to fill property
* remove console log and lint errors
* implement feedback, still update control points
2022-06-22 07:41:18 -04:00
Jacco van den Berg
3c3d53be5e
clarify helpers need to be imported when using bundlers ( #10434 )
2022-06-22 08:09:02 +02:00
dependabot[bot]
68379db1ea
Bump actions/setup-node from 2 to 3 ( #10431 )
...
* Bump actions/setup-node from 2 to 3
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update .github/workflows/ci.yml
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
* Apply suggestions from code review
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
* Update .github/workflows/deploy-docs.yml
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evert Timberg <evert.timberg@gmail.com >
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com >
2022-06-21 07:13:18 +03:00
dependabot[bot]
4037c1c2ed
Bump actions/checkout from 2 to 3 ( #10430 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 07:54:06 -04:00
Naveen
b19b3d7c3d
chore: Included githubactions in the dependabot config ( #10423 )
...
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.
Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot
GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com >
2022-06-20 07:13:52 +03:00
Naveen
0616868959
chore: Set permissions for GitHub actions ( #10399 )
...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ )
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com >
2022-06-13 10:25:56 -04:00
Hossein Pourbahrami
b52507b5c7
Typo fix ( #10410 )
2022-06-08 07:51:17 -04:00
Jacco van den Berg
f796c7b475
Add padding to pointLabels type, add type to scriptable context ( #10404 )
...
* Add padding to pointLabelTypings and add type field to context
* Use correct scriptable helper
* Remove trailing space
2022-06-07 15:59:41 +03:00
stockiNail
a0609d77ff
Fix default value of 'includeInvisible' option in the documentation ( #10400 )
2022-06-06 10:04:33 -04:00
dependabot[bot]
8dd8760f1b
Bump eventsource from 1.1.0 to 1.1.1 ( #10393 )
...
Bumps [eventsource](https://github.com/EventSource/eventsource ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases )
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md )
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: eventsource
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 07:04:48 +03:00
Jacco van den Berg
7b01d33fed
clarify api docs ( #10392 )
2022-06-01 14:38:39 -04:00
Jacco van den Berg
2486fe2b1e
Allow for each dataset to be individually typed without a main type ( #10387 )
...
* allow for each dataset to be individually typed without a main type
* fix lint issues
* add extra test cases
2022-05-31 14:01:39 -04:00
Jacco van den Berg
1a1151b122
Bump to 3.8.0 ( #10377 )
v3.8.0
2022-05-25 10:06:57 -04:00
Jacco van den Berg
5173d05978
Types: Allow font to be partial scriptable and individually scriptable ( #10364 )
...
* allow font scriptable to return partial object and be scriptable
* add other elements as scriptable
* rename variable for context to resolve lint issue
* add duplicate font for non scriptable
* change to scriptableOptions
* fix parameter
* missing space
* Change name of helper function to match other helper function
2022-05-25 07:49:12 -04:00
Yiwen Wang
ebcaff15c2
Add option to include invisible points ( #10362 )
...
* Add option to include invisible points
* Minor fixes
* Add doc for newly added option
* Fix typo
* Add test for newly added option
* Improve description of the new option
* Update docs/configuration/interactions.md
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com >
Co-authored-by: Yiwen Wang 🌊 <yiwwan@microsoft.com >
Co-authored-by: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com >
2022-05-25 13:25:27 +03:00
Evert Timberg
cf780a5db5
Update to v0.2.1 color dependency to fix bug with invalid colours ( #10371 )
...
* Update to v0.2.0 color dependency to fix bug with invalid colours
* v0.2.1
2022-05-23 12:51:17 -04:00
Evert Timberg
3c0a71a3fc
Coveralls no longer runs on Windows CI ( #10367 )
2022-05-22 13:15:34 -04:00
Jacco van den Berg
1422c93dc0
Update scale polarArea correctly on data hide ( #10340 )
...
* give correct range back for polarArea
* added test
* tab to spaces
2022-05-22 09:50:32 -04:00
linkviii
4183b7f04a
Add links to docs in all the samples ( #10308 )
2022-05-21 11:02:13 -04:00
Kyle J
4eb65c014a
Correct auto.esm.js import to allow use directly from the browser
2022-05-11 10:52:29 -04:00
Jacco van den Berg
8ac3cc2191
Remove test job from windows runner ( #10345 )
...
* Remove test stop from windows runner
* consistent formatting
2022-05-08 20:19:41 +03:00
t-mangoe
d573dfb63e
display tooltips only at points in chart area ( #10289 )
...
* show only points in chart area
* use the _isPointInArea helper function
2022-05-07 10:43:47 -04:00
Jacco van den Berg
2c268f0943
Resolve canvasGradient is undefined in node ( #10328 )
...
* Resolve canvasgradient is not defined in node
* Remove trailing white space
* export isPaternOrGradient helper with typings
* fix lint failure, single qoute
* Allow for string inputs too to function
2022-05-03 08:21:43 -04:00
luke-heberling
a9765042f1
Use abs() when comparing for spanGaps ( #10316 )
...
* Use abs() when comparing for spanGaps
* tests for spanGaps w/ integer (boolean already covered)
* remove redundant default config from spanGaps tests
2022-05-01 14:28:41 -04:00
dependabot[bot]
d8d69f5875
Bump async from 2.6.3 to 2.6.4 ( #10320 )
...
Bumps [async](https://github.com/caolan/async ) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 16:57:17 -04:00
dependabot[bot]
38f4632732
Bump moment from 2.29.1 to 2.29.2 ( #10290 )
...
Bumps [moment](https://github.com/moment/moment ) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases )
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2 )
---
updated-dependencies:
- dependency-name: moment
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 23:23:51 +03:00
Evert Timberg
54dcd6a6d3
Trigger legend onLeave when the mouse leaves the canvas ( #10301 )
2022-04-15 19:36:42 -04:00
Evert Timberg
5c3dc932b6
Enable configuration of radial scale point label border radius ( #10293 )
2022-04-15 18:31:09 -04:00
Jukka Kurkela
4b5ca7f24e
Types: add 'middle' to borderSkipped ( #10283 )
2022-04-05 18:52:45 +03:00
Evert Timberg
a39f694184
Allow time scale to offset using skipped ticks ( #10278 )
2022-04-03 16:05:43 -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
Evert Timberg
09128947d5
Export types for cartesian and radial tick options ( #10275 )
2022-04-03 16:40:31 +03:00
Akira Aso
16f6b8cb41
Fix a typo in data-structures.md ( #10259 )
...
Change `The provides labels can be` to `The provided labels can be`.
Co-authored-by: Akira Aso <44665462+akiorange@users.noreply.github.com >
2022-03-31 08:08:21 -04:00
Jacco van den Berg
1c1368bead
add startangle to radial scale opts ( #10269 )
2022-03-31 08:08:13 -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
dependabot[bot]
3b9042005b
Bump minimist from 1.2.5 to 1.2.6 ( #10260 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 14:54:05 +03:00
Josh Kelley
c057c96693
Interaction functions ( #10046 )
...
* Refactor get...Items functions to take events rather than positions
To work toward exposing something like the get...Items functions.
* Switch getAxisItems to use optimizedEvaluateItems
optimizedEvaluateItems falls back to evaluating all items for unsorted items, and sorting / optimizing ought to be okay, so this ought to be equivalent.
* Performance
* Consolidate getRelativePosition
helpers.dom.js's getRelativePosition already had logic to handle ChartEvent vs. Event (as demonstrated by the `native` check within `getCanvasPosition`), so it's redundant for core.interaction.js to have its own `native` check.
Update `getRelativePosition` to use the same `native` check as core.interaction.js's version. As best as I can tell, the ChartEvent's x and y are populated from `getRelativePosition`, so the previous `getCanvasPosition` was effectively just duplicating `getRelativePosition'`s work. I added a test to verify this; it depends on a local, not-yet-submitted change in chartjs-test-utils' `triggerMouseEvent` to return the mouse event that it triggers.
* Add an API to refactor duplicate isPointInArea
* Rename and update JSDoc to prepare for making this public
* Give functions a consistent, generic interface
* Export functions for discussion
* Code review feedback
Add a non-null assertion, as requested in code review.
Add JSDoc to clarify that `getCanvasPosition` now expects a native `Event`, not a `ChartEvent`. Add `@ts-ignore`; `getCanvasPosition` relied on some loose conversions between `Event`, `TouchEvent`, and `Touch` that would require several changes to make TypeScript happy.
* Code review feedback
Return the event directly, to speed up the code a bit. Add JSDoc to help communicate its intent. Update various comments.
* Finalize exports; add docs and TypeScript
* Update src/helpers/helpers.dom.js
* Update src/helpers/helpers.dom.js
Only thing needed actually is the update of chartjs-test-utils to 0.4.0
* Bump chartjs-test-utils dependency
To get supporting work from https://github.com/chartjs/chartjs-test-utils/pull/19
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
2022-03-24 09:02:30 -04:00