jshamble / TopChartJS

An implementation of D3.js for efficient, effective and informative charting.
GNU Affero General Public License v3.0
1 stars 0 forks source link

D3 Sizing #1

Closed jshamble closed 5 years ago

jshamble commented 5 years ago

I want to design a more elegant way to resize components.

The current way, although it does work, is very hacky and depends on CSS width and height percents and svg viewBox.

I want to have a more intuitive approach, either a WebGL style approach or something that can be scalable and integrated without too much of a learning curve. Any suggestions are welcome.

https://stackoverflow.com/questions/16265123/resize-svg-when-window-is-resized-in-d3-js

jshamble commented 5 years ago

I'm going to close this issue for now - it seems you can just specify the width and height via css, and then modify the view box parameters as you see fit.