Reputation: 1597
I am using Flot JS to create a bar graph.
The graph is working but the border around the first bar is thinner on the left hand side than the other bars, is there any way to fix this so all the bars have the same width borders?
I think it is in some way related to having the grid turned off.
$.plot(placeholder, data, {
series: {
bars:{
show: true,
lineWidth: 2,
align:'center'
}
},
grid: {
hoverable: false,
clickable: false,
show:false,
},legend: {
show: false
},label: {
show: false
}
});
Upvotes: 1
Views: 97
Reputation: 17560
The leftmost bar is at the edge of the chart and half of the left border is outside the chart. You can
null
(e.g. 0.02 as is the default for the y axis).See the documentation for more help.
Upvotes: 1