Commit Graph

490 Commits

Author SHA1 Message Date
Ben McCann
f2b099b835 Initialize date adapter with chart options (#6016) 2019-02-21 08:11:32 +01:00
Akihiko Kusanagi
20c26455ba Add a link to chartjs-plugin-rough to extensions.md (#6081) 2019-02-20 16:13:41 +01:00
Ben McCann
1c01272c9a Improve autoSkip documentation (#6079) 2019-02-20 09:28:07 +01:00
Abel Heinsbroek
32aeeac82c Add crosshair plugin to extensions page (#6070) 2019-02-18 10:09:37 +01:00
Alfie Hopkin
af464f8a85 Enhance legend label color point when usePointStyle is true (#6006) 2019-02-10 19:04:29 +01:00
Akihiko Kusanagi
8b07cc2f28 Implement scriptable options for points in radar charts (#6041) 2019-02-09 23:07:54 +01:00
James Bedford
0ed652b39f Fix typo in radial linear scale docs (#6054) 2019-02-09 08:19:57 +01:00
Simon Brunel
55128f74c1 Move CSS in a separate file to be CSP-compliant (#6048)
In order to be compatible with any CSP, we need to prevent the automatic creation of the DOM 'style' element and offer our CSS as a separate file that can be manually loaded (`Chart.js` or `Chart.min.js`). Users can now opt-out the style injection using `Chart.platform.disableCSSInjection = true` (note that the style sheet is now injected on the first chart creation).

To prevent duplicating and maintaining the same CSS code at different places, move all these rules in `platform.dom.css` and write a minimal rollup plugin to inject that style as string in `platform.dom.js`. Additionally, this plugin extract the imported style in `./dist/Chart.js` and `./dist/Chart.min.js`.
2019-02-08 19:06:04 +01:00
Janelle deMent
7c11c81d96 Fix broken markdown link in 'line' docs (#6053) 2019-02-08 07:06:17 +01:00
Ben McCann
765c432dfa Fix duplicate anchor (#6038)
* Fix broken documentation anchors

* Revert changes to installation docs
2019-02-04 20:00:44 -05:00
Akihiko Kusanagi
80a159eb9d Enforce tooltip item label and value to be strings (#6030)
Also update the docs for `xLabel` and `yLabel` to also accept a `number`.
2019-02-01 09:21:53 +01:00
Jukka Kurkela
29f7fa23bb Replace tooltip item xLabel and yLabel with label and value (#5996) 2019-01-30 11:41:19 +01:00
Janelle deMent
fee44cfeef Omit inconsistent note about scriptable options (#6026) 2019-01-30 09:24:26 +01:00
Simon Brunel
e07c5d0c6c
Make moment optional from our UMD builds (#5978) 2019-01-29 17:54:22 +01:00
Akihiko Kusanagi
0d01bcf5cc Fix typos and make the docs consistent (#6020) 2019-01-29 13:34:16 +01:00
Ben McCann
740e0874a4 Update contributors guide and issue templates (#5962) 2019-01-16 09:35:14 +01:00
Evert Timberg
a655da076e Implement scriptable options for points in line charts (#5973) 2019-01-15 09:24:12 +01:00
Janelle deMent
352e53a0b6 Update the responsive docs about resizing the parent node (#5974)
Add a note about resizing the chart height with maintainAspectRatio
2019-01-13 21:20:25 +01:00
Evert Timberg
f3dd96779a Implement scriptable options for polar area charts (#5976) 2019-01-13 21:17:27 +01:00
Akihiko Kusanagi
9d1d2023d4 Fix labelOffset description (#5979) 2019-01-11 19:29:39 -05:00
Ben McCann
b50a1c21f2 Fix typo / grammar in the responsive docs (#5975) 2019-01-11 07:31:36 +01:00
Jukka Kurkela
20c748f90b Fix modifying ticks in afterBuildTicks (#5913) 2019-01-11 07:29:38 +01:00
Evert Timberg
e1ed26f315 Implement scriptable options for doughnut charts (#5966) 2019-01-10 16:00:36 +01:00
Alexander Wunschik
f342299845 Fix contribution docs about gulp-cli (#5968)
Update the docs so that only gulp-cli is installed globally
2019-01-09 08:10:58 +01:00
Akihiko Kusanagi
d29ec5a485 Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options (#5914) 2018-12-20 09:56:06 +01:00
Angus Comrie
7e429a8fc6 Add 'middle' interpolation to stepped plots (#5908) 2018-12-18 14:47:24 +01:00
Akihiko Kusanagi
db8f6c38dc Add support for 'inner' border for arc elements (#5841) 2018-12-18 13:58:02 +01:00
Dave Salomon
4fb259e3ac Add support for hiding axis when all linked datasets are hidden (#5885)
When `display: 'auto'`, the axis is visible only if at least one associated dataset is visible.
2018-12-18 09:33:03 +01:00
Simon Brunel
52b9793ba0 Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
当耐特
2388eeaf38 Add omi-chart to extensions.md (#5912) 2018-12-15 12:27:08 +01:00
Ben McCann
3a29b99e3b Use HTTPS in documentation links where possible (#5915) 2018-12-15 11:28:17 +01:00
Simon Brunel
2a97ec21c5
Migrate from Browserify to rollup (#5904)
Browserify isn't optimal bundling Chart.js because it adds too many internal wrappers, doesn't handle external/global dependencies and doesn't provide a way to generate ESM builds. Therefore, it seems the right choice to switch to rollup, so move all the build process in `rollup.config.js` and make Gulp to execute `rollup -c`.

We also had to switch to Terser instead of UglifyJS because this last one contains a breaking bug. Note that tests now use the exact same rollup config as our builds (the minified one) to ensure that the bundling and minification steps don't break anything. Finally, replace the `gulp watch` task by `gulp build --watch` to be consistent with the other `unittest` and `docs` watching syntax.
2018-12-14 20:20:43 +01:00
Akihiko Kusanagi
bfa635e55d Fix docs about bar chart indexable options (#5876) 2018-12-04 09:10:15 +01:00
jedrekdomanski
bbca2fc789 Enhance documentation for bar specific scale options (#5854) 2018-11-28 07:56:41 +01:00
Jukka Kurkela
f5437fe548 Fix nearest interaction mode to return all items (#5857)
Return all items that are at the nearest distance to the point and add unit tests for nearest + axis: 'x' and nearest + axis: 'y'
2018-11-27 16:26:41 +01:00
Akihiko Kusanagi
0351a88a63 Add support for gridLines/angleLines borderDash for polarArea/radar charts (#5850) 2018-11-26 08:57:31 +01:00
Thomas David Baker
ecf64d361d Correct spelling mistake. (#5831)
Use a simpler phrase for this heading.
2018-11-15 09:41:02 -05:00
Simon Brunel
ae80e14c51
Make bar styling options scriptable (#5780)
The bar `backgroundColor`, `borderColor`, `borderWidth` and `borderSkipped` options are now scriptable (unit tests, docs and a basic sample). Also fix the gulp task that generates the documentation on Windows.
2018-11-12 21:15:37 +01:00
Akihiko Kusanagi
9140ef7e67 Add a link to chartjs-plugin-colorschemes to extensions.md (#5813) 2018-11-05 18:56:29 +01:00
Bart Deslagmulder
f40abe9244 Consistent use of punctuation and quick review in docs (#5796) 2018-11-02 08:46:06 +01:00
Jordan Ephron
6bea6aba7b Document padding option for ticks configuration (#5795) 2018-11-01 16:28:11 +01:00
Alexandre Dubé
5816770e45 Introduce the 'minBarLength' bar option (#5741) 2018-10-18 22:28:56 +02:00
Daniel Correa
1ba06a26fd Add aspectRatio property to responsive doc (#5756) 2018-10-09 18:20:09 +02:00
Miguel Martínez Serrano
9293c30d4f Add scatter link in charts documentation (#5736) 2018-09-21 21:22:31 +02:00
Maxim Atanasov
2f9c663d01 Added Wicked-Charts to the Popular Extensions Page (#5734)
Wicked-Charts is a Java wrapper around Chart.js and allows users to create charts in Java using the Wicket framework. The latest version of Wicked-Charts (3.1.0) supports Chartjs and Wicket 8.
2018-09-21 21:21:34 +02:00
Wei-Wei Wu
bbd589d5ab Add "Accessibility" documentation page (#5719) 2018-09-11 09:12:28 +02:00
Wei-Wei Wu
1aa54b074b Add gulp watch task for docs (#5724)
gulp docs --watch
2018-09-09 20:42:18 +02:00
Sebastiaan Lokhorst
9a295816b3 Replace ES6 by Webpack in the integration docs (#5555) 2018-07-29 22:16:10 +02:00
Jung Oh
0963c8f76c Fix positioning in the custom tooltip example (#5454) 2018-07-14 10:06:02 +02:00
Akihiko Kusanagi
119a86f399 Update the descriptions of barThickness, offsetGridLines and offset (#5600) 2018-07-14 09:57:16 +02:00