Flot bar charts barWidth

1,163 views
Skip to first unread message

lilw0

unread,
Nov 15, 2013, 1:29:43 PM11/15/13
to flot-...@googlegroups.com
Hello,
I have a bar chart and I can not get the width of the bars to look right - their width is about 2px. I'm using barWidth property for it, and I also discovered lineWidth.
With line width set to 30 the bar thickness looks better, but the bars on far left and right of the chart appear beyond the chart. I'm not sure what's wrong. Any help is much appreciated. Here is what I have:

                    series: {
                        stack: true,
                        bars: {
                            show: true,                            
                            align: "center",
                            barWidth: 20,
                            fill: true,
                            lineWidth: 15
                        }
                    }
 

dnschnur

unread,
Nov 16, 2013, 11:17:27 AM11/16/13
to flot-...@googlegroups.com
It's difficult to tell without seeing all of your other options, but make sure you're expressing barWidth in axis units, not pixels.  A time axis, for example, can easily range into thousands or millions of milliseconds wide, and whether you use 20 or 30 will produce a very small bar either way.
Reply all
Reply to author
Forward
0 new messages