Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
How to create image / Print with legend div in igDataChart
posted

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

Parents
  • 145
    posted

    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

Reply Children
No Data