Support for values at top of bar charts

45 Views Asked by At

I'm currently transitioning our product from Google Image Charts over to the Image Charts service. I would like to display a numerical value at the top of a bar chart using chd or chart data string.

Using Google Image Charts, the following request outputs

https://chart.googleapis.com/chart?cht=bvg&chs=770x385&chco=ee7495&chds=0%2C78&chbh=96%2C0%2C95&chxt=x&chxs=0%2C000000%2C38&chm=N%2C000000%2C0%2C-1%2C35%2C0%2Ce%3A0%3A15&chxl=0%3A%7C3%2F24%7C3%2F31%7C4%2F7%7C4%2F14&chd=t%3A7%2C2%2C0%2C0

enter image description here

Using Image-Charts, the following request outputs

https://image-charts.com/chart?cht=bvg&chs=770x385&chco=ee7495&chds=0%2C78&chbh=96%2C0%2C95&chxt=x&chxs=0%2C000000%2C38&chm=N%2C000000%2C0%2C-1%2C35%2C0%2Ce%3A0%3A15&chxl=0%3A%7C3%2F24%7C3%2F31%7C4%2F7%7C4%2F14&chd=t%3A7%2C2%2C0%2C0

enter image description here

Any ideas on what I am doing wrong here?

1

There are 1 best solutions below

2
FGRibreau On BEST ANSWER

Disclaimer: Image-Charts founder here.

We currently do not have support for chm=N, however you can use chl= to mimic such feature (check out our label documentation).

&chl=7|2|0|0
https://image-charts.com/chart?cht=bvg&chs=770x385&chco=ee7495&chds=0%2C78&chbh=96%2C0%2C95&chxt=x&chxs=0%2C000000%2C38&chm=N%2C000000%2C0%2C-1%2C35%2C0%2Ce%3A0%3A15&chxl=0%3A%7C3%2F24%7C3%2F31%7C4%2F7%7C4%2F14&chd=t%3A7%2C2%2C0%2C0&chl=7|2|0|0

enter image description here

PS: If you wish to help us priorize our roadmap, please take a subscription and ask for the support of chm=N