Skip to content

BarGeometry

StructChartGuruChartGuru
public struct BarGeometry

Screen-space geometry for a single bar.

public float X

X position of bar left edge.

Returns

System.Single

public float Y

Y position of bar bottom (Cartesian) or top (GUI).

Returns

System.Single

public float Width

Width of the bar.

Returns

System.Single

public float Height

Height of the bar.

Returns

System.Single

public int MarkIndex

Mark index this bar represents.

Returns

System.Int32

public int SeriesIndex

Series index this bar belongs to.

Returns

System.Int32

public int DataPointIndex

Data point index within the series.

Returns

System.Int32

public Color Color

Color of the bar.

Returns

UnityEngine.Color

public float Value

Data value this bar represents.

Returns

System.Single

public bool IsNegative

Whether this bar represents a negative value.

Returns

System.Boolean

public float CornerRadius

Corner radius for rounded bars.

Returns

System.Single

public bool IsLeftmostOrBottommost

Whether this is the leftmost bar in a horizontal stack (or bottommost in vertical).

Returns

System.Boolean

public bool IsRightmostOrTopmost

Whether this is the rightmost bar in a horizontal stack (or topmost in vertical).

Returns

System.Boolean