Simon Brunel
29115c9d2c
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.
2016-04-26 12:46:29 +02:00
Simon Brunel
82b1e5cd99
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.
2016-04-26 12:46:27 +02:00
Simon Brunel
f3457c9941
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.
2016-04-26 12:46:26 +02:00
Simon Brunel
51aa9b4a27
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.
2016-04-26 12:46:24 +02:00
Evert Timberg
b615fe8c35
Merge pull request #2376 from DaanDeMeyer/fix_scale_default_position
...
Added default ("left") for position field in global scale defaults (fixes #2370 )
2016-04-25 21:37:05 -04:00
Daan De Meyer
73493e2c9e
Added default ("left") for position field in global scale defaults.
...
Documented scale position field in scale docs.
2016-04-26 03:09:35 +02:00
Evert Timberg
61b30f8edf
Merge pull request #2375 from DaanDeMeyer/documentation_fixes
...
Removed scale option from pie/doughnut docs (not used)
2016-04-25 20:58:58 -04:00
Daan De Meyer
bb29401a0e
Removed scale option from pie/doughnut docs (not used)
...
Changed usages of tension in global element options and radar chart options to lineTension
2016-04-26 02:54:16 +02:00
Evert Timberg
27030b7cae
Merge pull request #2372 from DaanDeMeyer/documentation-fixes
...
-- Replaced '-' and 'Array' with 'Object' where appropriate (fixes #2367 )
2016-04-25 20:20:41 -04:00
Daan De Meyer
768a3d1e9c
-- Replaced '-' and 'Array' with 'Object' where appropriate
...
-- Removed unnecessary options from bar chart options
2016-04-26 01:59:11 +02:00
Tanner Linsley
da90e2f670
Time scale now compensates for rounded tick units
...
Closes #2277
2016-04-25 17:48:21 -05:00
Evert Timberg
b28f8d2fb1
Merge pull request #2368 from DaanDeMeyer/documentation-fixes
...
Radar chart docs fix
2016-04-25 18:30:58 -04:00
Daan De Meyer
61cef17f11
-- Removed linebreak added with previous fix
2016-04-26 00:28:02 +02:00
Daan De Meyer
b9eef5453a
-- tension option should be lineTension
2016-04-26 00:09:41 +02:00
Evert Timberg
6ac01e0b5f
Merge pull request #2359 from zachpanz88/patch-1
...
Fix link address
2016-04-25 13:58:57 -04:00
Evert Timberg
129ca591e6
Merge pull request #2360 from vincchan/fix-anchor
...
Fixes anchor link in docs
2016-04-25 13:58:50 -04:00
Zach Panzarino
0420965b49
Update gulpfile.js
2016-04-25 13:18:25 -04:00
Vincent Chan
d0b5bb941d
Fixes anchor link in docs
2016-04-25 19:17:47 +02:00
Evert Timberg
7916b84826
Merge pull request #2356 from zachpanz88/patch-1
...
Fix url address
2016-04-25 11:47:36 -04:00
Evert Timberg
f801eec3cd
Merge pull request #2353 from vincchan/fix-caniuse-link
...
Fixes broken link in the docs
2016-04-25 11:47:11 -04:00
Zach Panzarino
8d6ea1fde9
Update package.json
2016-04-25 11:13:50 -04:00
Vincent Chan
e6e03c29a3
fixes #2351
2016-04-25 16:47:36 +02:00
Jake
c041ee2c7a
Merge pull request #2352 from zachpanz88/patch-1
...
Fix old broken links and update for new repo
2016-04-25 09:22:39 -04:00
Zach Panzarino
337ddcc740
Update README.md
2016-04-25 09:21:39 -04:00
Zach Panzarino
af17a4460e
Fix old broken links and update for new repo
2016-04-25 09:18:49 -04:00
William Entriken
92ab2546e8
Update README.md
2016-04-24 22:12:15 -04:00
Evert Timberg
36b9ee7e9e
Update coverage badge for switched location
2016-04-24 19:26:55 -04:00
Evert Timberg
c382aeaaa5
New built files
2016-04-24 19:24:53 -04:00
Evert Timberg
a195d1646a
Merge pull request #2350 from zachpanz88/patch-1
...
Update build status link in README
2016-04-24 19:02:33 -04:00
Zach Panzarino
847fb65bd7
Update build status link in README
2016-04-24 19:00:11 -04:00
Evert Timberg
300c46a3a3
Merge pull request #2349 from nnnick/readme-2.0
...
Fix readme to post to docs website
2016-04-24 17:37:46 -04:00
Nick Downie
cb601b211c
Update link to post to 2.0 docs
2016-04-24 22:33:25 +01:00
Evert Timberg
91e24ac893
Merge pull request #2348 from nnnick/doc-cleanup
...
Add tables for each chart type listing options that can go in each dataset
2016-04-24 17:28:57 -04:00
Evert Timberg
a417e78b80
Remove unnecessary partial sentence
2016-04-24 17:12:29 -04:00
Evert Timberg
57b4325709
Doc updates for other chart types
2016-04-24 17:07:41 -04:00
Evert Timberg
74199235d3
Point styles
2016-04-24 16:30:19 -04:00
Evert Timberg
1ce1f0c41a
Line chart docs
2016-04-24 16:28:47 -04:00
Evert Timberg
e70a1c85cf
Mention what type of color options are supported
2016-04-24 16:28:10 -04:00
Evert Timberg
ae33b1ee54
Merge pull request #2343 from nnnick/fix/2152
...
Only update the size of boxes that are not full width
2016-04-24 09:40:34 -04:00
Evert Timberg
83654fda3d
Merge pull request #2345 from nnnick/fix/2176
...
Only use valid label moments
2016-04-24 09:23:40 -04:00
Evert Timberg
bbd4364f64
Only use valid label moments
2016-04-24 09:14:21 -04:00
Evert Timberg
38812cd3c4
Only update the size of boxes that are not full width
2016-04-24 08:20:36 -04:00
Evert Timberg
f613ad5c0f
Comment out tests since they seem like a moment issue
2016-04-23 20:08:00 -04:00
Evert Timberg
b4a06f6e34
Merge branch 'master' into feature/pan-support
...
Conflicts:
src/core/core.controller.js
2016-04-23 20:06:18 -04:00
Evert Timberg
47552152c3
Remove file and fix jshint error
2016-04-23 19:39:37 -04:00
Evert Timberg
c1d7725ae0
Merge pull request #2340 from DaanDeMeyer/documentation-fixes
...
Documentation fixes
2016-04-23 18:27:35 -04:00
Daan De Meyer
d1c3612a50
Changed occurrences of "charts.defaults.Bar" to "charts.defaults.bar"
2016-04-23 23:54:40 +02:00
Daan De Meyer
938ecdfc97
Changed occurrence of "charts.defaults.Line" to "charts.defaults.line"
2016-04-23 23:52:26 +02:00
Evert Timberg
b2e162f2d7
Merge pull request #2339 from nnnick/docs/2.0-updates
...
Docs/2.0 updates
2016-04-23 17:45:16 -04:00
Evert Timberg
795f154c39
Merge pull request #2338 from DaanDeMeyer/documentation-fixes
...
Documentation fixes
2016-04-23 17:08:09 -04:00