0

Download/Export HeatMap ngx swimlane char as image.

Refer plunker url https://plnkr.co/edit/2rtX5cueg2hlzmztUbkH?p=preview

Need any option/property to download the chart as image

Code`

export class App {

    //single: any[];
    multi: any[];

    // Size to be displayed 
    view: any[] = [1000, 400];

    // options

    showXAxis = true;
    showYAxis = true;
    gradient = false;
    showLegend = true;
    showXAxisLabel = true;
    xAxisLabel = 'Hour';
    showYAxisLabel = true;
    yAxisLabel = 'Days';
}
Manhar Sapra
  • 659
  • 1
  • 11
  • 21

1 Answers1

0

I haven't looked specifically at that chart component, but I assume that it's drawing the chart to a canvas. If you can get a reference to the canvas, you generate an image from it. See Capture HTML Canvas as gif/jpg/png/pdf?

GreyBeardedGeek
  • 29,460
  • 2
  • 47
  • 67