Aspect Ratio
Properties used to adjust the aspect ratio in one dimensional plots
adjustAspectRatio
boolean
Flag to automatically adjust the size of the bars or points in the one
dimensional plots to fit in the provided canvas width
and height. If the flag is set to 'false' the width and
height of the canvas will be sized according to the
number of bars or points in the data set.
Default:
true
Used in:
Area,
AreaLine,
Bar,
BarLine,
Boxplot,
Candlestick,
DotLine,
Dotplot,
Heatmap,
Line,
Stacked,
StackedLine,
StackedPercent,
StackedPercentLine,
TagCloud,
Treemap
adjustAspectRatioMax
integer
Specifies the number of times to try to automatically adjust the size of
the canvas when adjustAspectRatio is true
Default:
3
Used in:
Area,
AreaLine,
Bar,
BarLine,
Boxplot,
Candlestick,
DotLine,
Dotplot,
Heatmap,
Line,
Stacked,
StackedLine,
StackedPercent,
StackedPercentLine,
TagCloud,
Treemap
Counter set when trying to automatically adjust the horizontal size of the
canvas when adjustAspectRatio is true
Default:
Used in:
Area,
AreaLine,
Bar,
BarLine,
Boxplot,
Candlestick,
DotLine,
Dotplot,
Heatmap,
Line,
Stacked,
StackedLine,
StackedPercent,
StackedPercentLine,
TagCloud,
Treemap
Counter set when trying to automatically adjust the vertical size of the
canvas when adjustAspectRatio is true
Default:
Used in:
Area,
AreaLine,
Bar,
BarLine,
Boxplot,
Candlestick,
DotLine,
Dotplot,
Heatmap,
Line,
Stacked,
StackedLine,
StackedPercent,
StackedPercentLine,
TagCloud,
Treemap