Closed jithinsayone closed 6 years ago
just change your old width/height with your new width/heigth container when window event resize trigerred. and also you need to re scale your svg. if not your svg will display behalf (some word missing)
or you can try this : https://julienrenaux.fr/2014/09/23/d3-js-responsive-word-cloud/
The SVG can be made responsive by defining the viewBox attribute and styling width and height. See PR #128 for an example.
just change your old width/height with your new width/heigth container when window event resize trigerred.
and also you need to re scale your svg. if not your svg will display behalf (some word missing)
or you can try this : https://julienrenaux.fr/2014/09/23/d3-js-responsive-word-cloud/