]>
git.ipfire.org Git - thirdparty/Chart.js.git/log
Zach Panzarino [Thu, 28 Apr 2016 22:30:19 +0000 (22:30 +0000)]
Change spaces to tabs in line tests
zachpanz88 [Thu, 28 Apr 2016 22:21:56 +0000 (18:21 -0400)]
Rewrite line chart tests to match new metadata structure
Simon Brunel [Mon, 25 Apr 2016 17:59:32 +0000 (19:59 +0200)]
Fix bar, bubble, doughnut, and polarArea tests
Also replace the 2 spaces indentation in controller.bar.tests.js by tabs to match the overall code style.
Simon Brunel [Mon, 25 Apr 2016 23:30:59 +0000 (01:30 +0200)]
New toBeCloseToPixel jasmine matcher
Because of differences between testing platforms, introduce a new matcher for (floating) pixel values comparison (currently 2 pixels tolerance).
Simon Brunel [Mon, 25 Apr 2016 17:58:12 +0000 (19:58 +0200)]
New test helpers to acquire and release charts
Since we changed the way how meta data are stores, now unit tests need to work on real Chart instances. This commit brings some helpers to inject/cleanup HTML canvas and it's wrapper into/from the DOM.
Simon Brunel [Mon, 25 Apr 2016 17:49:49 +0000 (19:49 +0200)]
Avoid meta data access in calculateCircumference
Fix access of uninitialized meta data while calculating circumference in the polar area chart by caching the number of visible elements in the update() method. Also make the calculateTotal() of the doughnut chart tolerant of uninitialized meta data.
Simon Brunel [Sat, 23 Apr 2016 08:57:29 +0000 (10:57 +0200)]
Handle data visibility per chart
New Chart.Element.hidden bool flag storing the visibility state of its associated data. Since elements belong to a specific chart, this change allows to manage data visibility per chart (e.g. when clicking the legend of some charts).
This commit also changes (fixes?) the polar chart animation when data visibility changes. Previous implementation was affected by an edge effect due to the use of NaN as hidden implementation.
Simon Brunel [Thu, 21 Apr 2016 17:12:12 +0000 (19:12 +0200)]
Handle effective dataset visibility per chart
Introduced a new meta.hidden 3 states flag (null|true|false) to be able to override dataset.hidden when interacting with the chart (i.e., true or false to ignore the dataset.hidden value). This is required in order to be able to correctly share dataset.hidden between multiple charts.
For example: 2 charts are sharing the same data and dataset.hidden is initially false: the dataset will be displayed on both charts because meta.hidden is null. If the user clicks the legend of the first chart, meta.hidden is changed to true and the dataset is only hidden on the first chart. If dataset.hidden changes, only the second chart will have the dataset visibility updated and that until the user click again on the first chart legend, switching the meta.hidden to null.
Simon Brunel [Thu, 21 Apr 2016 21:43:47 +0000 (23:43 +0200)]
Handle dataset type per chart
Dataset effective type is now stored under meta.type, allowing many charts to share the same dataset but with different types. Also move dataset.bar flag to meta.bar.
Simon Brunel [Thu, 21 Apr 2016 15:11:52 +0000 (17:11 +0200)]
Allow multiple charts sharing the same data
Meta info are now scoped by chart and moved under the dataset._meta map { chart.id -> meta }. Meta for a specific chart (and dataset) can be accessed using chart.getDatasetMeta(datasetIndex) or from the dataset controller using getMeta(). Note that helpers.uid() now generates an int (instead of a string) to make lookups in the _meta map faster.
Evert Timberg [Tue, 26 Apr 2016 01:37:05 +0000 (21:37 -0400)]
Merge pull request #2376 from DaanDeMeyer/fix_scale_default_position
Added default ("left") for position field in global scale defaults (fixes #2370)
Daan De Meyer [Tue, 26 Apr 2016 01:09:35 +0000 (03:09 +0200)]
Added default ("left") for position field in global scale defaults.
Documented scale position field in scale docs.
Evert Timberg [Tue, 26 Apr 2016 00:58:58 +0000 (20:58 -0400)]
Merge pull request #2375 from DaanDeMeyer/documentation_fixes
Removed scale option from pie/doughnut docs (not used)
Daan De Meyer [Tue, 26 Apr 2016 00:54:16 +0000 (02:54 +0200)]
Removed scale option from pie/doughnut docs (not used)
Changed usages of tension in global element options and radar chart options to lineTension
Evert Timberg [Tue, 26 Apr 2016 00:20:41 +0000 (20:20 -0400)]
Merge pull request #2372 from DaanDeMeyer/documentation-fixes
-- Replaced '-' and 'Array' with 'Object' where appropriate (fixes #2367)
Daan De Meyer [Mon, 25 Apr 2016 23:59:11 +0000 (01:59 +0200)]
-- Replaced '-' and 'Array' with 'Object' where appropriate
-- Removed unnecessary options from bar chart options
Evert Timberg [Mon, 25 Apr 2016 22:30:58 +0000 (18:30 -0400)]
Merge pull request #2368 from DaanDeMeyer/documentation-fixes
Radar chart docs fix
Daan De Meyer [Mon, 25 Apr 2016 22:28:02 +0000 (00:28 +0200)]
-- Removed linebreak added with previous fix
Daan De Meyer [Mon, 25 Apr 2016 22:09:41 +0000 (00:09 +0200)]
-- tension option should be lineTension
Evert Timberg [Mon, 25 Apr 2016 17:58:57 +0000 (13:58 -0400)]
Merge pull request #2359 from zachpanz88/patch-1
Fix link address
Evert Timberg [Mon, 25 Apr 2016 17:58:50 +0000 (13:58 -0400)]
Merge pull request #2360 from vincchan/fix-anchor
Fixes anchor link in docs
Zach Panzarino [Mon, 25 Apr 2016 17:18:25 +0000 (13:18 -0400)]
Update gulpfile.js
Vincent Chan [Mon, 25 Apr 2016 17:17:47 +0000 (19:17 +0200)]
Fixes anchor link in docs
Evert Timberg [Mon, 25 Apr 2016 15:47:36 +0000 (11:47 -0400)]
Merge pull request #2356 from zachpanz88/patch-1
Fix url address
Evert Timberg [Mon, 25 Apr 2016 15:47:11 +0000 (11:47 -0400)]
Merge pull request #2353 from vincchan/fix-caniuse-link
Fixes broken link in the docs
Zach Panzarino [Mon, 25 Apr 2016 15:13:50 +0000 (11:13 -0400)]
Update package.json
Vincent Chan [Mon, 25 Apr 2016 14:47:36 +0000 (16:47 +0200)]
fixes #2351
Jake [Mon, 25 Apr 2016 13:22:39 +0000 (09:22 -0400)]
Merge pull request #2352 from zachpanz88/patch-1
Fix old broken links and update for new repo
Zach Panzarino [Mon, 25 Apr 2016 13:21:39 +0000 (09:21 -0400)]
Update README.md
Zach Panzarino [Mon, 25 Apr 2016 13:18:49 +0000 (09:18 -0400)]
Fix old broken links and update for new repo
William Entriken [Mon, 25 Apr 2016 02:12:15 +0000 (22:12 -0400)]
Update README.md
Evert Timberg [Sun, 24 Apr 2016 23:26:55 +0000 (19:26 -0400)]
Update coverage badge for switched location
Evert Timberg [Sun, 24 Apr 2016 23:24:53 +0000 (19:24 -0400)]
New built files
Evert Timberg [Sun, 24 Apr 2016 23:02:33 +0000 (19:02 -0400)]
Merge pull request #2350 from zachpanz88/patch-1
Update build status link in README
Zach Panzarino [Sun, 24 Apr 2016 23:00:11 +0000 (19:00 -0400)]
Update build status link in README
Evert Timberg [Sun, 24 Apr 2016 21:37:46 +0000 (17:37 -0400)]
Merge pull request #2349 from nnnick/readme-2.0
Fix readme to post to docs website
Nick Downie [Sun, 24 Apr 2016 21:33:25 +0000 (22:33 +0100)]
Update link to post to 2.0 docs
Evert Timberg [Sun, 24 Apr 2016 21:28:57 +0000 (17:28 -0400)]
Merge pull request #2348 from nnnick/doc-cleanup
Add tables for each chart type listing options that can go in each dataset
Evert Timberg [Sun, 24 Apr 2016 21:12:29 +0000 (17:12 -0400)]
Remove unnecessary partial sentence
Evert Timberg [Sun, 24 Apr 2016 21:07:41 +0000 (17:07 -0400)]
Doc updates for other chart types
Evert Timberg [Sun, 24 Apr 2016 20:30:19 +0000 (16:30 -0400)]
Point styles
Evert Timberg [Sun, 24 Apr 2016 20:28:47 +0000 (16:28 -0400)]
Line chart docs
Evert Timberg [Sun, 24 Apr 2016 20:28:10 +0000 (16:28 -0400)]
Mention what type of color options are supported
Evert Timberg [Sun, 24 Apr 2016 13:40:34 +0000 (09:40 -0400)]
Merge pull request #2343 from nnnick/fix/2152
Only update the size of boxes that are not full width
Evert Timberg [Sun, 24 Apr 2016 13:23:40 +0000 (09:23 -0400)]
Merge pull request #2345 from nnnick/fix/2176
Only use valid label moments
Evert Timberg [Sun, 24 Apr 2016 13:14:21 +0000 (09:14 -0400)]
Only use valid label moments
Evert Timberg [Sun, 24 Apr 2016 12:20:36 +0000 (08:20 -0400)]
Only update the size of boxes that are not full width
Evert Timberg [Sat, 23 Apr 2016 22:27:35 +0000 (18:27 -0400)]
Merge pull request #2340 from DaanDeMeyer/documentation-fixes
Documentation fixes
Daan De Meyer [Sat, 23 Apr 2016 21:54:40 +0000 (23:54 +0200)]
Changed occurrences of "charts.defaults.Bar" to "charts.defaults.bar"
Daan De Meyer [Sat, 23 Apr 2016 21:52:26 +0000 (23:52 +0200)]
Changed occurrence of "charts.defaults.Line" to "charts.defaults.line"
Evert Timberg [Sat, 23 Apr 2016 21:45:16 +0000 (17:45 -0400)]
Merge pull request #2339 from nnnick/docs/2.0-updates
Docs/2.0 updates
Evert Timberg [Sat, 23 Apr 2016 21:08:09 +0000 (17:08 -0400)]
Merge pull request #2338 from DaanDeMeyer/documentation-fixes
Documentation fixes
Daan De Meyer [Sat, 23 Apr 2016 20:55:16 +0000 (22:55 +0200)]
Changed two occurrences of percentageInnerCutout to cutoutPercentage which is the actual field name in the doughnut/pie options
Daan De Meyer [Sat, 23 Apr 2016 20:54:13 +0000 (22:54 +0200)]
Added dots to labels options in global.defaults.legend .
Evert Timberg [Sat, 23 Apr 2016 14:52:02 +0000 (10:52 -0400)]
Fix adding data to pie, doughnut, and polar area charts
Evert Timberg [Sat, 23 Apr 2016 14:45:23 +0000 (10:45 -0400)]
Fix #2324
Evert Timberg [Sat, 23 Apr 2016 13:46:58 +0000 (09:46 -0400)]
Merge pull request #2336 from nnnick/docs/2.0-updates
Documentation tweaks for 2.0 relase
Nick Downie [Sat, 23 Apr 2016 13:34:57 +0000 (14:34 +0100)]
Update browser support spec for 2.0
Nick Downie [Sat, 23 Apr 2016 13:25:58 +0000 (14:25 +0100)]
Update colours + example values in docs
Evert Timberg [Sat, 23 Apr 2016 02:52:34 +0000 (22:52 -0400)]
Merge pull request #2314 from jachstet-sea/consistent_option_names_pt1
Consistent option names pt1
Evert Timberg [Sat, 23 Apr 2016 01:04:55 +0000 (21:04 -0400)]
Add in a beforeRender plugin event. Makes it easier to handle things that need to happen once at the start of animation but not on every frame
Evert Timberg [Sat, 23 Apr 2016 00:54:56 +0000 (20:54 -0400)]
Merge pull request #2333 from nnnick/fix/2023
Fix/2023
Evert Timberg [Sat, 23 Apr 2016 00:49:44 +0000 (20:49 -0400)]
Remove commented code
Evert Timberg [Sat, 23 Apr 2016 00:48:41 +0000 (20:48 -0400)]
Support radar tooltip mode 'label'
Jake [Fri, 22 Apr 2016 15:07:23 +0000 (11:07 -0400)]
Merge pull request #2329 from zachpanz88/build-fix
Fix build to include comment at top of file
Zach Panzarino [Fri, 22 Apr 2016 15:03:52 +0000 (15:03 +0000)]
Fix build to include comment at top of file
Evert Timberg [Fri, 22 Apr 2016 14:08:18 +0000 (10:08 -0400)]
Merge pull request #2326 from johnw86/master
Scaled bar width fix
John Walker [Fri, 22 Apr 2016 13:59:28 +0000 (14:59 +0100)]
Scaled bar width fix
Add logic for calculating bar width when ticks are less than the data labels
Evert Timberg [Thu, 21 Apr 2016 15:47:20 +0000 (11:47 -0400)]
Merge pull request #2318 from Janpot/destroy-typo
Fix typo in plugin 'destroy'
Jan Potoms [Thu, 21 Apr 2016 15:25:37 +0000 (17:25 +0200)]
Fix typo in plugin 'destroy'
Jannis Achstetter [Thu, 21 Apr 2016 14:06:42 +0000 (16:06 +0200)]
Update the docs
Jannis Achstetter [Thu, 21 Apr 2016 13:58:58 +0000 (15:58 +0200)]
Add an example showcasing the different point size options
Jannis Achstetter [Thu, 21 Apr 2016 13:40:19 +0000 (15:40 +0200)]
Rename dataset-specific options "radius" to "pointRadius" and "hitRadius" to "pointHitRadius", adding compatibility-clauses to support the old names as well
Jannis Achstetter [Thu, 21 Apr 2016 13:39:19 +0000 (15:39 +0200)]
Add testcases for the consistent dataset-specific option names "pointRadius" and "pointHitRadius"
Evert Timberg [Thu, 21 Apr 2016 11:50:20 +0000 (07:50 -0400)]
Fix build and update to latest node js version.
Jannis Achstetter [Thu, 21 Apr 2016 07:23:48 +0000 (09:23 +0200)]
Update the docs
Jannis Achstetter [Thu, 21 Apr 2016 07:30:17 +0000 (09:30 +0200)]
Add the option to an example (there was no other example overwriting tension for a specific dataset)
Jannis Achstetter [Thu, 21 Apr 2016 07:12:03 +0000 (09:12 +0200)]
Add a testcase for the new option name "lineTension"
Jannis Achstetter [Wed, 20 Apr 2016 15:07:56 +0000 (17:07 +0200)]
Rename dataset-specific option "tension" to "lineTension" and add a compatibility-clause to support the old name as well
Jannis Achstetter [Wed, 20 Apr 2016 14:59:31 +0000 (16:59 +0200)]
"tension" is a property of the line, not of the point
Evert Timberg [Wed, 20 Apr 2016 23:47:24 +0000 (19:47 -0400)]
Merge pull request #2313 from zachpanz88/build-fix
Fix case-sensitive error in gulpfile that caused builds to fail on linux
Zach Panzarino [Wed, 20 Apr 2016 23:42:07 +0000 (23:42 +0000)]
Fix case-sensitive error in gulpfile
Evert Timberg [Wed, 20 Apr 2016 14:36:14 +0000 (10:36 -0400)]
Merge pull request #2310 from jachstet-sea/fix_Test
Fix test/defaultConfig.tests.js after PR #2308
Jannis Achstetter [Wed, 20 Apr 2016 14:02:05 +0000 (16:02 +0200)]
Fix test/defaultConfig.tests.js after PR #2308
Evert Timberg [Wed, 20 Apr 2016 13:26:40 +0000 (09:26 -0400)]
Merge pull request #2308 from pwavg/patch-1
Fixed closing span position
Peter [Wed, 20 Apr 2016 11:55:58 +0000 (13:55 +0200)]
Fixed closing span position
In the pie/doughnut legendCallback function the <span> is not closed immediately so that the text is written in the <span> instead of the <li>
Evert Timberg [Tue, 19 Apr 2016 15:13:53 +0000 (11:13 -0400)]
Merge pull request #2300 from HuwSy/patch-1
Fix tooltip example caretHeight to caretSize
Huw [Tue, 19 Apr 2016 14:59:13 +0000 (15:59 +0100)]
Fix tooltip example caretHeight to caretSize
Evert Timberg [Mon, 18 Apr 2016 23:43:23 +0000 (19:43 -0400)]
Merge pull request #2293 from nnnick/docs/pie-doughnut-code-block
Split Doughnut/Pie example usage into two code blocks
Nick Downie [Mon, 18 Apr 2016 21:30:10 +0000 (22:30 +0100)]
Split doughnut/pie example into two code block
Odd change - but makes tempting the documentation a lot simpler
Evert Timberg [Mon, 18 Apr 2016 16:43:01 +0000 (12:43 -0400)]
Merge pull request #2289 from tKammy/fix_typo
Fix typo
Kammy [Mon, 18 Apr 2016 15:31:19 +0000 (00:31 +0900)]
fix typo
Evert Timberg [Sun, 17 Apr 2016 22:55:20 +0000 (18:55 -0400)]
Plugin event in destroy
Evert Timberg [Sun, 17 Apr 2016 18:40:18 +0000 (14:40 -0400)]
Built files
Evert Timberg [Sun, 17 Apr 2016 16:48:05 +0000 (12:48 -0400)]
Merge pull request #2283 from nnnick/feature/plug-in-support
Adds support for plugins
Evert Timberg [Sun, 17 Apr 2016 16:39:09 +0000 (12:39 -0400)]
Update doc version #
Evert Timberg [Sun, 17 Apr 2016 16:25:58 +0000 (12:25 -0400)]
Documentation for creating plugins
Evert Timberg [Sun, 17 Apr 2016 16:25:47 +0000 (12:25 -0400)]
Use apply instead of call so that the animation easing can be passed to the draw callbacks
Evert Timberg [Sun, 17 Apr 2016 16:02:42 +0000 (12:02 -0400)]
Initial plugin calls
Evert Timberg [Sun, 17 Apr 2016 16:02:33 +0000 (12:02 -0400)]
Plugin system + tests