Changeset 2070
- Timestamp:
- Oct 27, 2011, 2:01:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/visualize/index.gsp
r2062 r2070 15 15 <g:javascript src="jqplot/plugins/jqplot.canvasTextRenderer.min.js" /> 16 16 <g:javascript src="jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js" /> 17 <g:javascript src="jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js" /> 17 18 <g:javascript src="jqplot/plugins/jqplot.ohlcRenderer.min.js" /> 18 19 <g:javascript src="jqplot/plugins/jqplot.highlighter.min.js" /> … … 93 94 <td><input type="checkbox" name="showvalues" id="showvalues" CHECKED onClick="changeVis();"/></td> 94 95 </tr> 96 <tr> 97 <td><label for="anglelabels">Angle labels on the x-axis.<br />(if this box is checked, labels are shown at a 45° angle)</label></td> 98 <td><input type="checkbox" name="anglelabels" id="anglelabels" CHECKED onClick="changeVis();"/></td> 99 </tr> 95 100 </table> 96 101 </div> -
trunk/web-app/js/visualization.js
r2066 r2070 225 225 226 226 var showDataValues = $("#showvalues").attr("checked")=="checked" ? true : false; 227 227 var xangle = $("#anglelabels").attr("checked")=="checked" ? -45 : 0; 228 228 229 switch( returnData.type ) { 229 230 case "horizontal_barchart": … … 253 254 label: ylabel, 254 255 formatString:'%.2f', 255 labelRenderer: $.jqplot.CanvasAxisLabelRenderer 256 labelRenderer: $.jqplot.CanvasAxisLabelRenderer, 257 tickRenderer: $.jqplot.CanvasAxisTickRenderer, 258 tickOptions: { 259 angle: xangle 260 } 256 261 }, 257 262 yaxis: { … … 290 295 ticks: returnData.series[ 0 ].x, // Use the x-axis of the first serie 291 296 labelRenderer: $.jqplot.CanvasAxisLabelRenderer, 292 label: xlabel 297 label: xlabel, 298 tickRenderer: $.jqplot.CanvasAxisTickRenderer, 299 tickOptions: { 300 angle: xangle 301 } 293 302 }, 294 303 yaxis: { … … 320 329 ticks: returnData.series[ 0 ].x, // Use the x-axis of the first serie 321 330 labelRenderer: $.jqplot.CanvasAxisLabelRenderer, 322 label: xlabel 331 label: xlabel, 332 tickRenderer: $.jqplot.CanvasAxisTickRenderer, 333 tickOptions: { 334 angle: xangle 335 } 323 336 }, 324 337 yaxis: { … … 359 372 ticks: returnData.series[ 0 ].x, // Use the x-axis of the first serie 360 373 label: xlabel, 361 labelRenderer: $.jqplot.CanvasAxisLabelRenderer 374 labelRenderer: $.jqplot.CanvasAxisLabelRenderer, 375 tickRenderer: $.jqplot.CanvasAxisTickRenderer, 376 tickOptions: { 377 angle: xangle 378 } 362 379 }, 363 380 yaxis: {
Note: See TracChangeset
for help on using the changeset viewer.