Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is is possible to display barcharts horizontally in Flot?

Apologies, but I'm a newbie at Flot.

I'd like to display my data in a horizontal bar chart rather a vertical bar chart which Flot seems to default to.

Is it possible to do this in Flot, and, if so, how do I do it?

like image 680
ssi_bas Avatar asked Feb 28 '11 21:02

ssi_bas


People also ask

Can Bar Chart be horizontally or vertically oriented?

In a bar graph, bars can be drawn horizontally or vertically.

Which function is used to create a horizontal bar charts?

barh( y ) creates a horizontal bar graph with one bar for each element in y .


1 Answers

bars: {
      horizontal: true
    }

API reference: http://flot.googlecode.com/svn/trunk/API.txt

like image 105
iivel Avatar answered Oct 18 '22 21:10

iivel