[SalesForce] How to create a custom chart without JS besides Google Charts

Questions

Now that Google Image Charts are deprecated and only have a year or two left before they can shut it off. Are there any other options out there for creating image based charts (as opposed to JS-based charts)?

Background

There are plentiful solutions for creating charts if you have JS as an option. Visualforce has it's own charts, you can use the Google Charts API, but if you need to include the chart in a merge document or a pdf rendered visualforce page you can't use anything javascript based. I've loved Google Charts even though they aren't always the prettiest, but they've been deprecated and I need to figure out a replacement. So far I've been unable to google anything that's not javascript based. Any suggestions?

Best Answer

As said in comments, ChartURL is not a real drop-in replacement to Google Image Charts.

However there is actually **Image-Charts a fully compatible replacement for Google Image Charts.

The only required change to VisualForce scripts is to replace https://chart.googleapis.com/chart by https://image-charts.com/chart.

https://chart.googleapis.com/chart?chs=200x200&chdlp=b&chtt=Uberman&chdl=Asleep%7CAwake&chd=t:1,11,1,11,1,11,1,11,1,11,1,11&cht=p&chco=4ECDC4,C7F464

enter image description here

https://image-charts.com/chart?chs=200x200&chdlp=b&chtt=Uberman&chdl=Asleep%7CAwake&chd=t:1,11,1,11,1,11,1,11,1,11,1,11&cht=p&chco=4ECDC4,C7F464

Image-Charts.com an alternative to Google Image Charts

Bonus it even supports animated charts through gif generation:

https://image-charts.com/chart?chs=200x200
&chdlp=b
&chtt=Uberman
&chdl=Asleep%7CAwake
&chd=t:1,11,1,11,1,11,1,11,1,11,1,11
&cht=p
&chco=4ECDC4,C7F464
&chan=1200

animated charts Image

Related Topic