Commit Graph

110 Commits

Author SHA1 Message Date
Jukka Kurkela
1d6b8cc047
Document components for bundle optimization (#10569)
* Update integration.md

* Update integration.md

* Fix typo

* Another typo

* Update docs/getting-started/integration.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Update docs/getting-started/integration.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* review update

* version

Co-authored-by: Rich Lott <artfulrobot@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2022-08-23 08:41:20 +03:00
Dan Onoshko
ce375a6876
feat: add ESM support (#10525)
* feat: add ESM support

* build: rename UMD bundle

* chore: edit supbackages description

* style: disable es/no-import-meta linter rule

* test: dynamic import in cjs module

* docs: edit integrations page

* docs: review fixes

* chore: remove useless regex in webpack config

* ci: test size-limit only for ESM bundle
2022-08-04 18:43:26 -04:00
Jacco van den Berg
beaf370cc5
Bug/Radial linear scale grid get correct options at index (#10010)
* get correct options for index

* update test

* add initial migration guide
2022-08-03 02:32:02 +02:00
Jacco van den Berg
eeba91e0de
make link work in github itself (#10497) 2022-07-20 12:51:50 -04:00
Andrew Lyndem
cf6e1d2354
Update integration.md (#10470)
Fixed grammatical error on line 93
2022-07-07 07:15:09 -04:00
Dimitri Papadopoulos Orfanos
a7d98fb1a0
Fix typos found by codespell (#10103) 2022-01-27 09:24:55 -05:00
Jukka Kurkela
4ac11a7208
Try to improve documentation for new users (#9952)
* Try to improve documentation for new users
* Review update
2021-12-05 12:42:52 -05: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
Yash Singh
c0d8dd9d05
Shorthand labels key in getting started (#9465)
* Shorthand labels key in getting started

* Change to longhand
2021-07-27 23:48:14 +03:00
Jacco van den Berg
655c635191
Add SubTitle to the list of all esm imports (#9384) 2021-07-10 08:09:33 -04:00
Jacco van den Berg
925fc71cc9
Clarify how to import and use the helper functions with bundlers (#9319) 2021-06-25 18:34:41 -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
Jacco van den Berg
b78b7c3534
Add explanation on how to run the samples locally (#9207)
* add explenation on how to run the samples locally

* Remove unecesarry parts from link
2021-06-02 22:47:16 +03:00
Jukka Kurkela
d5f4a82e74
Fix minor issues in docs (#8910) 2021-04-16 15:46:14 -04:00
Jacco van den Berg
768bd38822
Update v3-migration.md (#8904)
Update link to index axis of horizontal bar
2021-04-15 23:08:07 +03:00
Jukka Kurkela
f8885ce7a2
Font validate style, move defaults to weight (#8877) 2021-04-10 15:58:11 -04:00
Jacco van den Berg
6c7bf2299b
Docs migration register options (#8850)
* 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

* add link to all available import sample in the migration guide
2021-04-08 07:15:43 +03:00
Mohammad Ahmadi
873223fc78
Fix typo in migration guide (#8836) 2021-04-07 08:05:33 +03:00
mjcross
b4d118e6e9
complete the first 'getting-started' example (#8829)
This page is very likely the first example a new user sees, so we should make it clear how to actually use the config and setup show to actually render a chart.
2021-04-06 18:54:18 -04:00
Jukka Kurkela
49f8fab448
Links: Rename .mdx to .md (#8775) 2021-04-02 07:48:50 -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
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
Ben McCann
0407e99ab3
Clarify that API docs are generated by TypeDoc (#7274)
Clarifying to answer the question asked in https://github.com/chartjs/Chart.js/issues/6598#issuecomment-613879766
2020-04-27 16:24:46 -04:00
Ben McCann
14021d369a
Remove unused layouts.defaults (#7264)
* Remove unused layouts.defaults
* Add to migration guide
2020-04-11 08:46:33 -04:00
Mohamed Nainar
807aea1b2e
Remove bower (#7265) 2020-04-10 17:56:45 -04:00
Ben McCann
d560f9dbad
Fix overlapping ticks on log scale (#7242) 2020-04-03 18:12:34 -04:00
Ben McCann
40a11914f5
Improve migration guide for innerRadius/outerRadius (#7218) 2020-03-27 19:47:02 -04:00
Evert Timberg
e22f8bd7dc
Update Migration Guide (#7186)
* Add headers & split list  of removed developer properties
* Reorganize option changes & include scale option example
2020-03-11 14:39:11 -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
Jukka Kurkela
df3c73cc5e
Give the boot to chartjs-adapter-moment (#7155)
Remove default of using chartjs-adapter-moment
2020-02-27 19:40:31 -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
d801e56106
Update dependencies and alter privacy of functions (#7138)
* Update dependencies

* Fix privacy problems

* color lib & consistency

* Review update

* getLabelCapacity

* Review update
2020-02-22 08:35:16 -05:00
Jukka Kurkela
9ddda713e4
Rename steppedLine to stepped (#7127)
Rename steppedLine to stepped
2020-02-19 18:13:40 -05:00
Ben McCann
93f777821a
Remove version from docs. Use latest (#7128) 2020-02-19 14:19:46 -05:00
Ben McCann
028ee30505
Make margins private (#7123) 2020-02-19 14:15:48 -05:00
Jukka Kurkela
7b029aa780
Doughnut / PolarArea cleanup (#7113)
Doughnut / PolarArea cleanup
2020-02-17 18:45:30 -05:00
Jukka Kurkela
bfe34214ac
Use ResizeObserver and MutationObserver to detect detach/attach/resize (#7104)
* Use Resize/MutationObserver to detect detach/attach/resize
* Cleanup
* Review update
* Restore infinite resize detection (#6011)
2020-02-17 11:00:03 -05:00
Jukka Kurkela
7c1fb37c61
Babel @kurkle/color for IE support (#7099)
Babel @kurkle/color for IE support
2020-02-14 12:29:33 -05:00
Ben McCann
40b8254ca4
Cleanup private methods on Scales (#7082) 2020-02-11 19:18:13 -05:00
Ben McCann
2f17dbcd70
Prefix private controller methods with underscore (#7081)
Prefix private controller methods with underscore
2020-02-10 17:57:22 -05:00
Ben McCann
795c86e95b
Fix errors reported by TypeScript compiler (#7030) 2020-02-07 18:03:33 -05:00
Ben McCann
3b61a1f86e
Generate ticks when source is data (#7044)
Generate ticks when source is data
2020-02-03 19:22:09 -05:00
Ben McCann
f5d9892ad8
Improved formatting of numeric scale labels (#7007)
* Improved formatting of numeric scale labels

* Put locale on options

* Use scientific notation for big ticks

* Remove extra parameter
2020-02-03 07:36:30 -05:00
Ben McCann
2647dd0fbf
scale.linearbase cleanup (#7038) 2020-01-31 07:09:52 -05:00
Ben McCann
d449bbc83a
Remove unused helpers (#7039) 2020-01-30 19:23:40 -05:00
Ben McCann
c667a9ef85
Move text helpers and reduce scope of imports (#7028) 2020-01-30 19:19:53 -05:00
David Winegar
1ad5f369af Allow switching platforms (#6964)
Allow switching platforms

Move the Chart.platform to Chart.platform.current instead, and add
ways to see available platforms and set the current platform. This
is necessary for adding tests that use the "basic" platform.
2020-01-26 15:33:20 -05:00
Evert Timberg
5aaff3a1aa
Convert Tooltip to a plugin (#6990)
* Convert Tooltip to a plugin
* code review feedback
* Update docs. Convert positioners map to be on the plugin directly
2020-01-21 06:36:53 -05:00
Marc Silverman
b834517378 Proposed fix for issue #6830 (#6884)
* proposed fix for issue #6830 https://github.com/chartjs/Chart.js/issues/6830

* Updated to pass the full options object instead of a shadow borderwidth. Updated migration guide regarding the API signature change.

* Moved to use options.radius instead of caching radius; updated related migration docs.
2020-01-15 17:13:36 -05:00