Order of values in horizontal bar graphs

78 views
Skip to first unread message

David B

unread,
Feb 8, 2012, 12:01:03 PM2/8/12
to jqplot-users
I have started using jqPlot and am very pleased with the results it
can achieve. However in the course of trying out a horizontal bar
graph I discovered an issue that I am having difficulty working with.

In a vertical bar or a line graph the order of values in JSON format
are [ [category-x, value-y] ] but in the horizontal bar the order is
reversed to [ [ value-y , category-x] ] . To me this seems to be
incorrect since the chart is simply rotated. Perhaps there is a good
reason for this that I am unaware of but it does make things more
complicated when one chart type doesn't fit the same data pattern as
others.

Perhaps if others have encountered this issue as well they have found
ways around it? Maybe a little bit of JS that reorders the JSON data
values prior to invoking the horizontal chart?

Any help would be greatly appreciated

Rafael Revi

unread,
Sep 17, 2012, 5:20:46 PM9/17/12
to jqplot...@googlegroups.com
Hello David,

I am running into the same issue as you are. Did you ever get help or figure out how to get it in the right order?

Thanks in advanced
Reply all
Reply to author
Forward
0 new messages