panosoft / node-chartist

SVG Charts on the server.
The Unlicense
83 stars 20 forks source link

Responsive #9

Closed MichaelJC91 closed 7 years ago

MichaelJC91 commented 8 years ago

How do I make the charts responsive with this library?

alexgig commented 7 years ago

Hello @MichaelJC91,

Since this library renders charts on the server and not within a browser window, the concept of "responsive" doesn't really make sense. This library just returns a chart svg of the specified size at render time.

That said, the best you can do on the server side is call generate with appropriate width and height options.

If you need something truly responsive, then I'd recommend running Chartist.js on the front-end.

Hope that helps.

Best regards, Alex