Reputation: 1447
I have a very simple d3.js bar chart that looks like this:
However, as soon as I take out the
.text(function(d) { return d; })
it's fine!
Does anyone know why the first case (where I have text from the data list populating in the markup) is inverted? Do I need to set orientation of the axis somewhere?
Upvotes: 1
Views: 66
Reputation: 204
You can right it with vertical-align: bottom
per FernOfTheAndes' comment.
Upvotes: 1