Skip to content

ChartDataSourceAsset.Entry

StructChartGuruChartGuru
public struct ChartDataSourceAsset.Entry

One labelled value inside a series.

[Tooltip("Category label for this entry. Drives the X-axis on cartesian charts and slice labels on pie/donut.")]
public string Label

Returns

System.String

[Tooltip("Primary Value (Y on cartesian charts; magnitude on pie/donut/radar).")]
public float Value

Returns

System.Single

[Tooltip("Optional per-entry colour. Leave fully transparent (alpha = 0) to use the series colour or theme.")]
public Color ColorOverride

Returns

UnityEngine.Color

public Entry(string label, float value)

Creates a labelled series value that inherits its color from the series or active theme.

Parameters

Name Type
label System.String
value System.Single
public Entry(string label, float value, Color colorOverride)

Creates a labelled series value with an explicit per-entry color override.

Parameters

Name Type
label System.String
value System.Single
colorOverride UnityEngine.Color