SrinivasSharma
Posts: 7
Joined: Mon Nov 05, 2012 5:41 am

Converting a graph into a image

How do I convert an graph shown on the screen into an image stream on a button click.
I would like to use this image to embed into another form fo viewing purposes.
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Converting a graph into a image

Please add exporting.js file and buttons will appear.

http://www.highcharts.com/demo/
Sebastian Bochan
Highcharts Developer
SrinivasSharma
Posts: 7
Joined: Mon Nov 05, 2012 5:41 am

Re: Converting a graph into a image

The exporting option will not help as I would like to create a image of the chart drawn and then use it to embed in another html page. All this needs to happen in the background on a button click
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Converting a graph into a image

So I suggest familiar with this article http://www.highcharts.com/component/con ... ted-charts
Sebastian Bochan
Highcharts Developer
SrinivasSharma
Posts: 7
Joined: Mon Nov 05, 2012 5:41 am

Re: Converting a graph into a image

As I am new to highcharts, Can I get a working example ?
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Converting a graph into a image

Well I'm not sure which example you needed, in the article all is described, morever when you click in phantomjs link you are redirect to github where in readme file all is described too. Obviusly tutorial is available in the http://phantomjs.org/download.html
Sebastian Bochan
Highcharts Developer
SrinivasSharma
Posts: 7
Joined: Mon Nov 05, 2012 5:41 am

Re: Converting a graph into a image

Probably I miscommunicated. All I would like to do is create an image of the chart generated by highcharts and then create a inputstream to stuff it some place else. Any help would be greatly appreciated !!!
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Converting a graph into a image

So this chart should be generated in the browser and then inputstream will be available or without browser?
Sebastian Bochan
Highcharts Developer
Nehakumari
Posts: 13
Joined: Wed Mar 13, 2024 6:07 am
Location: INDIA
Contact: Website

Re: Converting a graph into a image

If you're converting a Highcharts graph to an image and need further compression or optimization, you can use tools like image converter to optimize the image quality and image format without losing clarity. Let me know if you need more help with the setup!

Return to “Highcharts Usage”