1

I have used this tutorial: Save Google charts as a image which converts Google Graphs into an image and then saves it for me.

It's working perfectly and it achieves this by creating a canvas element and then drawing the graph onto it.

However and typical with IE its doesnt work with any browser lower than 9. Which is a huge problem as most of our clients are still in the dark ages. sadly.

Can anyone recommend a good solution to this or has any of you got any experience to share on this matter?

Community
  • 1
  • 1
MarkP
  • 2,546
  • 5
  • 31
  • 48

2 Answers2

1

You can use ExCanvas

Modern browsers like Firefox, Safari, Chrome and Opera support the HTML5 canvas tag to allow 2D command-based drawing. ExplorerCanvas brings the same functionality to Internet Explorer. To use, web developers only need to include a single script tag in their existing web pages.

Reference

Aditya Singh
  • 9,512
  • 5
  • 32
  • 55
  • Just note you [can't extract data with exCanvas (toDataURL)](https://code.google.com/p/explorercanvas/issues/detail?id=77) so I guess it's not usable in that sense since OP need to save images.. –  Oct 24 '13 at 10:20
  • 1
    @Ken-AbdiasSoftware Just gone through with your link, even I was not aware about this. Thanks. – Aditya Singh Oct 24 '13 at 10:21
1

@wizkid's answer is a good suggestion in it self - however, the only problem is that exCanvas do not support toDataURL() and won't due to the nature of it using VML. This means you won't be able to use it to save out images.

Update

You can use flash to solve this problem. There are two solutions available:

Both of these should be able to save out bitmap images from the "canvas" as png and jpeg (ref: fxcanvas, flashcanvas). This would of course require the client to have Flash player installed.

The third option is to use a server as a proxy (or as processor) for Google charts.