chartist-js / chartist

Simple responsive charts
https://chartist.dev
MIT License
13.33k stars 2.54k forks source link

Support for viewBox for scalable and responsive charts #1402

Open evangelion1204 opened 1 year ago

evangelion1204 commented 1 year ago

Would you like to work on this feature?

What problem are you trying to solve?

I am aware that the advantage of charist is its responsiveness yet I would be more than glad to control the viewport allowing to create resizeable charts until a certain breakpoint. Because I created some Plugins for Legend, Hover, Highlights and Titles they tend to conflict in resizing.

Describe the solution you'd like

This can be an optional value in Options that could also be controled with resonsive options later on adjusting the viewport for mobile screens.

I would be more than happy to create a PR.

Describe alternatives you've considered

I tried different approaches using CSS classes with Media-Queries but they never created a reliable result when resizing in mobile resolutions.

Documentation, Adoption, Migration Strategy

No response