Hi,
I am using igDataChart
is there any possible to download as PDF the chart or html content or print the screen or chart$("#dataChart").igDataChart();
is there any component is there in javascript htmlPlease any one help me Thanks in AdvanceRobin Bronston D
Hi Robin,
Infragistics does not provide a pure javascript solution for this. However, in the context of an MVC application you can use our Infragistics Documents library to create PDF documents on the server, as demonstrated at http://www.igniteui.com/infragistics-documents/create-pdf-or-xps. I can provide you with a sample using the igDataChart as well, if this would suit your needs.
If you are looking for a pure client side solution, I suggest that you get the chart image using the exportImage method, and then use any third party library to create pdf document and place the chart image inside the pdf content.
Hello Hristo,
I am using the $(".selector").igDataChart("print") code for to print the chart i have the chart, content and images in igdialog window is it possible to print and download as pdf in all item ?Please check the screen sort.Thanks
$(
".selector"
).igDataChart(
"print"
)
Robin Bronston D
Hi Priya,
The exportImage method works with the canvas where the chart is rendered. The legend is not part of this canvas, but is rather an html element that we set as the legend.
I have one doubt
Here i am using below code for to get the chart as image is working good var pngImage = $("#speedLineChart").igDataChart("exportImage");
but in the below code i am using "legend" { element: "lineLegend" }, how to take that legend also as the same image
width: "700px", height: "300px", topMargin : 20, autoMarginWidth : 35, dataSource: runningSpeedData, legend: { element: "lineLegend" },you got my point?
Please check the screensort and update to me
Thanks in advance.
Thank you for the screenshot provided.
The print method is exclusive to the igDataChart and it is not possible to "insert" other items in the print preview. Please let me know if you have further questions on the matter.