chartist icon indicating copy to clipboard operation
chartist copied to clipboard

How to make chartist graph resize to fit it's outside container?

Open P1llus opened this issue 6 years ago • 1 comments

Hey guys!

So i am using gridstack.js to create a customizable dashboard. The user is able to drag it's content around, and that works fine.

When a user resize it's container the width of the graph is always okay, but the height never stays inside the container. Is it a way to force a chart to always fit inside a container? Or does Chartist only support specific width/height ratios?

Example is here: image

P1llus avatar Apr 18 '18 18:04 P1llus

Hello @P1llus 👋

Chartist has recently been updated to version 1.0 with some new exciting changes like ESM and TypeScript support. The migration guide can be found right here.

Please let me know if the question is still relevant to you so we can further look into it!

Arantiryo avatar Oct 29 '22 10:10 Arantiryo