Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 946 Bytes

README.md

File metadata and controls

44 lines (35 loc) · 946 Bytes

Examples

For working examples checkout http://joetsoi.github.com/flot-barnumbers/

Usage

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.

Todo

  • currently breaks at series.bars.align : "center"