Skip to content

LayoutMetrics

StructChartGuruChartGuru
public struct LayoutMetrics

Stores computed layout metrics for a chart, organized by layers from chart edges inward. Layer 0: Chart edge padding Layer 0.5: Chart title/subtitle block Layer 1: Axis titles Layer 2: Axis labels Layer 3: Legend Layer 4: Plot border Remaining: Plot area

public float ScaleFactor

Text scale factor based on chart size relative to reference size.

Returns

System.Single

public float ContentScaleFactor

Content scale factor based on chart size, used for legend, symbols, and other content elements.

Returns

System.Single

public float AxisLabelFontSize

Scaled font size for axis labels.

Returns

System.Single

public float TitleFontSize

Scaled font size for titles.

Returns

System.Single

public float LegendFontSize

Scaled font size for legend.

Returns

System.Single

public float ChartTitleFontSize

Scaled font size for chart title.

Returns

System.Single

public float ChartSubtitleFontSize

Scaled font size for chart subtitle.

Returns

System.Single

public float EdgeLeft

Space consumed by chart edge Padding (Layer 0).

Returns

System.Single

public float EdgeRight

Space consumed by chart edge Padding (Layer 0).

Returns

System.Single

public float EdgeTop

Space consumed by chart edge Padding (Layer 0).

Returns

System.Single

public float EdgeBottom

Space consumed by chart edge Padding (Layer 0).

Returns

System.Single

public float ChartTitleTop

Space consumed by chart title/subtitle block (Layer 0.5).

Returns

System.Single

public float ChartTitleBottom

Space consumed by chart title/subtitle block (Layer 0.5).

Returns

System.Single

public float AxisTitleLeft

Space consumed by axis titles (Layer 1).

Returns

System.Single

public float AxisTitleRight

Space consumed by axis titles (Layer 1).

Returns

System.Single

public float AxisTitleTop

Space consumed by axis titles (Layer 1).

Returns

System.Single

public float AxisTitleBottom

Space consumed by axis titles (Layer 1).

Returns

System.Single

public float AxisLabelLeft

Space consumed by axis labels (Layer 2).

Returns

System.Single

public float AxisLabelRight

Space consumed by axis labels (Layer 2).

Returns

System.Single

public float AxisLabelTop

Space consumed by axis labels (Layer 2).

Returns

System.Single

public float AxisLabelBottom

Space consumed by axis labels (Layer 2).

Returns

System.Single

public float LegendLeft

Space consumed by legend (Layer 3).

Returns

System.Single

public float LegendRight

Space consumed by legend (Layer 3).

Returns

System.Single

public float LegendTop

Space consumed by legend (Layer 3).

Returns

System.Single

public float LegendBottom

Space consumed by legend (Layer 3).

Returns

System.Single

public float BorderLeft

Space consumed by plot Border (Layer 4).

Returns

System.Single

public float BorderRight

Space consumed by plot Border (Layer 4).

Returns

System.Single

public float BorderTop

Space consumed by plot Border (Layer 4).

Returns

System.Single

public float BorderBottom

Space consumed by plot Border (Layer 4).

Returns

System.Single

public float TotalLeft { get; }

Total space on left side (sum of all layers).

Returns

System.Single

public float TotalRight { get; }

Total space on right side (sum of all layers).

Returns

System.Single

public float TotalTop { get; }

Total space on top (sum of all layers).

Returns

System.Single

public float TotalBottom { get; }

Total space on bottom (sum of all layers).

Returns

System.Single