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
Evert Timberg
0871dd96a5
Use the scale center point for the polar area chart center
2016-06-21 19:57:13 -04:00
Evert Timberg
db8ed6a6c0
Span gaps option should be specified at the chart level
2016-06-20 14:42:09 -04:00
Simon Brunel
47912f49b4
Remove duplicated function names
2016-06-18 11:15:25 +02:00
Simon Brunel
f36123925c
Fix #2734 Cleanup unused variables
2016-06-18 11:00:11 +02:00
Evert Timberg
f3d4ee9333
Capping these to the chart bounds causes lines to bend during pan and zoom
2016-06-12 09:19:33 -04:00
Ryan M. Poe
77357e57d6
Refactor spanGaps for line graphs with sparse data ( #2721 )
...
Fix #2435 , this very slim patch (including its relevant documentation addition) adds a small option to line chart datasets (spanGaps) that allows users trying to graph sparse datasets to have lines between null entries drawn, rather than omitted.
2016-06-07 09:15:26 +02:00
zachpanz88
5fae4dd305
Change this -> me in source files
...
This change allows for smaller minified code in the final version, resulting in a smaller file size. Some files had previously used _this, but that has been changed to me to keep consistency throughout the project.
2016-06-04 14:14:16 -04:00
Evert Timberg
600f5b9ba0
Improve core and polar area
2016-05-30 21:55:58 -04:00
Evert Timberg
a5167cc42d
Reduce duplicated code in doughnut controller
2016-05-30 21:33:11 -04:00
Evert Timberg
fcff496301
Improve bubble controller minification and code duplication.
2016-05-30 19:07:31 -04:00
Evert Timberg
327b8d82f5
Allow turning off lines on a per dataset basis
2016-05-27 22:20:51 -04:00
Evert Timberg
c6eb8bf58c
Line points need always need to pivot after regardless of whether or not bezier points are updated. Bezier points should only be updated if the line tension is not 0.
2016-05-26 20:02:46 -04:00
Simon Brunel
7108f78d2f
Refactor addElements and addElementAndReset
...
Data controllers should now rarely implement addElements and addElementAndReset but instead should define dataElementType (and optionally datasetElementType). Also remove some dead code (e.g. numBars, colorForNewElement, etc.).
2016-05-22 00:25:51 +02:00
Simon Brunel
a566d16e69
Refactor scale base pixel and point calculation.
2016-05-20 20:17:28 +02:00