mercredi 14 juin 2017

C3 chart width changes on show/hide

I am working on an ember project and using C3 charts in that for data visualisation . On one page I have a requirement to put 2 charts and need to do show/hide on button click(toggle effect). But on toggling the second chart(initially hidden) , the width of chart gets changed(increased ) , but first chart(initially shown) stays as expected.

One more thing that I noticed , is that if I open the console to debug , that second chart comes back to its original width. It's very strange , not able to understand this behaviour .

If someone have any idea about this issue. Kindly share ...




Aucun commentaire:

Enregistrer un commentaire