nicky
nicky

Reputation: 3908

Using charts in web application (negative value in bar chart)

I want to use bar chart in web application.

I have searched many libraries including google code, and many but many do not support negative values for bar charts.

Upvotes: 3

Views: 1133

Answers (3)

Simon Lieschke
Simon Lieschke

Reputation: 13333

Flot is more than capable of displaying negative values. Have a look at this example I whipped up.

Upvotes: 1

Daniel Vassallo
Daniel Vassallo

Reputation: 344431

There are a couple of "hacks" to display negative values with the Google Charts API:

Negative numbers in the Google Chart API

The above chart was generated using: http://chart.apis.google.com/chart?cht=bvs&chd=t:50,50,50,30,50|0,0,0,20,0|20,10,30,0,30&chco=00000000,ff0000,0000ff&chs=200x125&chg=0,51,1,0&chxt=y&chxl=0%3a|-50|0|50

You may want to check the following article for further reading about this workaround:

Upvotes: 2

Xr.
Xr.

Reputation: 1410

Open Flash Chart supports them as long as you set the graph scale accordingly, I think.

gRaphaël is also supposed to support them but there was a bug at some point and I don't know if it's fixed.

Upvotes: 0

Related Questions