Dynamically change margins, offsets and others for already initialized HC
It will be a good feature to allow change chart and legend margins and offsets dynamically for already initialized HC.
Implemented since v5
-
Martin Waters At Akixi.com commented
Dear Product Management Team Member,
Please consider an enhancement to allow the margins and other offset properties to be set dynamically in HighCharts JavaScript.
In particular, this enhancement is necessary to make the plot content of 3d column & bar charts look reasonable to users when the chart's wrapper area size changed in a "resizable" area or window.
Generally speaking the default positioning/auto-margin logic for 3d column & bar charts does not make the chart look good for all chart sizes, and therefore the application needs to adjust margins and the depth properties. For example, for large chart areas such as 1600x1200, very large margins are required otherwise the "x/y-axis cage line" are drawn outside of the viewing area or the chart legend area overlaps the x-axis labels. In contrast for smaller chart areas (particular on mobile devices), the margin needs to be set much smaller to reduce the whitespace at the outer edges of the chart area.
Note that the 3d depth property can already be changed dynamically - it seems erroneous that the margin properties cannot be changed as well.