Skip to content

Commit

Permalink
Fix bar chart with {x, y} data points (chartjs#4673)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix authored and simonbrunel committed Aug 26, 2017
1 parent 926ef0c commit 7f40b0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/charts/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/controller.bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f40b0c

Please sign in to comment.