-
Notifications
You must be signed in to change notification settings - Fork 271
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
In case chart height is not set via CSS, gives an error #12
Comments
Yup, shouldn't be too hard. Will add this soon. |
Issue fixed. |
I have set CSS h/w but still getting Please set height and width for the chart element ? |
I'm in the same boat:
always return zero. I suspect that perhaps the link function is being called prior to that portion of the page being rendered, so the values are zero. I've tried applying the width/height properties to an ID, via class, and inline via style="", and in any of the the cases clientWidth and clientHeight still return zero. Will continue investigating. |
I debugged this further, and at least in my case, is related to Angular bootstrap-ui tabs being used. Then I ran into this posting: |
I have looked at the plunker and tried to fork this with AngularJS v1.4.6 (It was using AngularJS v1.2.2) then its not working. Can any one guide here if it is working on latest angularjs versions |
In case chart height is not set, it is very easy to end up with this D3 error:
You might want to add a warning there to make the library nicer to use.
The text was updated successfully, but these errors were encountered: