jQuery Flot ~ set Label example


var d1 = [];
d1.push([1, 1234]);
d1.push([2, 5678]);

var stack = 0, bars = true, lines = false, steps = false;
$.plot($("#statisticsGraph"), [d1], {
series: {
lines: { show: lines, fill: true },
bars: { show: bars, barWidth: 0.8 }
}, xaxis: {
ticks: [[1, 'out hospital'], [2, 'in hospital']]
}
});


reference
http://stackoverflow.com/questions/459947/how-do-i-control-the-tick-label-size-in-flot

沒有留言:

發佈留言