Skip to content

LayoutSnapshot

ClassChartGuruChartGuru
public class LayoutSnapshot

A snapshot of all layout data from ChartLayoutEngine. Use this to get layout in a specific coordinate system.

public Rect PlotArea

The plot area rectangle.

Returns

UnityEngine.Rect

public List<AxisLabelInfo> XAxisLabels

X-axis labels.

Returns

System.Collections.Generic.List{ChartGuru.AxisLabelInfo}

public List<AxisLabelInfo> YAxisLabels

Y-axis labels.

Returns

System.Collections.Generic.List{ChartGuru.AxisLabelInfo}

public List<DataLabelInfo> DataLabels

Data labels.

Returns

System.Collections.Generic.List{ChartGuru.DataLabelInfo}

public List<LegendLabelInfo> LegendLabels

Legend labels.

Returns

System.Collections.Generic.List{ChartGuru.LegendLabelInfo}

public ColorScaleLegendInfo ColorScaleLegend

Color scale legend info for heatmap gradient bars.

Returns

ChartGuru.ColorScaleLegendInfo

public AxisTitleInfo XAxisTitle

X-axis title.

Returns

ChartGuru.AxisTitleInfo

public AxisTitleInfo YAxisTitle

Y-axis title.

Returns

ChartGuru.AxisTitleInfo

public CoordinateSystem CoordinateSystem

The coordinate system these positions are in.

Returns

ChartGuru.CoordinateSystem

public BarLayoutParams BarLayout

Bar layout parameters (for bar charts).

Returns

ChartGuru.BarLayoutParams

public List<BarGeometry> Bars

Individual bar geometries.

Returns

System.Collections.Generic.List{ChartGuru.BarGeometry}

public PieLayoutParams PieLayout

Pie layout parameters (for pie/donut charts).

Returns

ChartGuru.PieLayoutParams

public List<SectorGeometry> Sectors

Individual sector geometries.

Returns

System.Collections.Generic.List{ChartGuru.SectorGeometry}

public LineLayoutParams LineLayout

Line layout parameters (for line/area charts).

Returns

ChartGuru.LineLayoutParams

public List<PointGeometry> Points

Individual point geometries.

Returns

System.Collections.Generic.List{ChartGuru.PointGeometry}

public List<CandleGeometry> Candles

Individual candlestick geometries.

Returns

System.Collections.Generic.List{ChartGuru.CandleGeometry}

public LabelRotation ResolvedXLabelRotation

Resolved X-axis label rotation chosen by the layout engine (Auto when no labels were computed). Consumers rendering the labels should honor this so inset offsets baked into XAxisLabels match the rendered glyph rotation.

Returns

ChartGuru.LabelRotation

public LegendPosition ResolvedLegendPosition

Legend position after Automatic resolution. When the configured position is Automatic this is Bottom for multi-series charts or Hidden otherwise.

Returns

ChartGuru.LegendPosition

public LayoutSnapshot()