Fix bar chart with {x, y} data points (#4673)

This commit is contained in:
Akihiko Kusanagi
2017-08-26 14:50:39 +09:00
committed by Simon Brunel
parent 5a014dc361
commit 5d57de4e4d
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ data: [20, 10]
You can also specify the dataset as x/y coordinates.
```javascript
data: [{x:'2016-12-25', y:20}, {'2016-12-26', y:10}]
data: [{x:'2016-12-25', y:20}, {x:'2016-12-26', y:10}]
```
# Stacked Bar Chart

View File

@@ -362,7 +362,7 @@ module.exports = function(Chart) {
draw: function() {
var me = this;
var chart = me.chart;
var scale = me.getIndexScale();
var scale = me.getValueScale();
var rects = me.getMeta().data;
var dataset = me.getDataset();
var ilen = rects.length;