use this -- plot=$.plot($("#spectrumModalGraph"), [{ data: velFFTData, color:"#60AAD5"}],$.extend(true, {}, spectrumChartOptions, {xaxis: { min: spectrumFFTZoomArea.x1, max: spectrumFFTZoomArea.x2 },yaxis: { min: spectrumFFTZoomArea.y1, max: spectrumFFTZoomArea.y2*1.5 }}));
i am using spectrumFFTZoomArea.x1, and spectrumFFTZoomArea.x2 with values....to set the min max of the graph for tickmarks u can use tick formatter xaxis, yaxis: { mode: null or "time" *min: null or number max: null or number* autoscaleMargin: null or number ticks: null or number or ticks array or (fn: range -> ticks array) tickSize: number or array minTickSize: number or array * tickFormatter: (fn: number, object -> string) or string* tickDecimals: null or number } hope this helps On Tue, Sep 2, 2008 at 2:35 PM, rolfsf <[EMAIL PROTECTED]> wrote: > > I've got this test page built using jquery flot to render a graph as > price/quantity pairs are input > > I'm using the following jquery: > $().ready(function(){ > > $.plot($("#graphHolder"),[]); > > $('#curveData input').change(function() { > var d1 = []; > $('#curveData tbody > tr').each(function() { > tr = $(this); > pair = []; > tr.find('input.qty').val() > && tr.find('input.price').val() && > pair.push( tr.find('input.qty').val(), tr.find('input.price').val() ) > && d1.push( pair ); > }); > > $.plot($("#graphHolder"), [ > { > color: "#bb0000", > data: d1, > points: { show: true > }, > lines: { show: true, > fill: true, fillColor: "rgba(255, 000, > 000, 0.2)" } > } > ]); > }); > > > }); > > > Does anyone know if it's possible to limit the x and y axis tickmarks > to integers? > > And how do I make the x and y axis always start from 0, regardless of > where the first data point is? > > Thanks! > > > -- Thanks & Regards Faizal (001)919 889 1980 when nothing works , prayer does.