-
Notifications
You must be signed in to change notification settings - Fork 36
Chart size problem #37
Comments
Could you please provide a example because in the demo I don't see that behaviour. |
@dyorgio thanks for the clarification |
@moberwasserlechner @gokhanoner canvas.setAttribute('height', '100%'); The problem stops, but, in my retina display (HDPi), the chart appears smooth (bad rendered). |
@dyorgio Could you please share your configuration, because in the mentioned issue resizing problems appear if 'responsive' option was set to false. |
@moberwasserlechner I made new test with this modification:
Now the problem only occurs if I use chart.maintainAspectRatio(true). But, using chart.maintainAspectRatio(false) works perfectly to me, including responsive resizing. Animations stopped to work using % sizes, if I change to pixels animations works ok. |
@moberwasserlechner The width in state object is a string (e.g. 100%) state.width > 0 will always return false. If you change the line to state.width.length > 0 or something similar it should work. Best regards |
I'm just looking to the demo site, pie with data refresh example. When I refresh the data, chart size incorrectly until you resize the browser. |
When set the chart size using setSizeFull(), i expect to see the chart sized correctly, but instead it overflows and some part is not seen on the screen.
The text was updated successfully, but these errors were encountered: