Skip to content

Commit

Permalink
Fix #45 bar chart in wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
rach committed Feb 27, 2016
1 parent 508f289 commit e41dedb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/components/charts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class BarChart extends React.Component {
.attr("transform", "translate(0," + margin.top + ")");

var rect = svg.selectAll("rect")
.data(data)
.data(data.reverse())
.enter().append("rect")
.attr("x", function(d, i) { return x(i) + margin.left; })
.attr("width", x.rangeBand())
Expand Down

0 comments on commit e41dedb

Please sign in to comment.