How to make ejs-sparkline chart responsive.

How to make ejs-sparkline chart (column and line chart type) responsive. The height and width of the chart should increase or decrease when we increase or decrease the outer div.


1 Reply

DV Duraimurugan Vedagiri Syncfusion Team August 30, 2021 12:31 PM UTC

Hi Priyanka,

Thanks for contacting Syncfusion support.

We have analyzed the reported query - "How to make Sparkline Charts responsive?". By default, Sparkline Charts are rendered in a responsive layout with respective to the parent container and you can customize them by providing Sparkline height and width properties to percentage value. For your reference, please find sample and documentation from below link

Sample Link: https://stackblitz.com/edit/angular-xujwgg?file=app.component.html

Documentation Link: https://ej2.syncfusion.com/angular/documentation/sparkline/sparkline-dimension/

Regards,
Durai Murugan V 


Loader.
Up arrow icon