Flot xaxis ticks exceeds the specified number -


i'm new flot, understanding of ticks number of columns flot draw on chart.

as labels quite long, having 6 ticks fits nicely. times, exceeds number set, , screws labels.

i assume has flot's algorithm? there way can fix 6 columns?

a simplet of how set it.

xaxis: { mode: 'time', timeformat: "%y/%m/%d %h:%m:%s", tick:6 }, 

the ticks option guideline. flot tries match value, first priority choose 'round' values, i.e. 5:00 instead of 5:01.

there several ways work around this, depending on data. guaranteed solution calculate 6 tick values manually, , provide them flot in 'ticks' array option. besides that, may able coax flot generating correct number of ticks adjusting minticksize , axis min/max.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -