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
8afac7bd3c
Merge pull request #3191 from chartjs/fix/2994
...
Fix issues with repeated labels in the category scale and added a tes…
2016-08-23 17:09:31 -04:00
etimberg
904f19fb7e
When drawTicks is false, we should not include their size in the size of the axis
2016-08-22 20:09:09 -04:00
Evert Timberg
1749d90faf
Fix issues with repeated labels in the category scale and added a test to cover this case.
2016-08-22 18:03:56 -04:00
Evert Timberg
89531c6b93
Merge pull request #3112 from MatthieuRivaud/MonotoneCubicInterpolation
...
Monotone cubic interpolation
2016-08-22 17:53:31 -04:00
Karthik Iyengar
349a8a33ea
Added borderDash support for grid lines ( #3136 ) ( #3142 )
...
* Added borderDash support for grid lines (#3136 )
* Save and restore context to prevent border dash being applied to other elements
* Adds support for borderDashOffset, checks for setLineDash (IE9/IE10)
* Fixes tests
2016-08-12 12:31:54 -04:00
Ekaterina Dontsova
31197978b7
Fix #2966 : 0 values in logarithmic scale for line and vertical bar charts ( #3016 )
2016-08-11 21:40:25 +02:00
MatthieuRivaud
566ede1ecd
Fixed splineCurveMonotone unit test (for real this time)
2016-08-08 17:02:58 +02:00
MatthieuRivaud
ef66bf5e6d
Fixed splineCurveMonotone unit test
2016-08-08 16:33:32 +02:00
MatthieuRivaud
2409908027
Implement monotone cubic interpolation (see issue #3086 ).
2016-08-08 14:01:30 +02:00
Evert Timberg
d47ef17736
Handle the case where all points are skipped in a line
2016-07-30 14:46:28 -04:00
Evert Timberg
eb6124fea8
Fix 2 line drawing issues and add new tests for these cases
2016-07-30 12:55:42 -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
7ebc533cdc
Merge pull request #3028 from chartjs/fix/span-gaps
...
Refactoring of the line drawing function to make `spanGaps` work correctly
2016-07-28 18:02:56 -04:00
Ian Ker-Seymer
e4dd158b24
Fix out of bounds index access in getLabelMoment
...
Previously, calling getLabelMoment with an out of bound index would cause an
error such as this:
```
Uncaught TypeError: Cannot read property 'null' of undefined
```
This happens because there is not always guaranteed to be a labelMoment on
at the current datasetIndex.
One example of this is practice comes from a this function call:
```js
// since the are not always guaranteed to be at least two labelMoments
// \ / this index can be out of bounds
// |
var tickWidth = me.getPixelForTick(1) - me.getPixelForTick(0) - 6;
```
This patch simply ensures that the `labelMoments` for the `datasetIndex` are
defined before accessing properties on it.
2016-07-26 14:45:05 -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
unknown
1a63113bc0
changed option name for radar chart from offsetAngle to startAngle. Added test to make sure correct angles are computed for all points in the radar chart (with and without startAngle option set).
2016-07-17 23:11:30 -06: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
b6686f00f4
Non numeric y ( #2849 )
...
* Category scale can now read from the xLabels and yLabels properties.
* Update docs with section regarding the data object.
* Add sample file with non numeric Y and fix animations
2016-07-09 09:22:25 -06: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
Evert Timberg
44a9866bd8
Merge pull request #2870 from chartjs/fix/2802
...
Consider left and top when determining value from pixel in category s…
2016-07-06 17:53:50 -04:00
Shayne Linhart
0dccc85e3a
Added usePointStyle option to label boxes
...
- Closes #2252
- Allows label boxes to match the shape(pointStyle) of the corresponding data.
* Removed unused varaible from legend's draw()
2016-07-05 20:08:29 -06:00
Mitsuhiro Tanda
2bf2be7a9c
fix stacked scatter line chart
2016-06-30 22:28:21 +09:00
Evert Timberg
3660d9be39
Consider left and top when determining value from pixel in category scale
2016-06-29 07:00:09 -04:00
William Entriken
f2270ed8db
Merge pull request #2741 from duerahan/master
...
time type xAxis height crah in line chart #2622
2016-06-27 13:59:41 -04:00
Evert Timberg
48ac791a0c
Allow passing a value to the time scale getPixelForValue method
2016-06-21 19:03:30 -04:00
Simon Brunel
dfdbd4465c
Allow to register/unregister an array of plugins
...
The plugins service now accepts an array of plugin instances to register or unregister (for consistency, renamed `Chart.plugins.remove` to `unregister`). Also added a few methods to manipulate registered plugins, such as `count`, `getAll` and `clear` (mainly used by our unit tests).
2016-06-11 00:17:44 +02:00
Simon Brunel
a55c17d73f
Enhance plugin notification system
...
Change the plugin notification behavior: this method now returns false as soon as a plugin *explicitly* returns false, else returns true. Also, plugins are now called in their own scope (so remove the never used `scope` parameter).
2016-06-10 22:26:55 +02:00
Simon Brunel
7a419af4c2
Rename plugin service and notification method
...
Rename `Chart.pluginService` to `Chart.plugins` (so move the old Chart.plugins array as a private member of the service), and rename `notifyPlugins` to `notify` for consistency with other service methods.
2016-06-10 22:26:35 +02:00
Jack Valuntine
7d63bf085a
time type xAxis height crah in line chart
...
if input only one data in dataset and xAxis type is date make offset crash.
check offset value and don't devide 0 value.
Add xAxis check test case.
2016-06-09 13:34:15 +09:00
Jack Valentine
99d3f423cb
titleColor options is not available
...
titleColor change to titleFontColor
2016-06-08 23:15:21 +09:00
Jack Valentine
d6e5b5e79a
core tooltip test case fixe
...
titleColor options is not available
titleColor change to titleFontColor
2016-06-08 23:01:41 +09:00
문승찬
5687aa479f
Fix tooltip core test case
...
Change tooltip font color options
this options changed in tooltip core
bodyColor -> bodyFontColor
titleColor -> titleFontColor
footerColor -> footerFontColor
2016-06-08 10:22:47 +09:00
Tarqwyn
e856dda04f
Suggested changes from PR review
...
Changes to be committed:
modified: docs/02-Scales.md
modified: src/core/core.helpers.js
modified: src/core/core.scale.js
modified: test/core.helpers.tests.js
2016-06-03 20:15:29 +01:00
Evert Timberg
a5167cc42d
Reduce duplicated code in doughnut controller
2016-05-30 21:33:11 -04:00
Evert Timberg
6bc917c8e3
Improve testing on the CI
2016-05-28 21:08:20 -04:00
Evert Timberg
b646f6d816
Add a way of sorting tooltip items with a custom sort function
2016-05-28 20:47:36 -04:00
Evert Timberg
8d20379e29
Initial tooltip tests + fix a bug when the tooltip beforeLabel and afterLabel callbacks returned strings
2016-05-28 15:26:46 -04:00
Evert Timberg
528680d666
Merge pull request #2658 from chartjs/fix/2580
...
Allow turning off lines on a per dataset basis
2016-05-28 10:56:25 -04:00
Evert Timberg
327b8d82f5
Allow turning off lines on a per dataset basis
2016-05-27 22:20:51 -04:00
Evert Timberg
b3f8a53ea5
Merge pull request #2640 from chartjs/legend-and-title-as-plugins
...
Legend and title as plugins
2016-05-27 21:19:28 -04:00
Evert Timberg
cca4c76c00
Don't use translates and rotates for drawing rotated rectangles
2016-05-26 19:38:27 -04:00
Evert Timberg
ae01f1726c
Fix tests
2016-05-26 19:22:11 -04:00
Ceane Lamerez
456ab9ca36
Fix #2574 - Add support to hide border on the chart
2016-05-17 21:35:19 +02:00
Evert Timberg
8c209405e9
Merge branch 'iso_weekday' of https://github.com/tomduncalf/Chart.js into tomduncalf-iso_weekday
...
Conflicts:
docs/01-Scales.md
2016-05-12 18:24:14 -04:00
Evert Timberg
41c043dd23
Merge branch 'master' of https://github.com/nnnick/Chart.js
...
Conflicts:
docs/01-Scales.md
2016-05-12 18:22:55 -04:00
Evert Timberg
47f770c3ef
Merge pull request #2524 from ashiguruma/master
...
Allow canvas patterns instead of colors
2016-05-12 18:20:40 -04:00
Tom Duncalf
7ee5af81af
Add labelOffset option to scales
2016-05-11 10:43:22 +01:00