Exporting a table using Highchart library - highcharts

I have a requirement of generating a simple table to display some data and than export it using highchart library and also I dont want to generate any chart for this data.
I got this link : Highcharts and the export of table data
But I want to export the table without creating any chart.
Kindly help.

Related

Chart not exporting to XLS File - Highcharts

I have integrated Highcharts in my code to show data using charts.
HIghcharts displays chart on the website, it great. but when downloading data using their api it does not display chart in the xls file, it instead shows raw data in the excel, i want to show chart even in the xls file.
Pic1 shows how chart appears on my website.
pic2 shows how the data appears when i download.
I need something to show the actual chart (which is shown on the site) to be in the excel too.
1:
Highcharts does not provide a possibility to export a chart as an image to XLS file. You can export directly only the chart data. As #Core972 noticed, you can download a chart image and paste it in Excel.
Export module
...
Additionally there's the export data module that enables exporting the
chart data to CSV, XLS or HTML table formats.
Docs: https://www.highcharts.com/docs/export-module/export-module-overview

Export chart image data locally in HIghchart

I have a Highcharts implementation. I need to be able to get the image data in my source code at client side. How can this be done?
I know there are exportChart methods, but they directly trigger a download and does not return an image in the source code.
I have also read about getting SVG from the chart and then converting that into an image, but that seems to be a workaround rather than a solution. Can this be done in a proper way or is there anything available in Highcharts for this?
Did you consider to use offline exporting module (http://code.highcharts.com/modules/offline-exporting.src.js)? It will allow you to export image without sending any data to an external server (https://www.highcharts.com/docs/export-module/client-side-export).
API Reference:
http://api.highcharts.com/highcharts/Chart.exportChartLocal
Example:
http://jsfiddle.net/9dom7je9/

Embed svg in PDF using pdfsharp

Any body I want to export chart data made with d3.js in to PDF file using PDFSharp and Migradoc. I am not able to find any example. So can anybody give some example?

Export highchart for print preview

I have to create a print preview page where I have to show some information and a highchart of the original page. Is there a way to export the highchart graph from one page to another?
There are probably many ways to accomplish this.
What language are you working in?
I would try it this way:
set the chart options in an external js file
include that js file in both the original page, and the 'preview' page
I assume the user will click on a link or button to open the preview page...?
send the data via POST to the new page, and instantiate the chart on the new page on page load
You could also look into using the Export package to
on link/button click, export the chart as an image, to the server
pass the url of the saved image to the new page, and load the image there
I have not worked with exporting to the server, and wouldn't bother with the set up for this when you can just pass the data and build the chart on the new page, but it's an option.

HighCharts image export

I am using HighChart in my application.
I want to export chart image on a button click like http://jsfiddle.net/hfrntt/fXHB5/1896/.
but i want to save image in a predefined folder and remove the save dialog pop-up to save image.
On button click image saved on the predefined folder.(No save dialog)
Thanks in advance
You have to setup an exportserver. Upon the client sends the Highcharts SVG file to this service it will be converted to an image. Before the server returns the image to the client you can save it to the predefined filesystem.
Here you can find a php export server and a java based one. https://github.com/highslide-software/highcharts.com/tree/master/exporting-server developed by Highcharts
These exportservers are setup to remove the temporary created files. You have to change the code a bit to prevent this.
read also this article for more background information on Highcharts exportservers
This is going to involve much more than simply using highcharts. You are going to have to use some sort of wrapper that will actually render the chart/page on the server-side and then essentially output it as an image. The following are links taken from a post on the highcharts website.
GWT Highcharts wrapper
Highcharts-server-side-export (with Rhino/Batik)

Resources