You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating from 2.5.0 to 2.7.1 I've found the Polar Area Chart has changed something about how it is displayed. There's now a lot of padding on either side of the graph, so that it no longer fills the div in which the canvas is placed.
Expected Behavior
Polar Area Chart should fill the div within which the canvas is placed.
Current Behavior
Polar Area Chart adds a lot of padding, or sizes itself such that there is a lot of 'white space' around it.
Note that I do set padding of 18 in the chart settings, this is just to accommodate the background image that contains the labels for around the chart that you can see in the screenshots.
Context
See screenshots linked above.
We are generating a report based on a user submitted questionnaire. Our output provides both the Polar Area Chart and a table of results and additional interpretation. Using 2.5.0 the chart is sized correctly for our report. Using 2.7.1 it is too small. We do want to be sure to keep it responsive, because many of our users are on mobile devices.
Environment
Chart.js version: 2.7.1 and 2.5.0
Browser name and version: Safari Release 48 (Safari 11.2, WebKit 13606.1.2.2) and Chrome 63.0.3239.132
The text was updated successfully, but these errors were encountered:
When updating from 2.5.0 to 2.7.1 I've found the Polar Area Chart has changed something about how it is displayed. There's now a lot of padding on either side of the graph, so that it no longer fills the div in which the canvas is placed.
Expected Behavior
Polar Area Chart should fill the div within which the canvas is placed.
Current Behavior
Polar Area Chart adds a lot of padding, or sizes itself such that there is a lot of 'white space' around it.
See screenshots of the actual output on our site:
screenshot - using 2.5.0
screenshot - using 2.7.1
Possible Solution
unknown
Steps to Reproduce (for bugs)
Two codepen examples (the only difference between the two is the version of chart.js being loaded)
codepen using 2.5.0
codepen using 2.7.1
Note that I do set padding of 18 in the chart settings, this is just to accommodate the background image that contains the labels for around the chart that you can see in the screenshots.
Context
See screenshots linked above.
We are generating a report based on a user submitted questionnaire. Our output provides both the Polar Area Chart and a table of results and additional interpretation. Using 2.5.0 the chart is sized correctly for our report. Using 2.7.1 it is too small. We do want to be sure to keep it responsive, because many of our users are on mobile devices.
Environment
The text was updated successfully, but these errors were encountered: