Author: croberts
Date: 2012-05-09 17:49:15 +0000 (Wed, 09 May 2012)
New Revision: 5369
Modified:
trunk/cumin/resources/app.js
Log:
Adding a bit of padding to the line charts at the top.
Modified: trunk/cumin/resources/app.js
===================================================================
--- trunk/cumin/resources/app.js 2012-05-09 17:06:39 UTC (rev 5368)
+++ trunk/cumin/resources/app.js 2012-05-09 17:49:15 UTC (rev 5369)
@@ -634,7 +634,7 @@
autoscale:true,
min:0,
tickOptions:{formatString:'%.0f',formatter: y_axis_Formatter,},
- pad:1.01,
+ pad:1.2,
numberTicks:4,
},
xaxis: {
@@ -703,7 +703,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,pad:1.01,numberTicks:4,tickOptions:{formatString:'%.0f',formatter:
y_axis_Formatter,}}, 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,pad:1.2,numberTicks:4,tickOptions:{formatString:'%.0f',formatter:
y_axis_Formatter,}}, 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);
Show replies by date