-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control the SVG size and width/height ratio #41
Comments
The width of the svg depends on its parent. You can change the width of its parent to change its size. |
The ratio of with and height is hard coded to 4/3. Adding a setting to config it might be good. I am considering adding this |
It would be nice if added a new setting opts for it. |
Try <div style="width:800px;">
<svg class="line-chart"></svg>
</div> |
It works, :)
and is this will be changed in the future? |
The default will always be 4/3, I think adding an option to change it might be good |
I will keep this issue open for size & ratio related updates |
Hi @timqian, Is there a easy way to control the SVG size?
I try to set
width
andheight
attr like thisbut it seem doesn't work. :)
The text was updated successfully, but these errors were encountered: