]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
6 years agoMake decimalPlaces private and update CDN links (#6131) 6092/head
Jukka Kurkela [Wed, 13 Mar 2019 09:36:10 +0000 (11:36 +0200)] 
Make decimalPlaces private and update CDN links (#6131)

6 years agoBump version to 2.8.0
Simon Brunel [Tue, 12 Mar 2019 10:29:11 +0000 (11:29 +0100)] 
Bump version to 2.8.0

6 years agoKeep the previous extensions page link alive (#6127)
Simon Brunel [Tue, 12 Mar 2019 07:35:39 +0000 (08:35 +0100)] 
Keep the previous extensions page link alive (#6127)

Instead of a direct link, restore the extensions.md file which now redirects /notes/extensions.html to https://github.com/chartjs/awesome in case anyone bookmarked it / there were links to it.

6 years agoCorrect typo in a comment in test/index.js (#6122)
Roman Borovik [Mon, 11 Mar 2019 08:06:50 +0000 (11:06 +0300)] 
Correct typo in a comment in test/index.js  (#6122)

6 years agoFix missing Chart.Chart (deprecated) alias (#6112)
Simon Brunel [Wed, 6 Mar 2019 08:12:29 +0000 (09:12 +0100)] 
Fix missing Chart.Chart (deprecated) alias (#6112)

6 years agoTighten check for detecting if Moment is installed (#6113)
Jon Rimmer [Wed, 6 Mar 2019 08:11:24 +0000 (08:11 +0000)] 
Tighten check for detecting if Moment is installed (#6113)

6 years agoBump version to 2.8.0-rc.1
Simon Brunel [Mon, 4 Mar 2019 08:58:08 +0000 (09:58 +0100)] 
Bump version to 2.8.0-rc.1

6 years agoInclude generated CSS in the GitHub releases
Simon Brunel [Mon, 4 Mar 2019 08:57:08 +0000 (09:57 +0100)] 
Include generated CSS in the GitHub releases

6 years agoProperly initialize variables if ticks aren't being displayed (#6100)
Ben McCann [Mon, 4 Mar 2019 08:15:29 +0000 (00:15 -0800)] 
Properly initialize variables if ticks aren't being displayed (#6100)

6 years agoFix animation regression introduced by #5331 (#6108)
Jukka Kurkela [Mon, 4 Mar 2019 08:11:57 +0000 (10:11 +0200)] 
Fix animation regression introduced by #5331 (#6108)

6 years agoOptimize the npm package by removing useless files (#6105)
Simon Brunel [Sun, 3 Mar 2019 14:19:11 +0000 (15:19 +0100)] 
Optimize the npm package by removing useless files (#6105)

Explicitly target files that should be included in the npm package, making it 10x smaller by removing the docs, samples, scripts, sources, tests and other useless files.

6 years agoImprove financial sample tooltips and interactions (#6089)
Ben McCann [Sun, 3 Mar 2019 14:00:24 +0000 (06:00 -0800)] 
Improve financial sample tooltips and interactions (#6089)

6 years agoAdd a note about how to include an example against master (#6107)
Ben McCann [Sun, 3 Mar 2019 09:26:40 +0000 (01:26 -0800)] 
Add a note about how to include an example against master (#6107)

6 years agoFix document errors related to ticks (#6099)
Akihiko Kusanagi [Fri, 1 Mar 2019 23:03:20 +0000 (00:03 +0100)] 
Fix document errors related to ticks (#6099)

6 years agoRevamp the README.md and add link to the awesome list (#6096)
Simon Brunel [Fri, 1 Mar 2019 08:13:21 +0000 (09:13 +0100)] 
Revamp the README.md and add link to the awesome list (#6096)

Integrate the upcoming awesome list and make our README.md welcome page more user friendly by displaying the Chart.js logo, adding the docs TOC and removing instructions that was already in the docs.

6 years agoNew weight option for pie and doughnut charts (#5951)
Vincent-Ip [Wed, 27 Feb 2019 22:06:54 +0000 (17:06 -0500)] 
New weight option for pie and doughnut charts (#5951)

Add functionality to give pie & doughnut datasets a weight attribute, which affects the relative thickness of the dataset when there are multiple datasets in pie & doughnut charts. The default weight of each dataset is 1, providing any other numerical value will allow the pie or doughnut dataset to be drawn with a thickness relative to its default size.

For example a weight of 2 will allow the dataset to be drawn double its typical dataset thickness. Note that the weight attribute will only affect a pie or doughnut chart if there is more than one visible dataset. Using weight on a pie or doughnut dataset when there is only one dataset on the chart will have no affect.

6 years agoAdd instructions for image-based tests to the contributors guide (#6073)
Ben McCann [Mon, 25 Feb 2019 08:17:37 +0000 (00:17 -0800)] 
Add instructions for image-based tests to the contributors guide (#6073)

6 years agoAdd support for per side border width for rectangle (#6077)
Jukka Kurkela [Mon, 25 Feb 2019 08:03:12 +0000 (10:03 +0200)] 
Add support for per side border width for rectangle (#6077)

6 years agoAdd onLeave to legend config docs (#6088)
Jon Rimmer [Mon, 25 Feb 2019 07:59:48 +0000 (07:59 +0000)] 
Add onLeave to legend config docs (#6088)

6 years agoIgnore invalid log scale min and max (#6058)
Ben McCann [Sun, 24 Feb 2019 09:59:21 +0000 (01:59 -0800)] 
Ignore invalid log scale min and max (#6058)

6 years agoAdd onLeave callback to legend (#6059)
Jon Rimmer [Sun, 24 Feb 2019 09:58:22 +0000 (09:58 +0000)] 
Add onLeave callback to legend (#6059)

6 years agoInitialize date adapter with chart options (#6016)
Ben McCann [Thu, 21 Feb 2019 07:11:32 +0000 (23:11 -0800)] 
Initialize date adapter with chart options (#6016)

6 years agoAdd a link to chartjs-plugin-rough to extensions.md (#6081)
Akihiko Kusanagi [Wed, 20 Feb 2019 15:13:41 +0000 (23:13 +0800)] 
Add a link to chartjs-plugin-rough to extensions.md (#6081)

6 years agoImprove autoSkip documentation (#6079)
Ben McCann [Wed, 20 Feb 2019 08:28:07 +0000 (00:28 -0800)] 
Improve autoSkip documentation (#6079)

6 years agoUse `datetime` as default time scale tooltip format (#6019)
Ben McCann [Mon, 18 Feb 2019 18:45:38 +0000 (10:45 -0800)] 
Use `datetime` as default time scale tooltip format (#6019)

Remove the logic that computed an "optimal" tooltip format. Instead, always fallback to the `datetime` adapter format which is more efficient and stable. Additionally, remove the adapter `presets` API, which is not needed anymore.

6 years agoAdd crosshair plugin to extensions page (#6070)
Abel Heinsbroek [Mon, 18 Feb 2019 09:09:37 +0000 (10:09 +0100)] 
Add crosshair plugin to extensions page (#6070)

6 years agoAdd examples of scriptable charts (#6042)
Janelle deMent [Thu, 14 Feb 2019 02:12:52 +0000 (22:12 -0400)] 
Add examples of scriptable charts (#6042)

* Add example of scriptable pie chart
* Add example of scriptable line chart
* Add example of scriptable polar area chart
* Add example of  scriptable radar chart

6 years agoFix responsive resize on rtl page (#6063)
Jukka Kurkela [Wed, 13 Feb 2019 16:08:38 +0000 (18:08 +0200)] 
Fix responsive resize on rtl page (#6063)

6 years agoHandle inextensible `dataset.data` array (#6060)
Evert Timberg [Mon, 11 Feb 2019 18:31:26 +0000 (13:31 -0500)] 
Handle inextensible `dataset.data` array (#6060)

6 years agoUse lowercase for primitives in jsdocs (#6033)
Ben McCann [Mon, 11 Feb 2019 07:51:39 +0000 (23:51 -0800)] 
Use lowercase for primitives in jsdocs (#6033)

6 years agoEnhance legend label color point when usePointStyle is true (#6006)
Alfie Hopkin [Sun, 10 Feb 2019 18:04:29 +0000 (18:04 +0000)] 
Enhance legend label color point when usePointStyle is true (#6006)

6 years agoFix randomly failing tooltip test (#6061)
Jukka Kurkela [Sun, 10 Feb 2019 14:12:55 +0000 (16:12 +0200)] 
Fix randomly failing tooltip test (#6061)

Use utility to trigger the event in the center of element rather than x/y -based coordinates (its the edge for rectangles)

6 years agoImplement scriptable options for points in radar charts (#6041)
Akihiko Kusanagi [Sat, 9 Feb 2019 22:07:54 +0000 (06:07 +0800)] 
Implement scriptable options for points in radar charts (#6041)

6 years agoFix typo in radial linear scale docs (#6054)
James Bedford [Sat, 9 Feb 2019 07:19:57 +0000 (07:19 +0000)] 
Fix typo in radial linear scale docs (#6054)

6 years agoMove CSS in a separate file to be CSP-compliant (#6048)
Simon Brunel [Fri, 8 Feb 2019 17:17:04 +0000 (18:17 +0100)] 
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`.

6 years agoSimplify and cleanup the scale _autoskip method (#6043)
Ben McCann [Fri, 8 Feb 2019 06:10:02 +0000 (22:10 -0800)] 
Simplify and cleanup the scale _autoskip method (#6043)

6 years agoFix broken markdown link in 'line' docs (#6053)
Janelle deMent [Fri, 8 Feb 2019 06:06:17 +0000 (02:06 -0400)] 
Fix broken markdown link in 'line' docs (#6053)

6 years agoRename addEventListener and removeEventListener (#6046)
Jukka Kurkela [Wed, 6 Feb 2019 07:26:53 +0000 (09:26 +0200)] 
Rename addEventListener and removeEventListener (#6046)

Prevent conflict with `window.addEventListener` and `window.removeEventListener` (global scope).

6 years agoFix duplicate anchor (#6038)
Ben McCann [Tue, 5 Feb 2019 01:00:44 +0000 (17:00 -0800)] 
Fix duplicate anchor (#6038)

* Fix broken documentation anchors

* Revert changes to installation docs

6 years agoProvide a rectangle getArea implementation for horizontal bars (#6027)
Evert Timberg [Mon, 4 Feb 2019 08:56:38 +0000 (03:56 -0500)] 
Provide a rectangle getArea implementation for horizontal bars (#6027)

6 years agoRemove unused eslint directive (#6040)
Ben McCann [Mon, 4 Feb 2019 07:19:40 +0000 (23:19 -0800)] 
Remove unused eslint directive (#6040)

6 years agoFix padding of horizontal axes when labels are rotated (#6021)
Jukka Kurkela [Sat, 2 Feb 2019 08:46:27 +0000 (10:46 +0200)] 
Fix padding of horizontal axes when labels are rotated (#6021)

6 years agoReplace deprecated gulp-util and remove unused watchify (#6032)
Ben McCann [Sat, 2 Feb 2019 01:03:31 +0000 (17:03 -0800)] 
Replace deprecated gulp-util and remove unused watchify (#6032)

* Replace deprecated gulp-util and remove unused watchify

* Remove logging

6 years agoEnforce tooltip item `label` and `value` to be strings (#6030)
Akihiko Kusanagi [Fri, 1 Feb 2019 08:21:53 +0000 (16:21 +0800)] 
Enforce tooltip item `label` and `value` to be strings (#6030)

Also update the docs for `xLabel` and `yLabel` to also accept a `number`.

6 years agoPrevent infinite resize when vertical scrollbar appears (#6011)
Jukka Kurkela [Wed, 30 Jan 2019 10:43:42 +0000 (12:43 +0200)] 
Prevent infinite resize when vertical scrollbar appears (#6011)

If the container size shrank during chart resize, let's assume scrollbar appeared. So we resize again with the scrollbar visible effectively making chart smaller and the scrollbar hidden again. Because we are inside `throttled`, and currently `ticking`, scroll events are ignored during this whole 2 resize process. If we assumed wrong and something else happened, we are resizing twice in a frame (potential performance issue)

6 years agoReplace tooltip item xLabel and yLabel with label and value (#5996)
Jukka Kurkela [Wed, 30 Jan 2019 10:41:19 +0000 (12:41 +0200)] 
Replace tooltip item xLabel and yLabel with label and value (#5996)

6 years agoOmit inconsistent note about scriptable options (#6026)
Janelle deMent [Wed, 30 Jan 2019 08:24:26 +0000 (04:24 -0400)] 
Omit inconsistent note about scriptable options (#6026)

6 years agoMake moment optional from our UMD builds (#5978)
Simon Brunel [Tue, 29 Jan 2019 16:54:22 +0000 (17:54 +0100)] 
Make moment optional from our UMD builds (#5978)

6 years agoDeprecate configMerge and scaleMerge helpers (#6022)
Simon Brunel [Tue, 29 Jan 2019 16:52:21 +0000 (17:52 +0100)] 
Deprecate configMerge and scaleMerge helpers (#6022)

These methods shouldn't have been public since they are specific to the chart controller internal logic. Note that this scale custom merging will be removed in v3.

6 years agoCommon logic for resolving line element options (#6005)
Ben McCann [Tue, 29 Jan 2019 13:45:56 +0000 (05:45 -0800)] 
Common logic for resolving line element options (#6005)

6 years agoFix typos and make the docs consistent (#6020)
Akihiko Kusanagi [Tue, 29 Jan 2019 12:34:16 +0000 (20:34 +0800)] 
Fix typos and make the docs consistent (#6020)

6 years agoFix typo in test utils comment (#6017)
Ben McCann [Mon, 28 Jan 2019 18:40:07 +0000 (10:40 -0800)] 
Fix typo in test utils comment (#6017)

6 years agoFix pointBackgroundColor in radar sample (#6013)
Jukka Kurkela [Fri, 25 Jan 2019 10:48:01 +0000 (12:48 +0200)] 
Fix pointBackgroundColor in radar sample (#6013)

6 years agoSupply correct start param for insertElements in onDataPush (#6008)
Jukka Kurkela [Fri, 25 Jan 2019 09:27:22 +0000 (11:27 +0200)] 
Supply correct start param for insertElements in onDataPush (#6008)

6 years agoStop drawing radialLinear scale twice (#6007)
Jukka Kurkela [Wed, 23 Jan 2019 14:45:02 +0000 (16:45 +0200)] 
Stop drawing radialLinear scale twice (#6007)

6 years agoHandle any element in triggerMouseEvent in tests (#5994)
Jukka Kurkela [Sun, 20 Jan 2019 07:09:21 +0000 (09:09 +0200)] 
Handle any element in triggerMouseEvent in tests (#5994)

6 years agoTrigger mouse events at the center of arc (#5991)
Jukka Kurkela [Fri, 18 Jan 2019 12:46:13 +0000 (14:46 +0200)] 
Trigger mouse events at the center of arc (#5991)

6 years agoReturn correct label for value type axis (#5920)
Jukka Kurkela [Thu, 17 Jan 2019 15:04:08 +0000 (17:04 +0200)] 
Return correct label for value type axis (#5920)

6 years agoFaster date operations (#5982)
Ben McCann [Thu, 17 Jan 2019 15:01:27 +0000 (07:01 -0800)] 
Faster date operations (#5982)

6 years agoUpdate contributors guide and issue templates (#5962)
Ben McCann [Wed, 16 Jan 2019 08:35:14 +0000 (00:35 -0800)] 
Update contributors guide and issue templates (#5962)

6 years agoImplement scriptable options for points in line charts (#5973)
Evert Timberg [Tue, 15 Jan 2019 08:24:12 +0000 (03:24 -0500)] 
Implement scriptable options for points in line charts (#5973)

6 years agoUpdate the responsive docs about resizing the parent node (#5974)
Janelle deMent [Sun, 13 Jan 2019 20:20:25 +0000 (16:20 -0400)] 
Update the responsive docs about resizing the parent node (#5974)

Add a note about resizing the chart height with maintainAspectRatio

6 years agoImplement scriptable options for polar area charts (#5976)
Evert Timberg [Sun, 13 Jan 2019 20:17:27 +0000 (15:17 -0500)] 
Implement scriptable options for polar area charts (#5976)

6 years agoFix labelOffset description (#5979)
Akihiko Kusanagi [Sat, 12 Jan 2019 00:29:39 +0000 (08:29 +0800)] 
Fix labelOffset description (#5979)

6 years agoImplement adapter to abstract date/time features (#5960)
Simon Brunel [Fri, 11 Jan 2019 07:03:28 +0000 (08:03 +0100)] 
Implement adapter to abstract date/time features (#5960)

6 years agoFix typo / grammar in the responsive docs (#5975)
Ben McCann [Fri, 11 Jan 2019 06:31:36 +0000 (22:31 -0800)] 
Fix typo / grammar in the responsive docs (#5975)

6 years agoFix modifying ticks in afterBuildTicks (#5913)
Jukka Kurkela [Fri, 11 Jan 2019 06:29:38 +0000 (08:29 +0200)] 
Fix modifying ticks in afterBuildTicks (#5913)

6 years agoImplement scriptable options for doughnut charts (#5966)
Evert Timberg [Thu, 10 Jan 2019 15:00:36 +0000 (10:00 -0500)] 
Implement scriptable options for doughnut charts (#5966)

6 years agoMake the main controller importable (#5969)
Simon Brunel [Wed, 9 Jan 2019 13:40:11 +0000 (14:40 +0100)] 
Make the main controller importable (#5969)

Merge `core/core.js` in `core/core.controller.js`, split default options next to their associated code and deprecate `Chart.types` (not sure what it was for).

6 years agoRemove unused parameter in removeResizeListener invocation (#5970)
Daniel Ruf [Wed, 9 Jan 2019 13:39:20 +0000 (14:39 +0100)] 
Remove unused parameter in removeResizeListener invocation (#5970)

6 years agoTest default tooltip callbacks for scatter charts (#5967)
Nodar Nutsubidze [Wed, 9 Jan 2019 13:37:25 +0000 (07:37 -0600)] 
Test default tooltip callbacks for scatter charts (#5967)

This moves the mouse over the drawn point and verifies that there is no title in the tooltip and that the body contains expected content.

6 years agoFix contribution docs about gulp-cli (#5968)
Alexander Wunschik [Wed, 9 Jan 2019 07:10:58 +0000 (08:10 +0100)] 
Fix contribution docs about gulp-cli (#5968)

Update the docs so that only gulp-cli is installed globally

6 years agoFix generateTicks when working with tiny numbers (#5948)
Jukka Kurkela [Wed, 9 Jan 2019 06:58:13 +0000 (08:58 +0200)] 
Fix generateTicks when working with tiny numbers (#5948)

6 years agoRefactoring using helpers.options.resolve (#5965)
Akihiko Kusanagi [Tue, 8 Jan 2019 15:50:33 +0000 (23:50 +0800)] 
Refactoring using helpers.options.resolve (#5965)

6 years agoFix title, body and footer alignment inside tooltip (#5925)
Jukka Kurkela [Tue, 8 Jan 2019 12:37:36 +0000 (14:37 +0200)] 
Fix title, body and footer alignment inside tooltip (#5925)

6 years agoFix fitWithPointLabels calculation in radialLinear scale (#5963)
Akihiko Kusanagi [Mon, 7 Jan 2019 11:48:57 +0000 (19:48 +0800)] 
Fix fitWithPointLabels calculation in radialLinear scale (#5963)

6 years agoUse `Chart.min.js` in samples (#5958)
Simon Brunel [Sun, 6 Jan 2019 14:56:58 +0000 (15:56 +0100)] 
Use `Chart.min.js` in samples (#5958)

Samples are supposed to show good practices and in most cases we don't use the time scale but require `Chart.bundle.js`, which is not correct. Instead, we should require the non-bundled version in its minified version (`Chart.min.js`). Paradoxically, time based examples don't use `Chart.bundle.js` but require moment manually side to `Chart.min.js`, which IMO is also the correct way since it allows users to configure and use moment globally (TZ, locales, etc.) and doesn't enforce a specific moment version.

Also remove the `data-labelling.html` example because we now have an [official plugin](https://github.com/chartjs/chartjs-plugin-datalabels) that implements this feature and don't want to deal with user custom code anymore.

6 years agoCleanup scales export for better import strategy (#5953)
Simon Brunel [Sat, 5 Jan 2019 13:37:54 +0000 (14:37 +0100)] 
Cleanup scales export for better import strategy (#5953)

Scales now export their class and associated defaults (`_defaults`), the registration being done globally in `src/chart.js`.

6 years agoPrevent bezier points from being capped when a data point is off the chart (#5937)
Akihiko Kusanagi [Sat, 5 Jan 2019 11:28:15 +0000 (19:28 +0800)] 
Prevent bezier points from being capped when a data point is off the chart (#5937)

6 years agoMake animation duration consistent across browsers (#5331)
serhii-yakymuk [Wed, 2 Jan 2019 15:13:56 +0000 (17:13 +0200)] 
Make animation duration consistent across browsers (#5331)

6 years agoFix time scale ticks.reverse issue (#5933)
Akihiko Kusanagi [Wed, 2 Jan 2019 15:00:55 +0000 (23:00 +0800)] 
Fix time scale ticks.reverse issue (#5933)

6 years agoCast getRightValue to number in the bar controller (#5947)
Jukka Kurkela [Wed, 2 Jan 2019 14:55:27 +0000 (16:55 +0200)] 
Cast getRightValue to number in the bar controller (#5947)

6 years agoImprove tick generation for linear scales (#5938)
Akihiko Kusanagi [Tue, 1 Jan 2019 13:38:09 +0000 (21:38 +0800)] 
Improve tick generation for linear scales (#5938)

* Improve tick generation for linear scales
* Simplify the tick generation code
* Refactor getTickLimit

6 years agoFix RangeError exception when merging too many labels (#5936)
CK [Mon, 31 Dec 2018 12:35:51 +0000 (04:35 -0800)] 
Fix RangeError exception when merging too many labels (#5936)

Fix "RangeError: Maximum call stack size exceeded" exception when calling `Array.push.apply` with too many items (>125000).

6 years agoProperly calculate space needed by tick label on autoSkip (#5922)
Jukka Kurkela [Fri, 21 Dec 2018 06:56:53 +0000 (08:56 +0200)] 
Properly calculate space needed by tick label on autoSkip (#5922)

6 years agoAdd `reverse` support to time scale (#5927)
Jukka Kurkela [Thu, 20 Dec 2018 15:08:13 +0000 (17:08 +0200)] 
Add `reverse` support to time scale (#5927)

6 years agoAdd scale.pointLabels.lineHeight and scale.ticks.lineHeight options (#5914)
Akihiko Kusanagi [Thu, 20 Dec 2018 08:56:06 +0000 (17:56 +0900)] 
Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options (#5914)

6 years agoAdd support for typed arrays (#5905)
Jukka Kurkela [Tue, 18 Dec 2018 13:49:39 +0000 (15:49 +0200)] 
Add support for typed arrays (#5905)

6 years agoAdd 'middle' interpolation to stepped plots (#5908)
Angus Comrie [Tue, 18 Dec 2018 13:47:24 +0000 (15:47 +0200)] 
Add 'middle' interpolation to stepped plots (#5908)

6 years agoAdd support for 'inner' border for arc elements (#5841)
Akihiko Kusanagi [Tue, 18 Dec 2018 12:58:02 +0000 (21:58 +0900)] 
Add support for 'inner' border for arc elements (#5841)

6 years agoAdd support for hiding axis when all linked datasets are hidden (#5885)
Dave Salomon [Tue, 18 Dec 2018 08:33:03 +0000 (08:33 +0000)] 
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.

6 years agoUse HTTPS instead of HTTP for URLs supporting it
Simon Brunel [Sun, 16 Dec 2018 10:58:29 +0000 (11:58 +0100)] 
Use HTTPS instead of HTTP for URLs supporting it

6 years agoAdd omi-chart to extensions.md (#5912)
当耐特 [Sat, 15 Dec 2018 11:27:08 +0000 (19:27 +0800)] 
Add omi-chart to extensions.md (#5912)

6 years agoUse HTTPS in documentation links where possible (#5915)
Ben McCann [Sat, 15 Dec 2018 10:28:17 +0000 (02:28 -0800)] 
Use HTTPS in documentation links where possible (#5915)

6 years agoMigrate from Browserify to rollup (#5904)
Simon Brunel [Fri, 14 Dec 2018 19:20:43 +0000 (20:20 +0100)] 
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.

6 years agoRemove `innerHTML` usage from our DOM platform (#5909)
Simon Brunel [Fri, 14 Dec 2018 02:19:42 +0000 (03:19 +0100)] 
Remove `innerHTML` usage from our DOM platform (#5909)

Prevent "Unsafe assignment to innerHTML" reported by Firefox when submitting addon to their store.

6 years agoRemove autoSkip logic to always display last tick (#5891)
Steve Gray [Sun, 9 Dec 2018 17:56:51 +0000 (11:56 -0600)] 
Remove autoSkip logic to always display last tick (#5891)

This changes the behavior of `autoSkip` so that it does not force the
display of the last tick. If the last tick can be displayed with equal
spacing to the rest of the ticks, it will be. Otherwise, it is not.

6 years agoFix the rounding issue of floating point numbers in category scale (#5880)
Akihiko Kusanagi [Sun, 9 Dec 2018 10:34:34 +0000 (21:34 +1100)] 
Fix the rounding issue of floating point numbers in category scale (#5880)

- Remove `Math.round` in the category scale code
- Add `helpers._alignPixel` to align grid/tick/axis border lines
- Fix grid/tick/axis border line calculation
- Add a check of the width of the axis border
- Refactor core.scale code

6 years agoRemove gaps on the left and right when the axis offset is true (#5884)
Akihiko Kusanagi [Wed, 5 Dec 2018 16:59:07 +0000 (03:59 +1100)] 
Remove gaps on the left and right when the axis offset is true (#5884)

6 years agoFix docs about bar chart indexable options (#5876)
Akihiko Kusanagi [Tue, 4 Dec 2018 08:10:15 +0000 (19:10 +1100)] 
Fix docs about bar chart indexable options (#5876)