Author: croberts
Date: 2011-11-30 16:17:44 +0000 (Wed, 30 Nov 2011)
New Revision: 5155
Modified:
branches/noflash/cumin/resources/app.js
Log:
Correcting y-axis ticks (from default of 3 to 4) for the update replot.
Modified: branches/noflash/cumin/resources/app.js
===================================================================
--- branches/noflash/cumin/resources/app.js 2011-11-29 16:20:03 UTC (rev 5154)
+++ branches/noflash/cumin/resources/app.js 2011-11-30 16:17:44 UTC (rev 5155)
@@ -614,7 +614,7 @@
allCharts[divName].series[i].data =
dataContainer['y_coordinate_values'][i];
}
try{
-
allCharts[divName].replot({resetAxes:(!allCharts[divName].plugins.cursor._zoom.isZoomed),
axes:{y2axis:{autoscale:true,min:0}, xaxis:{min:dataopts['xmin'] /
dataContainer['x_axis_normalizer'], max:dataopts['xmax'] /
dataContainer['x_axis_normalizer'],tickOptions:{formatString:'%.0f ' +
dataContainer['x_axis_unit_label'], formatter: x_axis_Formatter,}}}})
+
allCharts[divName].replot({resetAxes:(!allCharts[divName].plugins.cursor._zoom.isZoomed),
axes:{y2axis:{autoscale:true,min:0,numberTicks:4,}, xaxis:{min:dataopts['xmin'] /
dataContainer['x_axis_normalizer'], max:dataopts['xmax'] /
dataContainer['x_axis_normalizer'],tickOptions:{formatString:'%.0f ' +
dataContainer['x_axis_unit_label'], formatter: x_axis_Formatter,}}}})
} catch (err) {
// this is needed in the event of the first draw for a fullpage chart
allCharts[divName] = $j.jqplot(holder,
dataContainer['y_coordinate_values'],chartOptionsObject);