]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
8 years agoAdded Django-Jchart link to docs/notes.md (#3865) 3840/head
Matthisk Heimensen [Fri, 3 Feb 2017 23:17:33 +0000 (00:17 +0100)] 
Added Django-Jchart link to docs/notes.md (#3865)

8 years agobump version number
etimberg [Sat, 28 Jan 2017 16:28:36 +0000 (11:28 -0500)] 
bump version number

8 years agoReplace `onEvent` by `before/afterEvent`
Simon Brunel [Sun, 22 Jan 2017 20:10:17 +0000 (21:10 +0100)] 
Replace `onEvent` by `before/afterEvent`

8 years agoMake `beforeDraw` cancellable and fix easing value
Simon Brunel [Sun, 22 Jan 2017 20:01:46 +0000 (21:01 +0100)] 
Make `beforeDraw` cancellable and fix easing value

8 years agoPlugin hooks and jsdoc enhancements
Simon Brunel [Sun, 22 Jan 2017 19:13:40 +0000 (20:13 +0100)] 
Plugin hooks and jsdoc enhancements

Make all `before` hooks cancellable (except `beforeInit`), meaning that if any plugin return explicitly `false`, the current action is not performed. Ensure that `init` hooks are called before `update` hooks and add associated calling order unit tests. Deprecate `Chart.PluginBase` in favor of `IPlugin` (no more an inheritable class) and document plugin hooks (also rename `extension` by `hook`).

8 years ago📝 Add vue-chartjs to docs
Jakub Juszczak [Fri, 27 Jan 2017 12:51:30 +0000 (13:51 +0100)] 
📝 Add vue-chartjs to docs

vue-chartjs is a wrapper written in vue for chartjs.

8 years agoinner radius could be slightly negative due to numerical errors
Evert Timberg [Sun, 22 Jan 2017 17:46:27 +0000 (12:46 -0500)] 
inner radius could be slightly negative due to numerical errors

8 years agoremove unnecessary extra init steps
Evert Timberg [Sun, 22 Jan 2017 18:23:42 +0000 (13:23 -0500)] 
remove unnecessary extra init steps

8 years agoDocumentation update on requiring Chart.js using CommonJS and es6 (#3788)
Jerry Chang [Sun, 22 Jan 2017 00:42:21 +0000 (16:42 -0800)] 
Documentation update on requiring Chart.js using CommonJS and es6 (#3788)

8 years agoIgnore .gitignore (and more) from Bower packages
Simon Brunel [Sat, 21 Jan 2017 12:12:12 +0000 (13:12 +0100)] 
Ignore .gitignore (and more) from Bower packages

8 years agoOnly generate ticks we care about
Thomas Redston [Fri, 13 Jan 2017 17:55:28 +0000 (17:55 +0000)] 
Only generate ticks we care about

Instead of cloning `me.scaleSizeInUnits` moments and probably throwing the vast majority away, only clone what we need.

8 years agoPlatform event API abstraction
Simon Brunel [Sat, 14 Jan 2017 13:38:56 +0000 (14:38 +0100)] 
Platform event API abstraction

Move base platform definition and logic in src/platform/platform.js and simplify the browser -> Chart.js event mapping by listing only different naming then fallback to the native type.

Replace `createEvent` by `add/removeEventListener` methods which dispatch Chart.js IEvent objects instead of native events. Move `add/removeResizeListener` implementation into the DOM platform which is now accessible via `platform.add/removeEventListener(chart, 'resize', listener)`.

Finally, remove `bindEvent` and `unbindEvent` from the helpers since the implementation is specific to the chart controller (and should be private).

8 years agowhen the cutoutPercentage is 0, the inner radius should be 0
Evert Timberg [Sat, 7 Jan 2017 02:41:10 +0000 (21:41 -0500)] 
when the cutoutPercentage is 0, the inner radius should be 0

8 years agoCorrect anchor link (#3772)
mdewilde [Sun, 8 Jan 2017 13:54:03 +0000 (14:54 +0100)] 
Correct anchor link (#3772)

8 years agoFix : Scale label display at top and right. (#3741)
SAiTO TOSHiKi [Thu, 5 Jan 2017 14:00:05 +0000 (22:00 +0800)] 
Fix : Scale label display at top and right. (#3741)

Fix Scale position at rotation when scale is top.

8 years agoupdate copyright date
Jake [Mon, 2 Jan 2017 18:26:51 +0000 (13:26 -0500)] 
update copyright date

8 years agoGroup stacked bar charts (#2643) (#3563)
potatopeelings [Sun, 1 Jan 2017 14:36:01 +0000 (01:36 +1100)] 
Group stacked bar charts (#2643) (#3563)

Group stacked bar charts (#2643)

8 years agoHappy new year!
Zach Panzarino [Sat, 31 Dec 2016 22:25:55 +0000 (22:25 +0000)] 
Happy new year!
Updated copyright date to 2017

8 years agoUpdate 07-Pie-Doughnut-Chart.md
Timofey Rechkalov [Sat, 24 Dec 2016 00:24:36 +0000 (05:24 +0500)] 
Update 07-Pie-Doughnut-Chart.md

Fixed example in pie chart docs.

8 years agoRefactoring to put browser specific code in a new class (#3718)
Evert Timberg [Wed, 21 Dec 2016 15:22:05 +0000 (10:22 -0500)] 
Refactoring to put browser specific code in a new class (#3718)

Refactoring to put browser specific code in a new class, BrowserPlatform.
BrowserPlatform implements IPlatform. Chart.Platform is the constructor for the platform object that is attached to the chart instance.

Plugins are notified about the event using the `onEvent` call. The legend plugin was converted to use onEvent instead of the older private `handleEvent` method.
Wrote test to check that plugins are notified about events

8 years agoFix bar draw issue with `borderWidth`. (#3680)
SAiTO TOSHiKi [Tue, 20 Dec 2016 14:01:07 +0000 (22:01 +0800)] 
Fix bar draw issue with `borderWidth`. (#3680)

Fix bar draw issue.
1. `Chart.elements.Rectangle.draw` function supports both horizontal and vertical bar.
2. Corrected bar position at minus.
3. Adjust bar size when `borderWidth` is set.
4. Adjust bar size when `borderSkipped` is set.
5. Adjust `borderWidth` with value near 0(base).
6. Update test.

8 years agoFix : samples (line-stacked-area.html & step-size.html) (#3717)
SAiTO TOSHiKi [Sun, 18 Dec 2016 17:49:43 +0000 (01:49 +0800)] 
Fix : samples (line-stacked-area.html & step-size.html) (#3717)

Fix : samples
line-stacked-area.html:Changed j-query code to javascript
step-size.html:Fixed buttons not working

8 years agofix stacked bars on logarithmic axes
etimberg [Fri, 9 Dec 2016 01:56:33 +0000 (20:56 -0500)] 
fix stacked bars on logarithmic axes

8 years agoAdd support for local plugins and plugin options
Simon Brunel [Thu, 3 Nov 2016 21:40:47 +0000 (22:40 +0100)] 
Add support for local plugins and plugin options

Plugins can now be declared in the chart `config.plugins` array and will only be applied to the associated chart(s), after the globally registered plugins. Plugin specific options are now scoped under the `config.options.plugins` options. Hooks now receive the chart instance as first argument and the plugin options as last argument.

8 years agofix options in getDatasetAtEvent
etimberg [Sat, 17 Dec 2016 23:50:06 +0000 (18:50 -0500)] 
fix options in getDatasetAtEvent

8 years agofix linting again
Evert Timberg [Sat, 17 Dec 2016 03:24:12 +0000 (22:24 -0500)] 
fix linting again

8 years agofix linting
Evert Timberg [Sat, 17 Dec 2016 03:20:18 +0000 (22:20 -0500)] 
fix linting

8 years agoUpdate core.scale.js
SAiTO TOSHiKi [Fri, 16 Dec 2016 07:15:14 +0000 (15:15 +0800)] 
Update core.scale.js

Change sie to size.

8 years agoFix bug when calculating if steps fit into scale as a whole number then smal floating...
Tarqwyn [Tue, 6 Dec 2016 14:43:29 +0000 (14:43 +0000)] 
Fix bug when calculating if steps fit into scale as a whole number then smal floating point errors make the consition pass false

8 years agoFix infinite loop in logarithmic tick generation
etimberg [Sun, 4 Dec 2016 03:21:48 +0000 (22:21 -0500)] 
Fix infinite loop in logarithmic tick generation

8 years agoFix newly introduced drawing bug when tick marks are not drawn
etimberg [Sun, 4 Dec 2016 03:21:25 +0000 (22:21 -0500)] 
Fix newly introduced drawing bug when tick marks are not drawn

8 years agoCorrect document for Interaction Modes #3676 (#3684)
Wang Shenwei [Tue, 6 Dec 2016 13:05:04 +0000 (21:05 +0800)] 
Correct document for Interaction Modes #3676 (#3684)

'x-axis' Behaves like 'index' mode with intersect = false

8 years agoPass the hover event to the onHover event handler (#3669)
Jonathon Hill [Sat, 3 Dec 2016 22:42:33 +0000 (17:42 -0500)] 
Pass the hover event to the onHover event handler (#3669)

Pass the hover event to the onHover event handler

This makes the behavior of the `onHover` handler consistent with the `onClick` handler:

```
function(event, activeElements) {
    var chartInstance = this;
}
```

8 years agoImplement clipping (#3658)
SAiTO TOSHiKi [Sat, 3 Dec 2016 21:09:45 +0000 (05:09 +0800)] 
Implement clipping (#3658)

Implements clipping of items outside the chart area. Resolves #3506 #3491 #2873

8 years agoFixed miscalculation of Bar width.
Toshiki Saito [Sun, 27 Nov 2016 03:36:29 +0000 (11:36 +0800)] 
Fixed miscalculation of Bar width.
for Bar and horizontalBar type,
include stacked scale.
issue #3589

8 years agoFix rotated label meaasurements (#2879, #3354). When measuring the first width and...
Evert Timberg [Tue, 8 Nov 2016 02:17:20 +0000 (21:17 -0500)] 
Fix rotated label meaasurements (#2879, #3354). When measuring the first width and last width, the fact that arrays of text are
present must be considered. In addition to fixing this, I did some general code cleanup in the fit and calculateLabelRotation methods.

8 years agoRevert "Fixed tooltip labelling on Bar Chart when min is defined (#3618)"
Evert Timberg [Tue, 29 Nov 2016 13:22:47 +0000 (08:22 -0500)] 
Revert "Fixed tooltip labelling on Bar Chart when min is defined (#3618)"

8 years agoDo not notify plugins when a silent resize occurs (#3650)
Evert Timberg [Tue, 29 Nov 2016 09:43:52 +0000 (04:43 -0500)] 
Do not notify plugins when a silent resize occurs (#3650)

Prevent the resize method from notifying plugins if it is a silent resize. A silent resize occurs during startup and we do not want plugins to do anything here because the chart is not set up.

8 years agofixed tooltip labelling on Bar Chart when min is defined
Jerry Chang [Tue, 15 Nov 2016 04:30:18 +0000 (20:30 -0800)] 
fixed tooltip labelling on Bar Chart when min is defined

added helper method to adjust the index

pass in chartConfig rather than access within method, make it easier to
test

added semi-colon at the end of helper method

added test for adjustIndex helper method

fixed lint issues

added integration test for the interaction of trigger an event over the
bar

.

.

moved adjustIndex into element helper

removed method from helper and adjusted method in core.interaction

added test for the element adjustIndex helper

added a skipIndexAdjustment method to handle when to skip the adjustment
along with test cases

fixed lint issues

removed the test for the helper method

8 years agoFix : Tooltip label for category scale. (#3649)
SAiTO TOSHiKi [Mon, 28 Nov 2016 23:28:39 +0000 (07:28 +0800)] 
Fix : Tooltip label for category scale. (#3649)

8 years agoFix monotone cubic interpolation when two adjacent points are at the exact same x...
etimberg [Sat, 26 Nov 2016 17:29:15 +0000 (12:29 -0500)] 
Fix monotone cubic interpolation when two adjacent points are at the exact same x pixel value

8 years agoAdd rectRounded to point style sample
Christopher Moeller [Tue, 25 Oct 2016 23:12:41 +0000 (18:12 -0500)] 
Add rectRounded to point style sample

8 years agoAdd rectRounded point style
Christopher Moeller [Tue, 25 Oct 2016 21:32:27 +0000 (16:32 -0500)] 
Add rectRounded point style

8 years agoAllow updating the config of a chart at runtime
etimberg [Sun, 13 Nov 2016 03:38:25 +0000 (22:38 -0500)] 
Allow updating the config of a chart at runtime

8 years agoImprove radial scale (#3625)
Evert Timberg [Fri, 25 Nov 2016 12:19:43 +0000 (07:19 -0500)] 
Improve radial scale (#3625)

Clean up radial linear scale. It now supports multiple lines for point labels. Fixes #3225

8 years agoUpgraded dependency gulp-uglify to 2.0.0 (#3635)
Jeff Carey [Tue, 22 Nov 2016 22:51:22 +0000 (14:51 -0800)] 
Upgraded dependency gulp-uglify to 2.0.0 (#3635)

8 years agoLabels can get bigger when the 2nd fit happens. Don't arbitrarily force the size...
etimberg [Sat, 5 Nov 2016 01:31:00 +0000 (21:31 -0400)] 
Labels can get bigger when the 2nd fit happens. Don't arbitrarily force the size to change

8 years agoProperly use the ticks.padding option. To correctly fix the issue, the default paddin...
etimberg [Sat, 5 Nov 2016 00:41:54 +0000 (20:41 -0400)] 
Properly use the ticks.padding option. To correctly fix the issue, the default padding was changed from 0 to 10. This change caused all of the test changes since the width of a vertical scale was lowered by 10px

8 years agoFixed Issue with tooltip label display when given null data value (#3528)
Jerry Chang [Mon, 31 Oct 2016 00:34:06 +0000 (17:34 -0700)] 
Fixed Issue with tooltip label display when given null data value (#3528)

When datasets.data contains a null value, the label displays incorrect
value.

code additions:
- unit tests for truthy label values (when data is null)
- checks to ensure handling of null value in getLabelByIndex method

added mock data sets from issue #3528 example

expect the return value from getLabelForIndex method to be valid (truthy)

added check for null of first data value in getLabelForIndex

fixed indentation and null comparison operator in code

fixed mistake in definition of firstData variable

changed testing for data on index 0 to using index variable

changed firstData to use value instead

condense the statments to use value variable

8 years agoRemove unnecessary padding usages and update category scale tests
etimberg [Sun, 30 Oct 2016 17:14:59 +0000 (13:14 -0400)] 
Remove unnecessary padding usages and update category scale tests

8 years agoTake vertical padding into account
Evert Timberg [Tue, 25 Oct 2016 02:36:50 +0000 (22:36 -0400)] 
Take vertical padding into account

8 years agoWhen an axis needs padding due to a long, rotated, label it should be added inside...
Evert Timberg [Tue, 25 Oct 2016 01:43:52 +0000 (21:43 -0400)] 
When an axis needs padding due to a long, rotated, label it should be added inside the layout system rather than in each axis.

8 years agoFixed vertical alignment in legend text (#3387)
Jeff Carey [Tue, 8 Nov 2016 04:49:14 +0000 (20:49 -0800)] 
Fixed vertical alignment in legend text (#3387)

8 years agoAllow line chart to use pointBorderWidth of 0 correctly
etimberg [Mon, 14 Nov 2016 01:38:50 +0000 (20:38 -0500)] 
Allow line chart to use pointBorderWidth of 0 correctly

8 years agoUpdate the documentation plugin list (#3610)
Jonathon Hill [Thu, 17 Nov 2016 09:29:36 +0000 (04:29 -0500)] 
Update the documentation plugin list (#3610)

Add chartjs-plugin-draggable to the list of plugins, update existing ones recently renamed and re-order the list by names.

8 years agoFix link in 01-Chart-Configuration.md (#3607)
38elements [Wed, 16 Nov 2016 12:21:44 +0000 (21:21 +0900)] 
Fix link in 01-Chart-Configuration.md (#3607)

8 years agouse correct option for setting tension on radar charts
etimberg [Mon, 14 Nov 2016 01:55:54 +0000 (20:55 -0500)] 
use correct option for setting tension on radar charts

8 years agouse correct option in radar chart
etimberg [Mon, 14 Nov 2016 00:44:42 +0000 (19:44 -0500)] 
use correct option in radar chart

8 years agoremove unused cancel animation frame method
Evert Timberg [Thu, 10 Nov 2016 00:53:20 +0000 (19:53 -0500)] 
remove unused cancel animation frame method

8 years agoFix path in 09-Advanced.md
38elements [Sun, 13 Nov 2016 02:15:16 +0000 (11:15 +0900)] 
Fix path in 09-Advanced.md

8 years agoAdd a function to filter items out of the legend
etimberg [Tue, 8 Nov 2016 02:46:31 +0000 (21:46 -0500)] 
Add a function to filter items out of the legend

8 years agoFix retina scale when display size is implicit 3551/head
Simon Brunel [Fri, 11 Nov 2016 18:53:45 +0000 (19:53 +0100)] 
Fix retina scale when display size is implicit

The retinaScale helper now enforces the display size to the correct values because if no style has been set on the canvas, the render size is used as display size, making the chart bigger (or smaller) when deviceAspectRatio is different of 1.

8 years agoFix context state restoration on destroy
Simon Brunel [Mon, 7 Nov 2016 23:16:58 +0000 (00:16 +0100)] 
Fix context state restoration on destroy

In many cases, the canvas render size is changed by the lib, causing the state stack to be discarded, meaning that we can't use save() and restore() to release the context with its initial state (i.e. before creating the chart). Since we don't need (want) to manually save / restore the context initial state, simply make sure to reset it to the default state to give a fresh context back to the user. That also means we don't need to revert the scale when the pixel device ratio is not 1.

8 years agoBump version to 2.4.0
Simon Brunel [Sun, 6 Nov 2016 17:31:30 +0000 (18:31 +0100)] 
Bump version to 2.4.0

8 years agoX and Y interaction modes now use the intersect option
etimberg [Fri, 4 Nov 2016 22:40:53 +0000 (18:40 -0400)] 
X and Y interaction modes now use the intersect option

8 years agoFix the event handler when legend is disabled (#3544)
Simon Brunel [Thu, 3 Nov 2016 21:43:52 +0000 (22:43 +0100)] 
Fix the event handler when legend is disabled (#3544)

When legend is disabled (i.e. {options: {legend: false}}), me.legend is null. Add the same test on me.tooltip even if the tooltip object is always created in case of {options: {tooltips: false}}.

8 years agoFix iframe resize handler when re-attached to DOM (#3527)
Simon Brunel [Mon, 31 Oct 2016 07:47:28 +0000 (08:47 +0100)] 
Fix iframe resize handler when re-attached to DOM (#3527)

When the iframe is attached to the DOM, its content is reloaded (invaliding the resize listener) so make sure to install the handler after the iframe is loaded. Optimize resize events by throttling resize process until the next animation frame. Rewrite the unit test "waitForResize" method, the previous one (timeout) was too weak and most tests was failing on FF.

8 years agoWhen an event triggers an update while the bufferedUpdate state is true, we need...
etimberg [Sun, 30 Oct 2016 15:03:19 +0000 (11:03 -0400)] 
When an event triggers an update while the bufferedUpdate state is true, we need to do that render with priority over any other renders that take place for animations and tooltips

8 years agoBump ESLint to v3.x (gulp and Code Climate) (#3526)
Simon Brunel [Sat, 29 Oct 2016 16:40:27 +0000 (18:40 +0200)] 
Bump ESLint to v3.x (gulp and Code Climate) (#3526)

8 years agoSpelling fixes (#3522)
Josh Soref [Thu, 27 Oct 2016 19:18:31 +0000 (15:18 -0400)] 
Spelling fixes (#3522)

Including: actually, aspect, bottom, changes, characters, datasets, divisible, downward, guidelines, instance, instances, interrupted, item, javascript, label, lifecycle, lines, plugins, manually, milliseconds, nearest, occurring, position, predefined, recalculate, tooltip, those

8 years agofix "area" typo
Varatep Buranintu [Thu, 27 Oct 2016 00:58:41 +0000 (17:58 -0700)] 
fix "area" typo

8 years agoFixes issue #3490: Tick documentation is missing autoSkipPadding
bret b [Tue, 25 Oct 2016 03:27:03 +0000 (22:27 -0500)] 
Fixes issue #3490: Tick documentation is missing autoSkipPadding

Adding a single line to the docs to document autoSkipPadding.

8 years agoUpdate installation instructions in README
Zach Panzarino [Tue, 25 Oct 2016 15:04:58 +0000 (15:04 +0000)] 
Update installation instructions in README

8 years agoUpdate chartColors.js to utils.js and move randomScalingFactor function there
Evert Timberg [Sun, 23 Oct 2016 18:04:00 +0000 (14:04 -0400)] 
Update chartColors.js to utils.js and move randomScalingFactor function there

8 years agoFix bug in 'y' tooltip mode
etimberg [Sun, 23 Oct 2016 03:12:39 +0000 (23:12 -0400)] 
Fix bug in 'y' tooltip mode

8 years agoReorganized sample files into sub directories. Added a helper containing colours...
etimberg [Fri, 21 Oct 2016 03:12:10 +0000 (23:12 -0400)] 
Reorganized sample files into sub directories. Added a helper containing colours that should be used by all samples.

I added new samples to explain behaviour and modified all samples to have consistent styling. In updating the samples,
I removed the use of jQuery and instead use standard methods.

For the custom tooltip samples, I updated the styling to show color boxes like the regular tooltips.

8 years agoAdd a way to filter items in the tooltip
etimberg [Fri, 21 Oct 2016 01:49:13 +0000 (21:49 -0400)] 
Add a way to filter items in the tooltip

8 years agoCustom tooltip: add data points infos (#3201)
bydooweedoo [Wed, 19 Oct 2016 13:48:17 +0000 (21:48 +0800)] 
Custom tooltip: add data points infos (#3201)

Expose tooltip items from tooltip model and added `x` and `y` properties to `TooltipItemInterface`

8 years agoAdd new properties for the caretX,caretY point of a tooltip. Useful for custom tooltips.
etimberg [Sat, 15 Oct 2016 21:04:22 +0000 (17:04 -0400)] 
Add new properties for the caretX,caretY point of a tooltip. Useful for custom tooltips.
The custom tooltip sample was updated as well to use the new properties.

8 years agoFix eslint errors in layout service test
Zach Panzarino [Tue, 18 Oct 2016 22:00:55 +0000 (22:00 +0000)] 
Fix eslint errors in layout service test

8 years agoLayout service now supports configurable padding on left, top, right and bottom.
etimberg [Sun, 16 Oct 2016 01:16:35 +0000 (21:16 -0400)] 
Layout service now supports configurable padding on left, top, right and bottom.
Re-enabled the layout service tests and then properly disabled the tests that
fail on the CI.

8 years agoAdd reset method to chart prototype
etimberg [Sun, 16 Oct 2016 13:28:27 +0000 (09:28 -0400)] 
Add reset method to chart prototype

8 years agoExtend eslint to test files (#3473)
Zach Panzarino [Sun, 16 Oct 2016 21:34:59 +0000 (17:34 -0400)] 
Extend eslint to test files (#3473)

* Add eslint to test files

* Fix mockContext for tests

* Make formatting look better for nested objects

8 years agoEnhance context acquisition on chart creation
Simon Brunel [Sat, 15 Oct 2016 21:40:22 +0000 (23:40 +0200)] 
Enhance context acquisition on chart creation

Add support for creating a chart from the canvas id and prevent exceptions, at construction time, when the given item doesn't provide a valid CanvasRenderingContext2D or when the getContext API is not accessible (e.g. undefined by add-ons to prevent fingerprinting). New jasmine matcher to verify chart validity.

8 years agoMake index mode only work with the horizontal distance to an element (#3471)
Evert Timberg [Sat, 15 Oct 2016 21:49:35 +0000 (16:49 -0500)] 
Make index mode only work with the horizontal distance to an element  (#3471)

Make index mode only work with the horizontal distance to an element if intersect is off

8 years agoConfigurable Tooltip Position Modes (#3453)
Evert Timberg [Fri, 14 Oct 2016 21:36:49 +0000 (16:36 -0500)] 
Configurable Tooltip Position Modes (#3453)

Adds new tooltip position option that allows configuring where a tooltip is displayed on the graph in relation to the elements that appear in it

8 years agoBar chart performance improvements
etimberg [Fri, 14 Oct 2016 00:43:11 +0000 (20:43 -0400)] 
Bar chart performance improvements

8 years agoNew fill modes for lines (#3460)
Evert Timberg [Fri, 14 Oct 2016 11:19:47 +0000 (06:19 -0500)] 
New fill modes for lines (#3460)

New fill modes for lines allowing the user to customize where the fill goes to

8 years agoUpdate the GitHub issue template
Simon Brunel [Sun, 9 Oct 2016 08:54:42 +0000 (10:54 +0200)] 
Update the GitHub issue template

8 years agoNo longer merge arrays during the config merge. Simply replace the property
etimberg [Sun, 9 Oct 2016 20:24:47 +0000 (16:24 -0400)] 
No longer merge arrays during the config merge. Simply replace the property

8 years agoReplaces Unicode character with HTML entity
Tieson Trowbridge [Sat, 8 Oct 2016 02:14:25 +0000 (22:14 -0400)] 
Replaces Unicode character with HTML entity

8 years agoFix/3061 (#3446)
Evert Timberg [Sun, 9 Oct 2016 16:26:59 +0000 (12:26 -0400)] 
Fix/3061 (#3446)

Solve weird animation issues with the tooltip. The optimization in Chart.Element.transition when the animation finishes to set `_view = _model` caused problems during update because we were using `helpers.extend` all over the place.

I changed to code so that we regenerate the model variable rather than continuously extending the old version. I also removed unnecessary tooltip reinitializations from the controller which should improve overall performance during interaction.

8 years agoProperly merge colors for the label colors in the tooltip. I added a private helper...
Evert Timberg [Sat, 8 Oct 2016 00:39:24 +0000 (20:39 -0400)] 
Properly merge colors for the label colors in the tooltip. I added a private helper to simplify the code in the tooltip

8 years agoFix bubble chart tooltip callback to use correct labels (#3421)
Evert Timberg [Thu, 6 Oct 2016 12:54:50 +0000 (08:54 -0400)] 
Fix bubble chart tooltip callback to use correct labels (#3421)

Fix bubble chart tooltip callback to use correct label parsed from scales. Fixes #3029

8 years agoRefactor tooltip draw function to extract drawBackground method
Mickael Jeanroy [Tue, 4 Oct 2016 15:08:55 +0000 (17:08 +0200)] 
Refactor tooltip draw function to extract drawBackground method

See issue #3416.

8 years agoIf tick options have min, max and stepSize use them to generate evenly spaced ticks
Aidan Fewster [Tue, 4 Oct 2016 10:53:55 +0000 (11:53 +0100)] 
If tick options have min, max and stepSize use them to generate evenly spaced ticks

8 years agoAdded the watchify NPM dependency to satisfy karma-browserify's peerDependency
Aidan Fewster [Tue, 4 Oct 2016 10:48:18 +0000 (11:48 +0100)] 
Added the watchify NPM dependency to satisfy karma-browserify's peerDependency

8 years agoDisplay tooltip color boxes for all tooltips. Added a new `displayColors` option...
Evert Timberg [Mon, 3 Oct 2016 23:10:54 +0000 (19:10 -0400)] 
Display tooltip color boxes for all tooltips. Added a new `displayColors` option to turn them off

8 years agoImprove Tooltip and Hover Interaction (#3400)
Evert Timberg [Mon, 3 Oct 2016 20:05:21 +0000 (16:05 -0400)] 
Improve Tooltip and Hover Interaction (#3400)

Refactored interaction modes to use lookup functions in Chart.Interaction.modes and added new modes for 'point', 'index', 'nearest', 'x', and 'y'

8 years agoBetter animation when adding or removing data
Simon Brunel [Sat, 1 Oct 2016 13:38:19 +0000 (15:38 +0200)] 
Better animation when adding or removing data

In order to simulate real-time chart updates (i.e. horizontal animation), it's necessary to distinguish a removed or added value from a simple update. The dataset controller now hooks array methods that alter the data array length to synchronize metadata accordingly. Also remove the duplicate calls of updateBezierControlPoints() for line and radar charts.