For working examples checkout http://joetsoi.github.com/flot-barnumbers/
simple flot plugin to draw bar numbers in bars, simply add
series: {
bars: {
numbers: {
show : boolean
}
}
}
The below will continue to work for now to prevent breaking of existing code
series: {
bars: {
showNumbers: boolean
}
}
There are 2 other additional options
series: {
bars: {
numbers: {
xAlign : function or number,
yAlign : function or number,
}
}
}
By default numbers will be positioned in the center of the bars, you can specify a function or a number to override this behaviour. If you have a horizontal bar chart, these 2 functions will switch round the axes they are working on.
- currently breaks at series.bars.align : "center"