Template:PeakCountPerSample: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 69: | Line 69: | ||
xAxis: { | xAxis: { | ||
categories: categories_xAxis, | categories: categories_xAxis, | ||
title: { | title: { | ||
Line 107: | Line 106: | ||
showLastLabel: true | showLastLabel: true | ||
}, | }, | ||
yAxis: { | yAxis: { | ||
categories: categories_yAxis, | categories: categories_yAxis, | ||
Line 201: | Line 197: | ||
var chart = new Highcharts.Chart(options); | var chart = new Highcharts.Chart(options); | ||
}); | }); | ||
function zoomTo15Points(chart){ | |||
var points=chart.series[0].points; | |||
if(points.length<15) return; | |||
var min=points[0].x; | |||
var max=points[14].x; | |||
//If you wish to zoom to 15 days you can modify max as | |||
// var max=min + 1000*60*60*24*14 | |||
chart.xAxis[0].setExtremes(min,max); | |||
chart.showResetZoom(); | |||
} | |||
//380101 800026 962043 943D57 A60223 BA0002 BD0026 C40608 E31A1C FC4E2A FD8D3C FEB24C FED976 FFEDA0 | //380101 800026 962043 943D57 A60223 BA0002 BD0026 C40608 E31A1C FC4E2A FD8D3C FEB24C FED976 FFEDA0 | ||
Revision as of 14:17, 24 September 2013