Hi All
I am using igDataChart i have to generate image or pint option using the below code.
var pngImage = $(".selector").igDataChart("exportImage");
$(".selector").igDataChart("print");
but i can't able to use the legend div please check the screen sort and update to me.
Thanks in advance
Hello,
The datachart is a canvas element which is in the selector class , but the legend item is in separate table/div outside the scope of the selector class(in which the data chart resides). So when you export datachart as an image it doesn't include the legend div.
I'm trying to extract the canvas of the legend and convert it into image, I'm still trying to find a work around for it.
Thanks,
Phanindra
Hello Phani kay,
Thanks for your reply,If you got the solution please update to me.
Thanks.
Hi,
Please go through the fiddle http://jsfiddle.net/2NWcL/7/.
Basically I'm getting the whole body with the graph, legend and then triggering download using link attribute.
Phanindra.
Hi Phani Kay
Thanks For your reply
Its works. Its really helpful for me.
Update fiddle http://jsfiddle.net/2NWcL/8/