SAiTO TOSHiKi
5a24bfa500
Implement clipping ( #3658 )
...
Implements clipping of items outside the chart area. Resolves #3506 #3491 #2873
2016-12-03 16:09:45 -05:00
Toshiki Saito
bdcdbc2abf
Fixed miscalculation of Bar width.
...
for Bar and horizontalBar type,
include stacked scale.
issue #3589
2016-12-02 07:57:59 -05:00
etimberg
f7d60c2606
Allow line chart to use pointBorderWidth of 0 correctly
2016-11-17 21:05:47 -05:00
etimberg
339265d21e
use correct option for setting tension on radar charts
2016-11-14 07:27:01 -05:00
Josh Soref
67934920be
Spelling fixes ( #3522 )
...
Including: actually, aspect, bottom, changes, characters, datasets, divisible, downward, guidelines, instance, instances, interrupted, item, javascript, label, lifecycle, lines, plugins, manually, milliseconds, nearest, occurring, position, predefined, recalculate, tooltip, those
2016-10-27 21:18:31 +02:00
etimberg
3365ba6d29
Bar chart performance improvements
2016-10-14 06:20:08 -05:00
Evert Timberg
4d2772e313
Fix bubble chart tooltip callback to use correct labels ( #3421 )
...
Fix bubble chart tooltip callback to use correct label parsed from scales. Fixes #3029
2016-10-06 08:54:50 -04:00
Evert Timberg
03735563f4
Improve Tooltip and Hover Interaction ( #3400 )
...
Refactored interaction modes to use lookup functions in Chart.Interaction.modes and added new modes for 'point', 'index', 'nearest', 'x', and 'y'
2016-10-03 16:05:21 -04:00
Simon Brunel
1484520692
Better animation when adding or removing data
...
In order to simulate real-time chart updates (i.e. horizontal animation), it's necessary to distinguish a removed or added value from a simple update. The dataset controller now hooks array methods that alter the data array length to synchronize metadata accordingly. Also remove the duplicate calls of updateBezierControlPoints() for line and radar charts.
2016-10-03 16:01:38 -04:00
Evert Timberg
d3d9573af5
Fixes HTML legend string for polar area charts to match doughnut charts. ( #3361 )
...
Fixes HTML legend string for polar area charts to match doughnut charts
2016-09-25 08:30:39 -04:00
Simon Brunel
d407da4e36
Merge pull request #3325 from chartjs/fix/3269
...
Improve multiline labeling for tooltips in doughnut charts
2016-09-24 22:31:29 +02:00
Evert Timberg
c3d7a3328d
In the doughnut chart, specifically handle multiline strings.
2016-09-24 22:25:04 +02:00
Simon Brunel
d610987cfb
Fix radar default aspect ratio and samples
...
Now that the aspect ratio is correctly handled, fix samples for charts with aspect ratio of 1 which was vertically too large. Also fix the default aspect ratio for radar charts which wasn't applied when creating a chart directly using new Chart(ctx, { type: 'radar' }).
2016-09-23 17:47:36 +02:00
Zach Panzarino
051f5b015b
Fix bug with pie/doughnut chart legends
...
Fixes a rendering issue when there are multiple datasets on a pie chart and they do not all contain the same number of data in their datasets
Fixes #3309
2016-09-16 01:29:01 +00:00
Zach Panzarino
dd8fa78b45
Fix more style errors in controllers, elements, and scales
2016-09-14 22:34:41 +00:00
Zach Panzarino
2d2f475a7a
First round of eslint fixes
2016-09-14 18:05:19 +00:00
Simon Brunel
7c93255b16
Enforce curly braces for single statement block
...
curly: [error, all] (http://eslint.org/docs/rules/curly )
2016-09-03 18:42:28 +02:00
Simon Brunel
3d40774c7d
Enforce consistent tab indentation
...
indent: [error, tab] (http://eslint.org/docs/rules/indent )
2016-09-03 18:42:26 +02:00
Simon Brunel
69ab0d3e23
Use gulp-eslint instead of gulp-jshint
...
Change the linter in gulp tasks to be consistent with Code Climate results which are based on ESLint using .eslintrc options. However, defaults Code Climate rules are too strict, so turn as warnings the 'complexity' and 'max-statements' rules (other errors has been fixed). Note that the Gulp task name has been changed for `gulp lint`.
2016-09-03 18:42:22 +02:00
Ekaterina Dontsova
4a4dccd6c1
Fix #3044 Line chart single data point centering ( #3166 )
...
In line charts, when there is only one label and data point, both are now horizontally centered.
2016-08-25 18:52:12 +02:00
Evert Timberg
89531c6b93
Merge pull request #3112 from MatthieuRivaud/MonotoneCubicInterpolation
...
Monotone cubic interpolation
2016-08-22 17:53:31 -04:00
Zach Panzarino
abfbdd5f31
Remove unneeded trailing commas
2016-08-10 01:35:34 +00:00
MatthieuRivaud
3869dd110a
Fix spanGaps probing in updateBezierControlPoints
2016-08-09 09:28:09 +02:00
MatthieuRivaud
d06fbc772f
- Added dataset option |cubicInterpolationMode| to allow for curves with different interpolation modes on the same graph (updated doc accordingly)
...
- Added new sample file to demonstrate the monotone cubic interpolation mode
- Fixed a typo in a comment in updateBezierControlPoints
2016-08-08 15:35:46 +02:00
MatthieuRivaud
2409908027
Implement monotone cubic interpolation (see issue #3086 ).
2016-08-08 14:01:30 +02:00
Evert Timberg
51518a7149
Handle possibility of a undefined arc element in the doughnut chart
2016-07-30 09:41:35 -04:00
Evert Timberg
f60344dfdb
Fix line controller stacking with multiple axes and add a test
2016-07-28 18:10:07 -04:00
Evert Timberg
2016630daa
Refactoring of the line drawing function to make spanGaps work correctly. Added a lot more test conditions to the line element tests. Ensured that the line controller correctly calculated bezier control points when there was a point to be skipped
2016-07-24 18:12:36 -04:00
Evert Timberg
e94d3c0730
Merge pull request #2947 from chartjs/fix/524
...
Add polar area start angle setting
2016-07-19 18:56:09 -04:00
Evert Timberg
7930137afa
Merge pull request #2925 from Joshuabaker2/master
...
Ability to manually set bar chart bar width
2016-07-16 14:46:59 -04:00
Evert Timberg
bfa37e7d68
Merge pull request #2926 from chartjs/fix/2915
...
Fix bar and line controllers to convert strings to numbers when stacking
2016-07-13 18:22:11 -04:00
Evert Timberg
3dd15f64d2
Merge pull request #2918 from chartjs/fix/2916
...
Fix time point lines. Improved logic for using the value in the time …
2016-07-13 18:21:57 -04:00
Josh Baker
191c280387
Added support for manually specifying bar thickness in bar charts
2016-07-12 17:31:50 -07:00
Evert Timberg
49c4169010
Bring back capping of bezier curve points and have an option to disable it ( #2948 )
2016-07-09 15:24:41 -06:00
Evert Timberg
72813d5112
Merge branch 'amlethojalen-master'
2016-07-09 10:02:08 -04:00
Evert Timberg
609df5fb16
Merge pull request #2885 from neilmacintyre/master
...
cached index and length
2016-07-09 09:12:57 -04:00
Evert Timberg
8226f3432b
Fix JSHint warnings and remove commented code
2016-07-09 09:08:41 -04:00
Evert Timberg
a452094f5d
Add polar area start angle setting
2016-07-09 09:05:02 -04:00
Evert Timberg
7ca5f91b10
Fix bar and line controllers to convert strings to numbers when considering the values for stacking the chart. Simplified the base calculation for the bar charts and added test coverage to ensure that strings will work correctly.
2016-07-06 18:22:42 -04:00
amlethojalen
68728fc9a7
Added ability to render a line chart as a stepped line chart.
...
Added option.elements.line.stepped
Added dataset.steppedLine
Added Sample, and updated documentation.
2016-07-06 11:13:12 +10:00
Evert Timberg
758698c354
Fix time point lines. Improved logic for using the value in the time scale. Improve value passing in the line and bubble controllers/
2016-07-05 20:52:17 -04:00
Evert Timberg
3cdd66ca58
Merge pull request #2867 from mtanda/fix_stacked_scatter_line_chart
...
Fix to work stacked scatter line chart (fixes #2878 )
2016-07-04 22:57:40 -04:00
Neil Macintyre
8bd0c56b84
cached index and length
2016-06-30 18:10:11 -04:00
Mitsuhiro Tanda
2bf2be7a9c
fix stacked scatter line chart
2016-06-30 22:28:21 +09:00
Evert Timberg
f2bbe32150
Merge pull request #2865 from nmac143/master
...
Pie chart borders truncated #2844
2016-06-29 20:30:02 -04:00
nmac143
426466d051
Fixed truncation of pie chart borders
2016-06-29 19:39:10 -04:00
Evert Timberg
c2e37ce8e2
Polar area graph scale should start at 0 by default
2016-06-27 22:25:38 -04:00
Evert Timberg
be32a4c6f0
Merge pull request #2823 from chartjs/fix/2708
...
Use the scale center point for the polar area chart center
2016-06-22 22:07:53 -04:00
Evert Timberg
3cf1cfa3de
Fix JSHint warning
2016-06-22 21:48:49 -04:00
Evert Timberg
3280003f86
Merge pull request #2811 from chartjs/fix/span-gaps-global
...
Span gaps option should be specified at the chart level
2016-06-22 21:46:12 -04:00