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
32db92c7e1
Merge pull request #2314 from jachstet-sea/consistent_option_names_pt1
...
Consistent option names pt1
2016-04-22 22:52:34 -04:00
John Walker
87966a1b58
Scaled bar width fix
...
Add logic for calculating bar width when ticks are less than the data labels
2016-04-22 14:59:28 +01:00
Jannis Achstetter
0e61361e74
Rename dataset-specific options "radius" to "pointRadius" and "hitRadius" to "pointHitRadius", adding compatibility-clauses to support the old names as well
2016-04-21 15:40:19 +02:00
Jannis Achstetter
bc0f0f0fa7
Rename dataset-specific option "tension" to "lineTension" and add a compatibility-clause to support the old name as well
2016-04-21 09:40:45 +02:00
Jannis Achstetter
b0c1e9cb69
"tension" is a property of the line, not of the point
2016-04-21 09:17:51 +02:00
Peter
6c50cb0fc0
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>
2016-04-20 13:55:58 +02:00
Evert Timberg
0e33b6b556
Update doughnut and polar area legend callbacks to handle when the background color is not set.
2016-04-17 08:38:46 -04:00
Michael de Hoog
241f085533
Fix for doughnut rotation = 0, added unit test for doughnut rotation/circumference properties
2016-04-17 09:16:42 +10:00
Michael de Hoog
d3a29967e2
Added rotation and circumference properties to doughnut/pie charts
2016-04-17 00:23:48 +10:00
Ivan Samoylenko
81e1448836
Added 'borderSkipped' parameter to Rectangle.
2016-03-13 18:58:36 +03:00
Evert Timberg
3d6b47b0d5
Fix legend generation when no datasets
2016-02-28 17:51:06 -05:00
Evert Timberg
04e6926961
Fix bar chart and doughnut chart animations
2016-02-27 12:32:20 -05:00
Tanner Linsley
ac5be9bde2
Proper line and bar stacking order
...
Stacked line and bar charts now behave predictably with the first
dataset on the bottom stacked upwards.
2016-02-17 12:41:32 -07:00
etimberg
01b88f19df
Clean up code climate style issues and formatting.
2016-02-14 17:06:00 -05:00
etimberg
f6951816a0
Improve joshing reporting. Added a JSHint config file.
...
Fixed JSHint warnings.
2016-02-13 20:12:26 -05:00
Tanner Linsley
813d18bd78
Passing All Tests, Updated Dependencies
2016-02-11 23:16:43 -07:00
Tanner Linsley
f2780bb825
Browserify for easier UMD consumptions and vanilla builds
2016-02-11 20:30:53 -07:00
Evert Timberg
bfd6f5f78e
Radar controller tests
2016-01-27 18:00:32 -05:00
Evert Timberg
d0a0d57fe2
Initial polar area tests
2016-01-24 13:29:13 -05:00
Evert Timberg
6aa2933ec5
Bubble controller tests
2016-01-24 10:59:19 -05:00
Evert Timberg
d0b67c603b
Line and bar test updates
2016-01-24 10:58:30 -05:00
Mathias Küsel
655c1152eb
Adds different point styles
2016-01-16 18:07:57 +01:00
Mathias Küsel
fa7baa1627
Do not calculate control points if we want straight lines
2016-01-15 13:05:51 +01:00
Mathias Küsel
19613f531c
Just assign instead of extend
2016-01-15 13:05:23 +01:00
Mathias Küsel
25d6c2f064
Removes unused context bindings
2016-01-14 18:17:14 +01:00
Mathias Küsel
24e4a924c4
Add option to disable line drawing
2016-01-14 13:39:06 +01:00
Evert Timberg
0e393a3122
Update controllers
2016-01-09 09:50:56 -05:00
etimberg
97cc714c94
Don't draw bars that represent data that is not valid (null, undefined, or NaN)
2015-12-31 19:32:03 -05:00
Evert Timberg
283f1d7387
Update check to new system + fix tests
2015-12-17 09:31:01 -05:00
etimberg
8efa577ef5
Bar dataset controller needs a better way to know which datasets are bars since users could make their own bar types.
2015-12-15 20:13:37 -05:00
Evert Timberg
139cbe1c64
All dataset controllers now inherit from a common base class Chart.DatasetController. This makes writing external controllers much easier
2015-12-13 14:35:40 -05:00
Evert Timberg
39e5daaca8
Better property picking. Added a helper function so we don't have to write a complicated ternary everywhere. Updated tests accordingly.
2015-12-12 08:52:06 -05:00
Evert Timberg
819f865723
Merge branch 'v2.0-dev' into v2.0-legend
...
Conflicts:
src/controllers/controller.doughnut.js
2015-12-07 22:10:38 -05:00
Evert Timberg
60920cd75a
Polar area legend toggles data
2015-12-07 21:42:58 -05:00
Evert Timberg
59b7927994
Toggling of doughnut items now works
2015-12-07 21:23:20 -05:00
Evert Timberg
8befbbe8f0
Use config onClick function to toggle datasets for bars/lines/radar charts.
2015-12-07 20:36:44 -05:00
Evert Timberg
b0f69a1092
Generate nice legend boxes for all current chart types
2015-12-07 19:11:54 -05:00
Evert Timberg
bffbaf6b37
Generate label strings using an option function. This allows new chart types to override
2015-12-06 12:53:45 -05:00
Evert Timberg
eaf183352c
Polar are controller needs a similar update to the doughnut controller
2015-12-06 10:19:09 -05:00
Evert Timberg
28fc6841f3
Add tooltipFormat option to time scale options.
...
Fix bars when displayed on a time scale.
Updated sample files.
2015-12-05 19:33:33 -05:00
Evert Timberg
2f1006c6de
Make sure we always have a valid end angle when reseting the model. Previously this was undefined and interpreted as 0 in the animation code.
2015-12-05 09:39:25 -05:00
Evert Timberg
38afefde25
Doughnut controller needs to obey chart area size
2015-12-04 19:22:48 -05:00
Tanner Linsley
937d866bd3
Merge pull request #1647 from nnnick/fix/1324
...
Fall back to line settings for points if necessary
2015-11-16 16:09:53 -07:00
Evert Timberg
f6ac7d9369
Typo
2015-11-13 22:42:42 -05:00
Evert Timberg
108c4fcd56
Simplify code for capping bezier control points. Cap the X direction as well.
2015-11-13 22:15:23 -05:00
Evert Timberg
f85ffbc09c
Use the dataset backgroundColor, borderWidth, and borderColor, if specified, for points. Added tests for this case.
2015-11-13 11:21:44 -05:00
Evert Timberg
2c04a816d7
Use correct option to detect stacked mode along x axis.
2015-11-01 20:26:58 -05:00
Tanner Linsley
334ba44e95
Allow line controller to calculate stacked values
2015-10-31 22:45:25 -06:00
Tanner Linsley
be50c63e72
commas to pass jshint
2015-10-31 16:09:11 -06:00