Commit Graph

2009 Commits

Author SHA1 Message Date
mdewilde
08451ce95e Correct duplicate error 2016-07-28 13:16:21 +02:00
Jeff Esp
1e5cdc6188 Fix #2922 Make the XAxis based hover/tooltip pick the item at the same x-axis value 2016-07-27 21:09:13 +02:00
Evert Timberg
8e2deede5b Merge pull request #3039 from ianks/getLabelMoment-fix
Fix out of bounds index access in getLabelMoment
2016-07-26 20:57:34 -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
a0d8554117 Merge pull request #3032 from Neabfi/patch-1
Correction of spelling mistakes
2016-07-25 11:20:11 -04:00
Neabfi
29a1ba10e4 Correction of spelling mistake 2016-07-25 10:53:28 -04:00
Neabfi
a2977ecfcd Correction of spelling mistake 2016-07-25 10:50:35 -04:00
Evert Timberg
880c75b213 Merge pull request #3027 from moberwasserlechner/bugfix/3026
Remove non existing property from radar samples #3026
2016-07-24 09:02:47 -04:00
Michael Oberwasserlechner
27010c4619 Remove non existing property from radar samples #3026 2016-07-24 10:49:03 +02: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
a2321d2df0 Merge pull request #2998 from chartjs/v2.2.0-rc.2-release
Bump version to v2.2.0-rc.2
2016-07-19 18:52:03 -04:00
Evert Timberg
4334ab8611 Bump version to v2.2.0-rc.2 2016-07-19 18:47:08 -04:00
Nick Downie
0c07b1eeda Fix missing comma syntax error in js block 2016-07-19 22:01:41 +01:00
Evert Timberg
88d9398982 Merge pull request #2984 from slinhart/master
Issue #1012. Added offsetAngle option for radar charts.
2016-07-18 22:25:54 -04:00
Evert Timberg
3194bea5fa Merge pull request #2986 from sibennayak/master
Fix the Pie Chart hover issue (#2983)
2016-07-18 18:18:58 -04:00
Evert Timberg
41ec60ff1a Merge pull request #2991 from tiagoroldao/issue-2990
Check for existence of data element before accessing property
2016-07-18 18:18:36 -04:00
Tiago Roldão
9df06e8c2e Check for existence of data element before accessing property 2016-07-18 22:05:44 +01: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
Siben Nayak
ca83f3da0b Merge branch 'master' of https://github.com/sibennayak/Chart.js 2016-07-17 19:05:21 +05:30
Siben Nayak
d50cdfe6ad FIx the Pie Chart hover issue (#2983) 2016-07-17 19:04:47 +05:30
Siben Nayak
7c41c2e253 FIx the Pie Chart hover issue (#2983) 2016-07-17 19:01:59 +05:30
unknown
d7733b2221 Merge remote-tracking branch 'chartjs-origin/master' 2016-07-16 18:59:22 -06:00
unknown
ad7ed249af Add an option for radar chart to have offsetAngle. Issue #1012 2016-07-16 18:58:04 -06: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
Simon Brunel
6572c94bd6 Fix missing Chart.js.zip file for Travis release 2016-07-15 13:01:55 +02:00
Evert Timberg
f22754874c Merge pull request #2971 from moberwasserlechner/patch-2
Docs for Title and Legend position incomplete
2016-07-14 09:42:19 -04:00
Michael Oberwasserlechner
0b0a3c9ccd Docs for Title and Legend position incomplete
Positioning of title and legend to the left or to the right works.
2016-07-14 12:30:34 +02:00
Evert Timberg
5804f1e3c9 Package.json for v.2.2.0-rc.1 and fixed travis deploy 2016-07-13 20:00:12 -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
Evert Timberg
d5c8e7114a Merge pull request #2961 from moberwasserlechner/patch-1
Fix copy typo
2016-07-13 09:13:36 -04:00
Michael Oberwasserlechner
281ad20452 Fix copy typo 2016-07-13 08:49:42 +02:00
Josh Baker
191c280387 Added support for manually specifying bar thickness in bar charts 2016-07-12 17:31:50 -07:00
zachpanz88
885eeb091a
Update link to Colors in documentation for each chart type 2016-07-12 11:33:48 -04:00
Evert Timberg
524493fe06 Merge pull request #2883 from Mesonyx/mesonyx/bugfix/null-tooltips
Fix for null value label/x-axis multi-tooltip bug
2016-07-11 10:34:20 -04: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
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
72813d5112 Merge branch 'amlethojalen-master' 2016-07-09 10:02:08 -04:00
Evert Timberg
a1f94b1a57 update sample to have negative numbers 2016-07-09 10:01:15 -04:00
Evert Timberg
6f392639c2 Merge branch 'master' of https://github.com/amlethojalen/Chart.js into amlethojalen-master 2016-07-09 09:39:43 -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
fc09b58a14 Merge pull request #2905 from shuson/patch-1
add wikipedia link for DRY explanation
2016-07-09 09:12:32 -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
4dacb78ae7 Merge pull request #2936 from gitname/patch-1
Fix typo
2016-07-07 16:17:20 -04:00
gitname
046e2effb5 Fix typo 2016-07-07 12:57:49 -07:00
amlethojalen
988423b05e Fixed up formatting suggestions/issues as per comments from zachpanz88 2016-07-07 08:35:21 +10: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
fca419e075 Merge pull request #2924 from jeffesp/master
Fixes #2923: swapped tooltip xAlign & yAlign
2016-07-06 17:57:31 -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