Skip to content

simple jquery flot plugin to show bar numbers in bar graph

License

Notifications You must be signed in to change notification settings

pareeohnos/flot-barnumbers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

simple jquery flot plugin to show bar numbers in bar graph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%