]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
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

8 years agoFix legend and title layout options update
Simon Brunel [Sun, 23 Apr 2017 17:58:11 +0000 (19:58 +0200)] 
Fix legend and title layout options update

8 years agoAdd financial chart type to plugin docs
Ben McCann [Tue, 25 Apr 2017 02:21:47 +0000 (19:21 -0700)] 
Add financial chart type to plugin docs

8 years agoRemove malformed comment
Ben McCann [Wed, 26 Apr 2017 03:29:40 +0000 (20:29 -0700)] 
Remove malformed comment

Fixes https://github.com/chartjs/Chart.js/issues/4181

8 years agoMake it clear that labels need to be specified when using a category axis on a line...
etimberg [Sat, 22 Apr 2017 18:47:00 +0000 (14:47 -0400)] 
Make it clear that labels need to be specified when using a category axis on a line chart

8 years agoFix failing instanceof when reading context
Simon Brunel [Sat, 22 Apr 2017 07:49:10 +0000 (09:49 +0200)] 
Fix failing instanceof when reading context

`instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is inside an iframe or when running in a protected environment. We could guess the types from their toString() value but let's keep things flexible and assume it's a sufficient condition if the item has a context2D which has item as `canvas`.

8 years agoEnhance the responsive documentation
Simon Brunel [Sat, 22 Apr 2017 11:59:56 +0000 (13:59 +0200)] 
Enhance the responsive documentation

Make sure to explain responsiveness limitations with CANVAS elements and how to correctly setup a responsive chart using a dedicated and relatively positioned div wrapper.

8 years agoFix hidden charts hanging the browser
Thomas Redston [Tue, 4 Apr 2017 00:48:55 +0000 (01:48 +0100)] 
Fix hidden charts hanging the browser

Ensure width cannot be greater than maxWidth. Similar to `minSize.height` calculation.

8 years agoRemove extraneous period
Ben McCann [Mon, 17 Apr 2017 14:28:35 +0000 (07:28 -0700)] 
Remove extraneous period

8 years agoCombine the two contributing docs
Ben McCann [Thu, 13 Apr 2017 21:59:13 +0000 (14:59 -0700)] 
Combine the two contributing docs

8 years agoEnhancement: adds step-after functionality, true defaults to step-before (#4065)
Eric Nikolay Katz [Sun, 16 Apr 2017 20:13:13 +0000 (16:13 -0400)] 
Enhancement: adds step-after functionality, true defaults to step-before (#4065)

* Adds step-after functionality, true defaults to step-before

* Update stepped line sample to include all variations of steppedLine configurations

* Update documentation on steppedLine values

* Add tests for new steppedLine values 'before' and 'after'

8 years agoFix pointRadius and pointHitRadius settings for radar charts
etimberg [Tue, 28 Mar 2017 23:13:09 +0000 (19:13 -0400)] 
Fix pointRadius and pointHitRadius settings for radar charts

8 years agoFixed calculation of scale min and max when dataset contains no values (#4064)
GabrielMancik [Sat, 15 Apr 2017 16:37:49 +0000 (18:37 +0200)] 
Fixed calculation of scale min and max when dataset contains no values (#4064)

* Fixed different calculation of scale min and max when dataset contains no values
* Removed trailing spaces
* Added test for correct min/max calculation
* Removed trailing spaces

8 years agoFix broken link to point to correct sample file.
Joe B. Lewis [Sat, 15 Apr 2017 12:08:55 +0000 (17:38 +0530)] 
Fix broken link to point to correct sample file.

8 years agoFix and refactor bar controllers
Simon Brunel [Sun, 19 Mar 2017 16:51:18 +0000 (17:51 +0100)] 
Fix and refactor bar controllers

Merge most of the horizontalBar controller into the bar one but also fix stack groups and bar positioning when scales are stacked or when a min and/or max tick values are explicitly defined. Note that this is a breaking change for derived controllers that rely on the following removed methods: `calculateBarBase`, `calculateBarX`, `calculateBarY`, `calculateBarWidth` and `calculateBarHeight`.

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