]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
8 years agoFix tests on OSX with retina screen 4619/head
andig [Sat, 5 Aug 2017 14:48:12 +0000 (16:48 +0200)] 
Fix tests on OSX with retina screen

* Fix retina unit test failures
* Honor config file formatting
* Prevent gulp error on non-zero karma result

8 years agoEnforce variable declaration coding style (#4610)
Simon Brunel [Thu, 3 Aug 2017 16:33:18 +0000 (18:33 +0200)] 
Enforce variable declaration coding style (#4610)

For consistency, enable ESLint `one-var` rule to require multiple variable declarations for initialized variables per scope. Uninitialized variables can still be declared together (preferred) or separately.

http://eslint.org/docs/rules/one-var

8 years agoMake Chart.Ticks private and remove Chart.Ticks.generators.time (#4602)
Ben McCann [Wed, 2 Aug 2017 12:30:38 +0000 (05:30 -0700)] 
Make Chart.Ticks private and remove Chart.Ticks.generators.time (#4602)

8 years agoAllow updating dataset types (#4586)
Ben McCann [Wed, 2 Aug 2017 05:29:34 +0000 (22:29 -0700)] 
Allow updating dataset types (#4586)

8 years agoChange `scale.ticks.bounds` to `scale.bounds` (#4595)
Simon Brunel [Wed, 2 Aug 2017 05:28:27 +0000 (07:28 +0200)] 
Change `scale.ticks.bounds` to `scale.bounds` (#4595)

The `bounds` option makes more sense directly under `scale` since it defines the scale limits strategy when no explicit min/max are specified. Also change the `bounds: 'labels'` option value for `bounds: 'ticks'` because it really means: "ensure ticks to be fully visible in the scale, whatever the ticks `source`.

8 years agoReplace the IFRAME resizer by DIVs (#4596)
Simon Brunel [Wed, 2 Aug 2017 05:25:55 +0000 (07:25 +0200)] 
Replace the IFRAME resizer by DIVs (#4596)

Resize detection is now based on scroll events from two divs nested under a main one. Implementation inspired from https://github.com/marcj/css-element-queries.

8 years agoAdd support for detached canvas element (#4591)
Simon Brunel [Tue, 1 Aug 2017 12:28:45 +0000 (14:28 +0200)] 
Add support for detached canvas element (#4591)

Allow to create a chart on a canvas not yet attached to the DOM (detection based on CSS animations described in https://davidwalsh.name/detect-node-insertion). The resize element (IFRAME) is added only when the canvas receives a parent or when `style.display` changes from `none`. This change also allows to re-parent the canvas under a different node (the resizer element following). This is a preliminary work for the DIV based resizer.

8 years agoChange `ticks.mode` to `scale.distribution` (#4582)
Simon Brunel [Sun, 30 Jul 2017 19:24:29 +0000 (21:24 +0200)] 
Change `ticks.mode` to `scale.distribution` (#4582)

Fix `ticks.mode` behavior when `ticks.source` is `auto`: the lookup table is now built from the data and not from the ticks, so data (and ticks) are correctly distributed along the scale. Rename the option to `distribution` (more explicit than `mode`) and since this option applies from now on the data, it seems better to have it under `scale` instead `scale.ticks`.

8 years agoChange `scale.ticks` back to an array of strings (#4573)
Simon Brunel [Sat, 29 Jul 2017 19:26:36 +0000 (21:26 +0200)] 
Change `scale.ticks` back to an array of strings (#4573)

Internal ticks are now stored as objects in the PRIVATE this._ticks member and must not be accessed directly from outside this class. this.ticks is around for a long time and hasn't been marked as private, so we can't change its structure without unexpected breaking changes. If you need to access the scale ticks, use scale.getTicks() instead.

8 years agoAllow specifying bar chart via {x, y} data points (#4565)
Ben McCann [Sat, 29 Jul 2017 19:22:52 +0000 (12:22 -0700)] 
Allow specifying bar chart via {x, y} data points (#4565)

8 years agoindex-y interaction mode + convert horizontal bar defaults to new mode (#4458)
Evert Timberg [Fri, 28 Jul 2017 22:07:28 +0000 (18:07 -0400)] 
index-y interaction mode + convert horizontal bar defaults to new mode (#4458)

index-y interaction mode + convert horizontal bar defaults to new mode

8 years agoNew time scale `ticks.source: 'data'` option (#4568)
Simon Brunel [Thu, 27 Jul 2017 04:41:09 +0000 (06:41 +0200)] 
New time scale `ticks.source: 'data'` option (#4568)

This new option value generates ticks from data (including labels from {t|x|y} data objects).

8 years agoInstructions to access resources built from master
andig [Tue, 25 Jul 2017 07:56:46 +0000 (09:56 +0200)] 
Instructions to access resources built from master

8 years agoRewrite unit test waitForResize helper (#4566)
Simon Brunel [Wed, 26 Jul 2017 11:33:45 +0000 (13:33 +0200)] 
Rewrite unit test waitForResize helper (#4566)

The original implementation tries to intercept events from the chart internal iframe, which ones failing on Chrome 60. Checking internals doesn't seem the best approach, instead we could consider that a chart has been resized after the resize method has been called and processed. So let's hook `Chart.resize` and callback once it's done.

8 years agoNew time scale `ticks.bounds` option (#4556)
Simon Brunel [Tue, 25 Jul 2017 08:12:53 +0000 (10:12 +0200)] 
New time scale `ticks.bounds` option (#4556)

`ticks.bounds` (`'data'`(default)|`'label'`): `data` preserves the data range while `labels` ensures that all labels are visible. This option is bypassed by the min/max time options.

Remove the useless time scale `_model` object containing private members: instead, make these members private (prefixed by `_`) part of the scale.

8 years agoAdd a note about breaking changes (#4555)
Ben McCann [Mon, 24 Jul 2017 12:49:26 +0000 (05:49 -0700)] 
Add a note about breaking changes (#4555)

8 years agoMove and rewrite time helpers (#4549)
Simon Brunel [Sun, 23 Jul 2017 15:41:12 +0000 (17:41 +0200)] 
Move and rewrite time helpers (#4549)

Move time helpers back into time scale, remove the `Chart.helpers.time namespace` and attempt to make the auto generation logic a bit simpler. The generate method doesn't anymore enforce min/max, the calling code needs to clamp timestamps if needed.

8 years agoHonour time scale min/max settings (#4522)
andig [Sat, 22 Jul 2017 12:22:44 +0000 (14:22 +0200)] 
Honour time scale min/max settings (#4522)

8 years agoEnforce spaces around infix/unary words operators (#4547)
Simon Brunel [Sat, 22 Jul 2017 12:13:09 +0000 (14:13 +0200)] 
Enforce spaces around infix/unary words operators (#4547)

Enable ESLint `space-infix-ops` and `space-unary-ops` (for words only) rules. Also added `samples` to the linting task to match Code Climate expectations.

http://eslint.org/docs/rules/space-infix-ops
http://eslint.org/docs/rules/space-unary-ops

8 years agoFix ESLint errors (#4485)
Ben McCann [Sat, 22 Jul 2017 07:19:06 +0000 (00:19 -0700)] 
Fix ESLint errors (#4485)

8 years agoAllow specifying the time axis via t attribute (#4533)
Ben McCann [Sat, 22 Jul 2017 06:33:22 +0000 (23:33 -0700)] 
Allow specifying the time axis via t attribute (#4533)

For time series charts it may make more sense to specify the horizontal axis using the variable `t`. This change will make it much easier to use the time scale with the financial chart, which takes in the data points `{t, o, h, l, c}`.

8 years agoRefactor padding parsing under helpers.options (#4544)
Simon Brunel [Fri, 21 Jul 2017 13:03:03 +0000 (15:03 +0200)] 
Refactor padding parsing under helpers.options (#4544)

New Chart.helpers.options.toPadding helpers that converts a number or object into a padding {top, right, bottom, left, height, width} object.

8 years agoMake `Chart.Element/elements.*` importable (#4540)
Simon Brunel [Fri, 21 Jul 2017 06:40:01 +0000 (08:40 +0200)] 
Make `Chart.Element/elements.*` importable (#4540)

8 years agoRemove duplicate npm install (#4542)
Ben McCann [Fri, 21 Jul 2017 06:21:29 +0000 (23:21 -0700)] 
Remove duplicate npm install (#4542)

8 years agoAdd support for line height CSS values (#4531)
Simon Brunel [Thu, 20 Jul 2017 17:20:54 +0000 (19:20 +0200)] 
Add support for line height CSS values (#4531)

The title plugin and scale title now accept lineHeight specified using unitless value (1.4), length ('1.4em' or '12px'), percentage ('200%') or keyword ('normal' === 1.2). The line height parsing has been refactored under the 'Chart.helpers.options' namespace. Also fix incorrect text positioning in the title plugin.

https://developer.mozilla.org/en-US/docs/Web/CSS/line-height

8 years agoNew time scale `ticks.mode/.source` options (#4507)
Simon Brunel [Wed, 19 Jul 2017 19:04:15 +0000 (21:04 +0200)] 
New time scale `ticks.mode/.source` options (#4507)

`ticks.source` (`'auto'`(default)|`'labels'`): `auto` generates "optimal" ticks based on min, max and a few more options (current `time` implementation`). `labels` generates ticks from the user given `data.labels` values (two additional trailing and leading ticks can be added if min and max are provided).

`ticks.mode` (`'linear'`(default)|`series`): `series` displays ticks at the same distance from each other, whatever the time value they represent, while `linear` displays them linearly in time: the distance between each tick represent the amount of time between their time values.

8 years agoAllow category labels definition at scale level (#4506)
andig [Wed, 19 Jul 2017 10:41:17 +0000 (12:41 +0200)] 
Allow category labels definition at scale level (#4506)

8 years agoAdd link to Java integration (#4527)
Marceau Dewilde [Tue, 18 Jul 2017 22:26:02 +0000 (00:26 +0200)] 
Add link to Java integration (#4527)

8 years agoMake `Chart.defaults/Ticks/Interaction` importable (#4512)
Simon Brunel [Sun, 16 Jul 2017 17:38:19 +0000 (19:38 +0200)] 
Make `Chart.defaults/Ticks/Interaction` importable (#4512)

Default options can now be accessed by importing `core/core.defaults`. The returned object acts as a singleton and is populated when importing classes that expose their own default values (meaning that importing only `code.defaults` results in an empty object). Also make `Chart.Ticks` and `Chart.Interaction` importable since existing defaults rely on these values.

Add the `defaults._set` method that make easier declaring new defaults by merging given values with existing ones for a specific scope (`global`, `scale`, `bar`, etc).

8 years agoMake `Chart.platform` importable (#4509)
Simon Brunel [Sun, 16 Jul 2017 09:02:25 +0000 (11:02 +0200)] 
Make `Chart.platform` importable (#4509)

8 years agoFix copy paste error in new docs with respect to settings for line and radar charts...
Evert Timberg [Sat, 15 Jul 2017 20:39:27 +0000 (16:39 -0400)] 
Fix copy paste error in new docs with respect to settings for line and radar charts. (#4510)

8 years agoMake `Chart.helpers` importable (#4479)
Simon Brunel [Sat, 15 Jul 2017 13:13:56 +0000 (15:13 +0200)] 
Make `Chart.helpers` importable (#4479)

Properly export helpers and remove dependencies to `Chart.helpers`. Helpers can now be accessed from `src/helpers/index.js` (`var helpers = require('path/to/helpers/index')`, instead of `var helpers = Chart.helpers`).

8 years agoFix labelOffset not working for vertical axes (#4249)
Suhaib Khan [Sat, 15 Jul 2017 08:19:16 +0000 (13:49 +0530)] 
Fix labelOffset not working for vertical axes (#4249)

8 years agoFix links in documentations (#4477)
Adrian Liaw [Sun, 9 Jul 2017 12:58:18 +0000 (20:58 +0800)] 
Fix links in documentations (#4477)

* Fix relative links in documentation of configurations
* Fix relative link of 'Time Units'
* Fix relative links for chart types documentations
* Fix the release version link in developers/plugins

8 years agoSimplify formulas based on code review
Simon Brunel [Sat, 8 Jul 2017 13:38:40 +0000 (15:38 +0200)] 
Simplify formulas based on code review

8 years agoMove easing effects in separate file + unit tests
Simon Brunel [Sat, 8 Jul 2017 07:44:00 +0000 (09:44 +0200)] 
Move easing effects in separate file + unit tests

8 years agoUpdate link to documentation for previous versions
Alexander Paterson [Wed, 5 Jul 2017 12:11:29 +0000 (20:11 +0800)] 
Update link to documentation for previous versions

8 years agoClip chart area before filling
Akihiko Kusanagi [Sun, 2 Jul 2017 06:40:00 +0000 (15:40 +0900)] 
Clip chart area before filling
- Add clip and unclip around doFill() call
- This fixes #4450

8 years agoAdd a note on how to use getElementAtEvent in a click handler
etimberg [Mon, 3 Jul 2017 22:00:03 +0000 (18:00 -0400)] 
Add a note on how to use getElementAtEvent in a click handler

8 years agoUse proper reverse option in radial linear scale
etimberg [Mon, 3 Jul 2017 23:50:08 +0000 (19:50 -0400)] 
Use proper reverse option in radial linear scale

8 years agoSupport an array for line chart pointBorderWidth
Evert Timberg [Tue, 4 Jul 2017 01:32:10 +0000 (21:32 -0400)] 
Support an array for line chart pointBorderWidth

8 years agoRewrite the clone and merge helpers (#4422)
Simon Brunel [Sat, 1 Jul 2017 12:51:38 +0000 (14:51 +0200)] 
Rewrite the clone and merge helpers (#4422)

The `clone` method now accepts any type of input but also recursively perform a deep copy of the array items. Rewrite the `configMerge` and `scaleMerge` helpers which now rely on a new generic and customizable `merge` method, that one accepts a target object in which multiple sources are deep copied. Note that the target (first argument) is not cloned and will be modified after calling `merge(target, sources)`. Add a `mergeIf` helper which merge the source properties only if they do not exist in the target object.

8 years agoClamp radius when drawing rounded rectangle (#4448)
Simon Brunel [Sat, 1 Jul 2017 12:08:20 +0000 (14:08 +0200)] 
Clamp radius when drawing rounded rectangle (#4448)

8 years agoRemove `.js` extensions when requiring a file (#4427)
Let Aurn IV [Sat, 1 Jul 2017 07:59:26 +0000 (09:59 +0200)] 
Remove `.js` extensions when requiring a file (#4427)

8 years agoIncrease ESLint complexity and add config for tests (#4421)
Simon Brunel [Sat, 1 Jul 2017 07:55:11 +0000 (09:55 +0200)] 
Increase ESLint complexity and add config for tests (#4421)

Raise the cyclomatic complexity to 10 which seems to better match the project coding style and still reasonable (6 being quite low). Also move unit tests specific eslint rules in the cascaded `./test/.eslintrc` file (previously in `gulp.js`).

8 years agoreplace self closing script tag with open and closing tags
Justin Ledford [Thu, 29 Jun 2017 16:46:35 +0000 (11:46 -0500)] 
replace self closing script tag with open and closing tags

8 years agoticks.padding option applies to both vertical and horizontal axes
etimberg [Thu, 22 Jun 2017 01:52:26 +0000 (21:52 -0400)] 
ticks.padding option applies to both vertical and horizontal axes

8 years agoWhen all datasets are hidden, the linear scale defaults to a range of 0 - 1.
etimberg [Sun, 25 Jun 2017 13:06:22 +0000 (09:06 -0400)] 
When all datasets are hidden, the linear scale defaults to a range of 0 - 1.
If `ticks.min` was set this would not set the range correctly.
Added a test to cover this case as well

8 years agoFix non-passive event listener warning in Chrome
Simon Brunel [Sun, 25 Jun 2017 10:14:28 +0000 (12:14 +0200)] 
Fix non-passive event listener warning in Chrome

Deprecate `addEvent` and `removeEvent`, and move implementation in `platform.dom.js`. Add 'options' feature detection to register event listeners as passive and prevent warning in Chrome.

8 years agoUpdate scatter chart default config to hide lines
etimberg [Thu, 15 Jun 2017 22:26:15 +0000 (18:26 -0400)] 
Update scatter chart default config to hide lines

8 years agoEnsure deprecated unitStepSize property of time scale is respected (#4401)
Evert Timberg [Sun, 25 Jun 2017 12:37:38 +0000 (08:37 -0400)] 
Ensure deprecated unitStepSize property of time scale is respected (#4401)

8 years agoChange `valueAtIndexOrDefault` behavior (#4423)
Simon Brunel [Sun, 25 Jun 2017 08:54:37 +0000 (10:54 +0200)] 
Change `valueAtIndexOrDefault` behavior (#4423)

For consistency with `valueOrDefault`, `valueAtIndexOrDefault` now returns null if `value` (expected array) is null. Also get rid of the superfluous `get` prefix in `getValueOrDefault` and `getValueAtIndexOrDefault`.

8 years agoCleanup and reorganize core and canvas helpers
Simon Brunel [Sat, 24 Jun 2017 09:46:06 +0000 (11:46 +0200)] 
Cleanup and reorganize core and canvas helpers

Move some of the "core" and "canvas" utils in `helpers.core.js` and `helpers.canvas.js` and introduce the new `isNullOrUndef` and `isObject` helpers. Deprecate `indexOf` and rename `drawRoundedRectangle` to `roundedRect` which now creates a simple `rect` path if radius is 0. Write missing unit tests for the moved helpers.

8 years agoFix error when legend label options are not defined (#4402)
Evert Timberg [Sat, 24 Jun 2017 15:35:46 +0000 (11:35 -0400)] 
Fix error when legend label options are not defined (#4402)

8 years agoUpdate Display Format table
Akihiko Kusanagi [Fri, 23 Jun 2017 03:38:53 +0000 (20:38 -0700)] 
Update Display Format table
- Up to date with the latest code
- Added Example column

8 years agoAdd aria-hidden=true attribute to hidden iframe for resizing (#4400)
Karan Bhatia [Fri, 23 Jun 2017 22:14:16 +0000 (15:14 -0700)] 
Add aria-hidden=true attribute to hidden iframe for resizing (#4400)

Add aria-hidden=true attribute to hidden iframe for resizing. This prevents screen readers in ItemMode from navigating to the hidden iframe.

8 years agoLine height setting for scale titles. The text is centered within the line height...
etimberg [Mon, 19 Jun 2017 01:21:37 +0000 (21:21 -0400)] 
Line height setting for scale titles. The text is centered within the line height, so setting the line height to a size
greater than the font size moves it away from the axis edge.

8 years agoFix arguments in plugin interface description
Akihiko Kusanagi [Thu, 22 Jun 2017 16:53:52 +0000 (09:53 -0700)] 
Fix arguments in plugin interface description
* Fixed arguments in IPlugin#before/afterDatasetUpdate description
* Fixed arguments in IPlugin#before/afterDatasetDraw description

8 years agoEnsure that chart dimensions are always >= 0
Peter-Van-Drunen [Fri, 23 Jun 2017 22:08:16 +0000 (18:08 -0400)] 
Ensure that chart dimensions are always >= 0

Elements were resizing incorrectly if they were regenerated while the chart was in a div that was display:none. Added a check to avoid this issue. Resolves #4397

8 years agoAdd description on new dataset update and draw plugin hooks
Akihiko Kusanagi [Thu, 22 Jun 2017 23:25:56 +0000 (16:25 -0700)] 
Add description on new dataset update and draw plugin hooks

8 years agoWording error
Ben S [Thu, 22 Jun 2017 11:08:00 +0000 (13:08 +0200)] 
Wording error

correct wording error

8 years agoMultiple lines of text in the chart title
etimberg [Thu, 15 Jun 2017 22:55:01 +0000 (18:55 -0400)] 
Multiple lines of text in the chart title

8 years agoAdd note regarding non-existant fonts
etimberg [Mon, 19 Jun 2017 00:59:45 +0000 (20:59 -0400)] 
Add note regarding non-existant fonts

8 years agoHighCharts is not open source (#4383)
Martin Bagge / brother [Fri, 16 Jun 2017 10:48:29 +0000 (12:48 +0200)] 
HighCharts is not open source (#4383)

According to the (issue tracker of highcharts)[https://github.com/highcharts/highcharts/issues/4405#issuecomment-125124004] they do not consider the code open source. It's available for reading but that's about it.

The code is provided under CC-BY-NC via github.

See also:
https://shop.highsoft.com/faq#Non-Commercial-0

8 years agoTime axis tick formatting with major and minor units (#4268)
Andrew [Thu, 15 Jun 2017 11:20:16 +0000 (14:20 +0300)] 
Time axis tick formatting with major and minor units (#4268)

Working towards creating the TimeSeries scale, this PR adds formatting for major and minor ticks on axes.

8 years agoFixed tiny typo in title.md
Julian Rademacher [Mon, 12 Jun 2017 13:17:27 +0000 (15:17 +0200)] 
Fixed tiny typo in title.md

8 years agoSupport hover animation duration during updates (#4300)
Ricardo Costa [Sun, 11 Jun 2017 16:06:39 +0000 (17:06 +0100)] 
Support hover animation duration during updates (#4300)

See discussion in the issue for context and possible approaches.

When invoking update() inside an event handler, such as onHover,
`options.hover.animationDuration` was not being respected. Given that
some use cases may require additional animation properties for the
manual update call, this commit changes that method signature to accept
a configuration object.

This object provides backwards compatibility with duration and lazy
properties, and also introduces the easing property so that the event
animation is different from the global one.

Add tests that guarantee that when update is called manually with
arguments, it properly builds the _bufferedRequest or calls render with
the proper arguments.
It includes test cases for when update is called with legacy arguments
(duration and lazy) instead of the config object.

.update() documentation was previously updated but .render() was left
out. Since the backwards compatible change was also made to render(),
this commit adds documentation for it.

8 years agoFix filling between datasets of different lengths
Simon Brunel [Sat, 10 Jun 2017 11:52:37 +0000 (13:52 +0200)] 
Fix filling between datasets of different lengths

8 years agoFix Tiny Typo in Labelling.md
Spencer Dellis [Thu, 8 Jun 2017 17:58:11 +0000 (13:58 -0400)] 
Fix Tiny Typo in Labelling.md

8 years agoFix round option for time scales
etimberg [Thu, 8 Jun 2017 00:49:22 +0000 (20:49 -0400)] 
Fix round option for time scales

8 years agoMake sure that the border width of the tooltip color box is always correct
Evert Timberg [Tue, 6 Jun 2017 23:03:31 +0000 (19:03 -0400)] 
Make sure that the border width of the tooltip color box is always correct

8 years agoUse the latest 6.x LTS release for Travis builds (#4346)
Ben McCann [Wed, 7 Jun 2017 21:21:07 +0000 (14:21 -0700)] 
Use the latest 6.x LTS release for Travis builds (#4346)

8 years agoFix broken link on animations page #4324
Raquel Guimaraes [Sun, 4 Jun 2017 23:12:16 +0000 (20:12 -0300)] 
Fix broken link on animations page #4324

8 years agoFix vertical alignment of legend labels (#4318)
Evert Timberg [Sun, 4 Jun 2017 17:34:05 +0000 (13:34 -0400)] 
Fix vertical alignment of legend labels (#4318)

Ensure that disabled legend style is drawn in the center of the text and that the text is correctly centered in the box.

8 years agoProvide a blank default global layout option (#4319)
Evert Timberg [Sun, 4 Jun 2017 17:32:44 +0000 (13:32 -0400)] 
Provide a blank default global layout option (#4319)

8 years agoAdded 'devicePixelRatio' option to override the window's DPR setting (#4270)
OlduwanSteve [Sun, 4 Jun 2017 16:57:55 +0000 (17:57 +0100)] 
Added 'devicePixelRatio' option to override the window's DPR setting (#4270)

8 years agoFix incorrect unitStepSize option. It should be stepSize (#4320)
Evert Timberg [Sun, 4 Jun 2017 16:51:27 +0000 (12:51 -0400)] 
Fix incorrect unitStepSize option. It should be stepSize (#4320)

8 years agoFix inconsistent aspect ratio
Jerome Touffe-Blin [Sun, 26 Mar 2017 02:44:26 +0000 (13:44 +1100)] 
Fix inconsistent aspect ratio

8 years agoImplemented aligment by senior unit in time axis. (#4267)
Andrew [Mon, 29 May 2017 22:40:10 +0000 (01:40 +0300)] 
Implemented aligment by senior unit in time axis. (#4267)

Implemented alignment by major unit in the time scale. This allows showing the first tick of a larger unit like days in a special way and is part of the basis of the time series scale.

8 years agoFix onHover event not being triggered (#4297)
Ricardo Costa [Sun, 28 May 2017 21:23:20 +0000 (22:23 +0100)] 
Fix onHover event not being triggered (#4297)

Fix onHover event not being triggered

The core controller was looking at the wrong object (options.hover) to
find the function to be called on hover. The function is provided on the
top level options object (options.onHover).

By using the helper function, there's no need to verify if the callback
is defined, as the helper already does that.

Fixes #4296

8 years agoAdd tooltip textLabelColor callback (#4199)
ApoorvA [Sun, 28 May 2017 12:39:29 +0000 (18:09 +0530)] 
Add tooltip textLabelColor callback (#4199)

Add a new tooltip callback `labelTextColor` that returns the colour for each item in the body of the tooltip.

Fixes issue #4191

8 years agoAdd hard coded integer constants for *_SAFE_INTEGER which are not available on IE
Stephen Boissiere [Sat, 27 May 2017 14:58:18 +0000 (15:58 +0100)] 
Add hard coded integer constants for *_SAFE_INTEGER which are not available on IE

8 years agoUpgrade dependencies
Ben McCann [Thu, 25 May 2017 16:55:21 +0000 (09:55 -0700)] 
Upgrade dependencies

8 years agoRefactor time scale methods into a common location
Ben McCann [Fri, 5 May 2017 04:34:23 +0000 (21:34 -0700)] 
Refactor time scale methods into a common location

8 years agoUpgrade dependencies (#4272)
Ben McCann [Thu, 25 May 2017 15:53:37 +0000 (08:53 -0700)] 
Upgrade dependencies (#4272)

8 years agoFix code climate badge and link (#4277)
Ben McCann [Thu, 25 May 2017 15:52:39 +0000 (08:52 -0700)] 
Fix code climate badge and link (#4277)

8 years agoAttempt to fix the failing deploy step
Simon Brunel [Thu, 25 May 2017 13:53:14 +0000 (15:53 +0200)] 
Attempt to fix the failing deploy step

8 years agoBump version to v2.6.0 (#4237) 4236/head 4282/head
Evert Timberg [Fri, 19 May 2017 20:08:33 +0000 (16:08 -0400)] 
Bump version to v2.6.0 (#4237)

8 years agoDeploy to GitHub pages (#4256)
Simon Brunel [Fri, 19 May 2017 19:58:34 +0000 (21:58 +0200)] 
Deploy to GitHub pages (#4256)

Add Travis CI task to deploy the docs, samples and dist files to chartjs.github.io for the `release` and `master` branches. A `latest` symbolic links is also created for each folder to the highest version (or `master` if any).

8 years agoAdd GA tracking code to docs
Simon Brunel [Fri, 19 May 2017 19:43:33 +0000 (21:43 +0200)] 
Add GA tracking code to docs

8 years agoFix invalid link in area.md (#4257)
Xingan Wang [Sat, 13 May 2017 17:30:23 +0000 (10:30 -0700)] 
Fix invalid link in area.md (#4257)

8 years agoEnable the 'search-plus' GitBook plugin
Simon Brunel [Sat, 13 May 2017 16:17:34 +0000 (18:17 +0200)] 
Enable the 'search-plus' GitBook plugin

8 years agoUse https to load scripts from CDN in samples (#4255)
Ben McCann [Sat, 13 May 2017 15:24:00 +0000 (08:24 -0700)] 
Use https to load scripts from CDN in samples (#4255)

8 years agoAdded width + height arguments to ctx.drawImage
Jamie McElwain [Sat, 13 May 2017 11:11:52 +0000 (12:11 +0100)] 
Added width + height arguments to ctx.drawImage

Previous functionality meant that images would be drawn at their source file size regardless of whether custom width or height properties were set.

8 years agoMake "dedicated to the chart canvas" a requirement (#4253)
Simon Brunel [Sat, 13 May 2017 12:14:47 +0000 (14:14 +0200)] 
Make "dedicated to the chart canvas" a requirement (#4253)

8 years agoFix RequireJS doc to use UMD file instead (#4252)
Simon Brunel [Sat, 13 May 2017 12:14:02 +0000 (14:14 +0200)] 
Fix RequireJS doc to use UMD file instead (#4252)

8 years agoDocument the new filling modes and options (#4251)
Simon Brunel [Sat, 13 May 2017 12:13:05 +0000 (14:13 +0200)] 
Document the new filling modes and options (#4251)

8 years agoinitial data update docs
etimberg [Sun, 23 Apr 2017 23:53:31 +0000 (19:53 -0400)] 
initial data update docs

8 years agoRemove executable bit from js files (#4222)
Ben McCann [Sun, 7 May 2017 17:35:17 +0000 (10:35 -0700)] 
Remove executable bit from js files (#4222)

8 years agoRemove unnecessary variable
Ben McCann [Wed, 26 Apr 2017 03:43:18 +0000 (20:43 -0700)] 
Remove unnecessary variable