]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
8 years agoscale service - respect new weight scale option for axes ordering (#4094) 4128/head
cizmiak [Tue, 4 Apr 2017 23:42:25 +0000 (01:42 +0200)] 
scale service - respect new weight scale option for axes ordering (#4094)

* respect new scale option 'order' when ordering scales

* scale service - respect new weight scale option for axes ordering

* added test for scale ordering by weight

* removed trailing spaces from layout weight scale order test

8 years agoAdds a better error message when the chart type is incorrect. Previously the user...
etimberg [Sat, 25 Mar 2017 23:34:55 +0000 (19:34 -0400)] 
Adds a better error message when the chart type is incorrect. Previously the user got a message about `type` being undefined.
This gives something that's easier to understand and debug.

8 years agoAdd live samples back to docs for each chart type
etimberg [Sun, 2 Apr 2017 01:22:06 +0000 (21:22 -0400)] 
Add live samples back to docs for each chart type

8 years agoTime scale improvements to improve performance and reliability
Thomas Redston [Sun, 2 Apr 2017 12:49:00 +0000 (14:49 +0200)] 
Time scale improvements to improve performance and reliability

* Make parseTime private
* start on fixing time scale
* Reimplement existing functionality
* Tidy tests
* Fix labels for non-linearly sized units

Months, quarters and years have non-constant numbers of seconds. A scale that's linear WRT milliseconds produces incorrect tick labels due to the label formatting losing precision (eg year labels lose month and day so a label of 2016-12-32 displays as 2016 instead of 2017).

* Re-implement tick generation

As in v2.5

8 years agoUpdate the tooltip with a new `caretPadding` setting. Previously this value was essen...
etimberg [Tue, 28 Mar 2017 00:19:57 +0000 (20:19 -0400)] 
Update the tooltip with a new `caretPadding` setting. Previously this value was essentially hard coded to
 2 because of a typo that read it from the positioner output. Based on #3599 we agreed to make this into
a config setting.

8 years agoFixed misplaced data points on category scale
Martin Zürn [Mon, 27 Mar 2017 22:02:56 +0000 (00:02 +0200)] 
Fixed misplaced data points on category scale

* Fixed issue, that category scale shows data points misplaced. See #4060
* Cleaned code
* Fixed Irregular whitespace
* Fixed error in case value is undefined
* Verified that no error is thrown in case value === null

8 years agoMove legend and title in the plugins folder (#4076)
Simon Brunel [Sat, 25 Mar 2017 17:28:54 +0000 (18:28 +0100)] 
Move legend and title in the plugins folder (#4076)

8 years agoAdd `gulp unittest --coverage` argument (#4075)
Simon Brunel [Sat, 25 Mar 2017 17:26:45 +0000 (18:26 +0100)] 
Add `gulp unittest --coverage` argument (#4075)

Coverage data are now generated by running `gulp unittest` with the `--coverage` argument: unit tests are then executed a single time on Travis. The gulp `coverage` task has been removed and `karma.coverage.conf.ci.js` merged into `karma.conf.ci.js`.

Update documentation with gulp commands (and remove them from `README.md`) and remove unused `config.jshintrc` (oversight from #3256). Delete `thankyou.md` which has been merged into `README.md`.

8 years agoAdd link to plugin that creates a stacked percentage chart
y-take [Fri, 24 Mar 2017 22:57:08 +0000 (07:57 +0900)] 
Add link to plugin that creates a stacked percentage chart

8 years agoUpdate line-customTooltips.html (Re issue #4038 )
ellie [Wed, 22 Mar 2017 10:35:50 +0000 (03:35 -0700)] 
Update line-customTooltips.html (Re issue  #4038  )

Add window scroll position to tooltip position calculation so they show up in the intended place instead of potentially off-screen! Moved tooltips inside the canvas parent container since they are being positioned in terms of its location

8 years agoZero line dash options (#4019)
Lee N Dobryden [Tue, 21 Mar 2017 10:38:09 +0000 (03:38 -0700)] 
Zero line dash options (#4019)

* Add of zero line border dash options
* Update Readme with zero line border dash config options

8 years agoReorganize samples and list them in index.html (#4043)
Simon Brunel [Tue, 21 Mar 2017 00:40:44 +0000 (01:40 +0100)] 
Reorganize samples and list them in index.html (#4043)

8 years agoDo not draw tooltips that have no items (#4034)
Samuel Jo [Tue, 21 Mar 2017 00:40:28 +0000 (20:40 -0400)] 
Do not draw tooltips that have no items (#4034)

8 years agoFix radar chart horizontal position (#4032)
Hiroshi Shirosaki [Tue, 21 Mar 2017 00:39:18 +0000 (09:39 +0900)] 
Fix radar chart horizontal position (#4032)

Radar chart position is not center horizontally with v2.5.0.

Right and left of `furthestLimits` would be switched wrongly on
this refactoring commit.
https://github.com/chartjs/Chart.js/pull/3625/commits/e1606f88ed4805815038cba4fdcd6211d7490356

8 years agoFix for stacked bar charts with log axes (#4010)
Evert Timberg [Tue, 21 Mar 2017 00:38:15 +0000 (20:38 -0400)] 
Fix for stacked bar charts with log axes (#4010)

* Undo fix for #3585 since it has broken the stacked bar charts when the axis has a user defined minimum value.

* When a value of 0 is requested for a vertical logarithmic axis, return the bottom point

8 years agoAvoid errors when rendering serverside (#3909)
Bohdan Khorolets [Tue, 21 Mar 2017 00:37:34 +0000 (02:37 +0200)] 
Avoid errors when rendering serverside (#3909)

8 years agoUpdate the docs structure/content to use GitBook (#3751)
Evert Timberg [Tue, 21 Mar 2017 00:36:54 +0000 (20:36 -0400)] 
Update the docs structure/content to use GitBook (#3751)

Update the docs structure/content to use GitBook

8 years agoCorrectly handle decimal display size (#4009)
Simon Brunel [Sat, 18 Mar 2017 10:54:56 +0000 (11:54 +0100)] 
Correctly handle decimal display size (#4009)

Fix the `readUsedSize` regular expression to correctly parse (truncate) pixel decimal values.

8 years agoAdd support to fill between datasets (#4008)
Simon Brunel [Sat, 18 Mar 2017 10:08:57 +0000 (11:08 +0100)] 
Add support to fill between datasets (#4008)

The `fill` option now accepts the index of the target dataset (number) or a string starting by "+" or "-" followed by a number representing the dataset index relative to the current one (e.g. `fill: "-2"` on dataset at index 3 will fill to dataset at index 1). It's also possible to "propagate" the filling to the target of an hidden dataset (`options.plugins.filler.propagate`). Fill boundaries `zero`, `top` and `bottom` have been deprecated and replaced by `origin`, `start` and `end`.

Implementation has been moved out of the line element into a new plugin (`src/plugins/plugin.filler.js`) and does not rely anymore on the deprecated model `scaleTop`, `scaleBottom` and `scaleZero` values. Drawing Bézier splines has been refactored in the canvas helpers (note that `Chart.helpers.canvas` is now an alias of `Chart.canvasHelpers`).

Add 3 new examples and extend utils with a pseudo-random number generator that can be initialized with `srand`. That makes possible to design examples starting always with the same initial data.

8 years agoIntroduce unit test based on image comparison (#3988)
Simon Brunel [Sun, 5 Mar 2017 16:49:12 +0000 (17:49 +0100)] 
Introduce unit test based on image comparison (#3988)

Attempt to make easier the creation of unit tests that check the drawing output. Until now, this was done by checking calls on a 'fake' context, which is hard to maintain (need to update pixel values by hands) and also not reliable when optimizing code (i.e. different calls sequence but same result).

As of now, it's possible to define 'auto' tests based on JSON/PNG fixtures: chart is generated from the JSON file and compared to the associated PNG image. The image diff is done using `pixelmatch`. As an example (and in preparation of the `filler` plugin), add auto tests for the line element `fill` options.

8 years agoCleanup and upgrade unit tests environment
Simon Brunel [Sat, 4 Mar 2017 15:47:53 +0000 (16:47 +0100)] 
Cleanup and upgrade unit tests environment

`karma.conf.ci.js` has been merged into `karma.conf.js` for local testing consistency: `gulp unittestWatch` has been replaced by `gulp unittest --watch` and thus use exactly the same config file. Upgrade to latest jasmine and karma packages and remove deprecated `gulp-karma` dependency (directly use `karma.Server` in gulp).

Split `test/mockContext.js` into smaller `test/jasmine.*` modules to make easier unit tests maintenance and finally, move all `*.test.js` files under the `test/specs` folder.

8 years agoFix shorthand `legend: false` and `title: false`
Simon Brunel [Sat, 4 Mar 2017 11:21:51 +0000 (12:21 +0100)] 
Fix shorthand `legend: false` and `title: false`

Prevent attempt to remove the legend or title layout items if they haven't been created but also check if the item to remove is registered with the layout manager to avoid removing the wrong box `splice(-1, 1)`. Add ids to the legend and title plugins to allow to fully disable them (`options: {plugins: {legend: false, title: false}}`).

8 years agoAdded a `maxBarThickness` setting for bar charts xAxis (#3963)
Cătălin Pintea [Sat, 4 Mar 2017 00:21:48 +0000 (02:21 +0200)] 
Added a `maxBarThickness` setting for bar charts xAxis (#3963)

Added a `maxBarThickness` setting for bar charts xAxis

8 years agoSplit radial scale lineArc setting into a combination of existing and new settings.
Evert Timberg [Wed, 11 Jan 2017 01:05:35 +0000 (20:05 -0500)] 
Split radial scale lineArc setting into a combination of existing and new settings.
gridLines.circular is a new option that toggles circular lines. This allows radar charts with circular lines #3082
pointLabels.display is a new option that toggles the display of point labels.
The existing angleLines.display is used with the new pointLabels.display setting is used to trigger the radar like settings.
This required changing the default polar area config.

8 years agoFlatten animation object and fix callbacks
Simon Brunel [Sat, 25 Feb 2017 10:51:47 +0000 (11:51 +0100)] 
Flatten animation object and fix callbacks

Animation callbacks now receives `animationObject` directly with a reference on the associated chart (`animation.chart`), which deprecates `animation.animationObject` and `animation.chartInstance`. Also fix missing `onComplete` animation argument and make sure that an animation object is passed even when animations are disabled.

8 years agoHandle incoming model values on element transition
Simon Brunel [Sat, 25 Feb 2017 12:06:36 +0000 (13:06 +0100)] 
Handle incoming model values on element transition

If a value is set on the model after `pivot()` has been called, the view wasn't initialized and the animation started from 0. Now, `_start` and incomplete `_view` are initialized to the model value during the transition (no initial implicit transition).

Also remove exception handling when animating a string (color), which is faster when string are not valid colors (e.g. tooltip position). It requires to update `chartjs-color` to version 2.1.0.

8 years agoFixed built-in auto skip caused by previous commit (#3904)
Jerry Chang [Sun, 19 Feb 2017 02:34:08 +0000 (18:34 -0800)] 
Fixed built-in auto skip caused by previous commit (#3904)

8 years agoAdd test for layout service weight ordering
etimberg [Sat, 25 Feb 2017 17:05:36 +0000 (12:05 -0500)] 
Add test for layout service weight ordering

8 years agoLayout service supports a new order setting to configure how boxes are ordered on...
etimberg [Fri, 20 Jan 2017 22:29:31 +0000 (17:29 -0500)] 
Layout service supports a new order setting to configure how boxes are ordered on left and right edges

8 years agoFix use of reserved keyword as a parameter name
Evert Timberg [Wed, 22 Feb 2017 01:34:50 +0000 (20:34 -0500)] 
Fix use of reserved keyword as a parameter name

8 years agofading tooltip
Adam Kirk [Wed, 22 Feb 2017 16:42:26 +0000 (09:42 -0700)] 
fading tooltip

8 years agoRefactored drawCaret and drawBackground functions to draw the background together...
Marcelo Tedeschi [Wed, 8 Feb 2017 08:09:48 +0000 (09:09 +0100)] 
Refactored drawCaret and drawBackground functions to draw the background together with the caret in the same path

8 years agoAdded configuration to documentation
Marcelo Tedeschi [Sun, 5 Feb 2017 22:00:12 +0000 (23:00 +0100)] 
Added configuration to documentation

8 years agoAdded possibility to draw tooltip borders
Marcelo Tedeschi [Sun, 5 Feb 2017 21:24:16 +0000 (22:24 +0100)] 
Added possibility to draw tooltip borders

8 years agoFix color dependency for builds
Evert Timberg [Wed, 22 Feb 2017 01:45:56 +0000 (20:45 -0500)] 
Fix color dependency for builds

8 years agoAdd new dataset update and draw plugin hooks
Simon Brunel [Sat, 18 Feb 2017 10:58:45 +0000 (11:58 +0100)] 
Add new dataset update and draw plugin hooks

In order to take full advantage of the new plugin hooks called before and after a dataset is drawn, all drawing operations must happen on stable meta data, so make sure that transitions are performed before.

8 years agoAdd chart data property setter and unit tests
Simon Brunel [Sat, 11 Feb 2017 15:02:15 +0000 (16:02 +0100)] 
Add chart data property setter and unit tests

Chart data can now be entirely replaced using `chart.data = {...}` thanks to the new property setter (instead of using `chart.config.data = {}`). Also update the documentation, as suggested by @ldaguise and @kennethkalmer, with a note about versions prior 2.6.

8 years ago#3849 - Stack bars in z dimension
potatopeelings [Sun, 12 Feb 2017 11:59:20 +0000 (22:59 +1100)] 
#3849 - Stack bars in z dimension

8 years agowhen axes are in the wrong place, update the config position
etimberg [Sat, 11 Feb 2017 01:37:31 +0000 (20:37 -0500)] 
when axes are in the wrong place, update the config position

8 years agoWhen the dataset label is not defined, the tooltip label string should not include...
Evert Timberg [Sat, 28 Jan 2017 22:06:20 +0000 (17:06 -0500)] 
When the dataset label is not defined, the tooltip label string should not include a ':' character. Added a test to cover this case.

8 years agoUpdate tooltip only when active element has changed (#3856)
Jerry [Fri, 10 Feb 2017 23:51:37 +0000 (15:51 -0800)] 
Update tooltip only when active element has changed (#3856)

Resolves #3746

8 years agoReuse parsed results rather than redoing work
Thomas Redston [Tue, 24 Jan 2017 18:06:18 +0000 (18:06 +0000)] 
Reuse parsed results rather than redoing work

The input labels/data is converted into moments in `determineDataLimits`, reuse them instead of duplicating the work.

8 years agoFixed HorizontalBar: stacked axis, displays NaN when all legends
Jerry Chang [Fri, 13 Jan 2017 16:39:03 +0000 (08:39 -0800)] 
Fixed HorizontalBar: stacked axis, displays NaN when all legends
unselected (#3770)

added ability to take snapshot of chart limits in order to be used
when max and min value is not finite

added ignore files

8 years agoUnit tests for Chart constructor and deprecations
Simon Brunel [Sat, 28 Jan 2017 12:17:38 +0000 (13:17 +0100)] 
Unit tests for Chart constructor and deprecations

8 years agoRename `chartInstance` to `chart`
Simon Brunel [Sat, 28 Jan 2017 11:52:40 +0000 (12:52 +0100)] 
Rename `chartInstance` to `chart`

8 years agoRemove deprecated nested `chart` accesses
Simon Brunel [Sat, 28 Jan 2017 11:50:29 +0000 (12:50 +0100)] 
Remove deprecated nested `chart` accesses

8 years agoDeprecate Chart.Controller (and nested `chart`)
Simon Brunel [Sat, 28 Jan 2017 11:43:54 +0000 (12:43 +0100)] 
Deprecate Chart.Controller (and nested `chart`)

8 years agoFix issue with how Chart.PluginBase is defined
etimberg [Wed, 8 Feb 2017 23:45:55 +0000 (18:45 -0500)] 
Fix issue with how Chart.PluginBase is defined

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.