2
votes

Is it possible to have a jQuery stacked column chart with both negative and positive values?

I have been using Steve Fenton's jQuery Charts (Vertical Bars) however am unable to produce both a positive and negative value like the image below:

enter image description here

Here is a jsfiddle of what I currently have: http://jsfiddle.net/jMXMb/

Any ideas, links, solutions would be greatly appreciated.

1

1 Answers

1
votes

You could just apply some css to get your negative bars... but the values can't themselves be negative =(

#example2b + h3 + .chartscontainer .chartsbar {
    top: 0 !important;
    bottom: auto !important;
}

Check out this demo. If you do need negative values, and the numbers inside the bars switched, I think it will require some code changes to the plugin. Or some more creative css...