Template:PeakCountPerSample: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 74: | Line 74: | ||
}, | }, | ||
labels: { | labels: { | ||
step: 5, | |||
rotation: -90, | rotation: -90, | ||
enabled: true, | enabled: true, | ||
Line 89: | Line 90: | ||
} | } | ||
}, | }, | ||
events: { | |||
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 = 5; | |||
} | |||
} | |||
}, | |||
startOnTick: false, | startOnTick: false, |
Revision as of 16:45, 20 September 2013