jqplot水平堆积条形图,条形图从右到左

时间:2013-01-17 15:55:50

标签: jqplot

我的水平堆积条形图效果很好,但我希望水平条的 DIRECTION 来自 RIGHT-TO-LEFT ,和来自 LEFT-TO-RIGHT 。这包括希望线条标签位于右侧,而不是左侧。

有什么想法吗?

我拥有的: The zero is on the left, with the 18 on the right....

我想要的: The zero is on the right, with the 18 on the left (sorry its upside down, hacking this image together....)....

1 个答案:

答案 0 :(得分:1)

快速回答(我还没有测试过):

为了在左边有18,在右边有0你可以指定你的xaxis的最小值和最大值。

如果您希望行标签位于右侧,请尝试通过指定seriesDefaults将您的系列放在y2axis上:{yaxis:'y2axis'}

如果有效,请告诉我。