Flot charts, xaxis minimum length -
the xaxis in flot line charts can take array of data no more 16 in length. problem when data less 16, x axis spreading out show maximum value of whatever length of data array is.
even if data 4 in length, i'd still show 16 points on xaxis.
i have tried various configs , nothing seems working :(
http://www.discussthemarket.com/ratings/
the graphs lower down have x axis greater graphs nearer top have fewer items in data. i'd consistently apply fixed length of 16 x axis struggling.
one possibility provide number ticks option:
ticks: 16 however treated guideline; flot tries make ticks fit, , reduce number when detects overlap or run off side of plot. if want force use 16 (which wouldn't recommend, since labels overlap) you'll need manually provide array of ticks:
ticks: [0, 5, 10, ...]
Comments
Post a Comment