开发者

Flot Chart Y axis Position

开发者 https://www.devze.com 2023-03-13 00:47 出处:网络
I am using Flot for graphing. I put this chart in a div, and when I resize the div, however, i found that the labels of YAxis don\'t m开发者_JAVA技巧ove accordingly, and they just stay at the inital p

I am using Flot for graphing. I put this chart in a div, and when I resize the div, however, i found that the labels of YAxis don't m开发者_JAVA技巧ove accordingly, and they just stay at the inital positions. labels for XAxis are ok. I am wondering how could this happen? do I need to set up additional parameters? Thanks!


Make sure you are using the resize plugin:

<script language="javascript" type="text/javascript" src="jquery.flot.resize.js"></script> 

//do plotting as normal

If you are already using the resize plugin, something more fundamental is probably wrong... It might be useful to see more code in that case.

0

精彩评论

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