jquery - JqPlot : Set a fix height value for the graph area not including y axe labels -
i using jqplot.
the graph height depending on height of main container or default jqplot value.
my problem if y label long, graph size reduced fit in main container.
is possible set fix value graph height not depending on label text length?
my need : display same graph height (400px example) not depending on y label text length
here image depict problem:

only thing comes mind along these lines presented in sample.
after call paint plot, call below code current plot's size , adjust accordingly adding size taken surrounding divs (i.e. title & axes).
in result whatever set size of chart in css taken graphical part of chart, want it.
var w = parseint($(".jqplot-yaxis").width(), 10) + parseint($("#chart").width(), 10); var h = parseint($(".jqplot-title").height(), 10) + parseint($(".jqplot-xaxis").height(), 10) + parseint($("#chart").height(), 10); $("#chart").width(w).height(h); plot.replot();
Comments
Post a Comment