gmmoraesbr / flot

Automatically exported from code.google.com/p/flot
0 stars 0 forks source link

Bar chart with align center #327

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

i made a bar chart and set the align to center. I also defined tickSize,
min and max for the xaxis. With these settings only a half of the first and
last bar is shown. If i specify instead a ticks array for the xaxis, this
doesn't happen. I think in both cases the bars shouldn't get cut off.

I have attached the sourcecode of the two examples.

Thanks

Original issue reported on code.google.com by deep.blu...@gmail.com on 28 Mar 2010 at 4:29

Attachments:

GoogleCodeExporter commented 8 years ago
Edit: Added Screenshots.

Original comment by deep.blu...@gmail.com on 28 Mar 2010 at 4:38

Attachments:

GoogleCodeExporter commented 8 years ago
Hm, I see what you mean.

When you set min/max, it's interpreted literally by Flot. We could change that, 
but then I'm afraid I'm going to bump into other problem - because sometimes 
you really mean it literally.

So I'm afraid I'll leave the semantics as is for now. You can compensate 
manually by adding half the bar width to your min/max.

Original comment by olau%iol...@gtempaccount.com on 13 Dec 2010 at 3:19

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:41