jquery - How to define the size of graph in jqPlot -


i using jqplot render graph on page.

i following link. http://www.jqplot.com/tests/bar-charts.php

the data point give graph dynamic. sometime size of graph different. there way/or able set property jqplot?

to precise, question how set height , width of graph every time new data size of graph , size of labels same. example jsfiddle including myself.

you can fix size configuring height , width:

$.jqplot('chartdiv', [data], {     height: 400,     width: 400,     ... 

you need give height , width target div:

<div id="chartdiv" style="height:500px; width:500px;"></div> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -