开发者

jqplot and width

I am having some trouble with the width of the ticks on the xaxis. I开发者_运维知识库t seems that they are auto adjusted to fill the width of the div - what if I want to override that?

Regards,

Jacob


I had the same problem but could not find anything useful in the docs. I solved it by changing the width of the div dynamically, based on the data array size, before drawing the graph.


You could use the Ticks option for the x axis and give it an array of values you want to put in yours. it solve my problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜