Template:PeakCountPerSample: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 68: | Line 68: | ||
renderTo: 'container', | renderTo: 'container', | ||
type: 'scatter', | type: 'scatter', | ||
zoomType: ' | zoomType: 'xy' | ||
}, | }, | ||
Line 96: | Line 96: | ||
}, | }, | ||
formatter: function() { | formatter: function() { | ||
var n_symindex = this.value.split("/")[0].split(":")[0];//10 | |||
// var n_symindex = this.value.indexOf("Symbol:");//10 | // var n_symindex = this.value.indexOf("Symbol:");//10 | ||
//var n_descindex = this.value.indexOf("Description:"); //-7 | //var n_descindex = this.value.indexOf("Description:"); //-7 | ||
//var sym = this.value.substring(n_symindex +11, n_descindex-7); | //var sym = this.value.substring(n_symindex +11, n_descindex-7); | ||
//return sym; | //return sym; | ||
return | return n_symindex ; | ||
} | } | ||
}, | }, | ||
events: { | events: { | ||
setExtremes: function(event) { | setExtremes: function(event) { | ||
if (event.max) { | |||
var frequency = Math.floor((event.max - event.min) / 17); | |||
this.options.labels.step = frequency; | |||
} else { | |||
this.options.labels.step = 1; | |||
} | |||
} | } | ||
}, | }, |
Revision as of 10:33, 30 September 2013
Sort by