Skip to content

ManualChartDataSource

ClassChartGuruChartGuru
[AddComponentMenu("ChartGuru/Data Sources/Manual Chart Data Source")]
[ExecuteAlways]
public class ManualChartDataSource : ChartDataSourceBase, IChartDataSource

Component for defining chart data manually in the Inspector. Attach to the same GameObject as ChartGraphic or reference a ChartGraphic. Supports single series and multi-series data with automatic updates.

public void AddDataPoint(string label, float value)

No description is available for this member.

Parameters

Name Type Description
label System.String
value System.Single
public void AddDataPoint(string label, float value, Color color)

No description is available for this member.

Parameters

Name Type Description
label System.String
value System.Single
color UnityEngine.Color
public void ClearData()

No description is available for this member.

public void SetData(string[] labels, float[] values)

No description is available for this member.

Parameters

Name Type Description
labels System.String[]
values System.Single[]
public void SetData(Dictionary<string, float> data)

No description is available for this member.

Parameters

Name Type Description
data System.Collections.Generic.Dictionary{System.String,System.Single}
public void SetData(float[] values)

No description is available for this member.

Parameters

Name Type Description
values System.Single[]
public void SetData(float[] xValues, float[] yValues)

No description is available for this member.

Parameters

Name Type Description
xValues System.Single[]
yValues System.Single[]
public void SetData(Vector2[] points)

No description is available for this member.

Parameters

Name Type Description
points UnityEngine.Vector2[]
public void AddDataPoint(float x, float y)

No description is available for this member.

Parameters

Name Type Description
x System.Single
y System.Single
public void InsertDataPoint(int index, string label, float value)

No description is available for this member.

Parameters

Name Type Description
index System.Int32
label System.String
value System.Single
public void InsertDataPoint(int index, float x, float y)

No description is available for this member.

Parameters

Name Type Description
index System.Int32
x System.Single
y System.Single
public void RemoveDataPointAt(int index)

No description is available for this member.

Parameters

Name Type Description
index System.Int32
public void SetValue(int index, float value)

No description is available for this member.

Parameters

Name Type Description
index System.Int32
value System.Single

ConfigureSingleSeries(string, Color, List, LinearGradientStyle)

Section titled “ConfigureSingleSeries(string, Color, List, LinearGradientStyle)”
public void ConfigureSingleSeries(string seriesName, Color primaryColor, List<ChartDataEntry> dataPoints, LinearGradientStyle primaryGradient = null)

No description is available for this member.

Parameters

Name Type Description
seriesName System.String
primaryColor UnityEngine.Color
dataPoints System.Collections.Generic.List{ChartGuru.ChartDataEntry}
primaryGradient ChartGuru.LinearGradientStyle
public void ConfigureMultiSeries(List<ChartDataSeries> dataSeries)

No description is available for this member.

Parameters

Name Type Description
dataSeries System.Collections.Generic.List{ChartGuru.ChartDataSeries}

ConfigureSurfaceGrid3D(string, SurfaceStyle, int, int, List)

Section titled “ConfigureSurfaceGrid3D(string, SurfaceStyle, int, int, List)”
public void ConfigureSurfaceGrid3D(string seriesName, SurfaceStyle style, int resolutionX, int resolutionZ, List<ChartDataEntry> samples)

No description is available for this member.

Parameters

Name Type Description
seriesName System.String
style ChartGuru.SurfaceStyle
resolutionX System.Int32
resolutionZ System.Int32
samples System.Collections.Generic.List{ChartGuru.ChartDataEntry}
public void ConfigureOverlayPoints(List<ChartDataEntry> overlayPoints)

No description is available for this member.

Parameters

Name Type Description
overlayPoints System.Collections.Generic.List{ChartGuru.ChartDataEntry}
public void ConfigureOverlayRectangles(List<ChartOverlayRectangleEntry> overlayRectangles)

No description is available for this member.

Parameters

Name Type Description
overlayRectangles System.Collections.Generic.List{ChartGuru.ChartOverlayRectangleEntry}
public void ConfigureReferenceRules(List<ManualChartReferenceRule> referenceRules)

No description is available for this member.

Parameters

Name Type Description
referenceRules System.Collections.Generic.List{ChartGuru.ManualChartReferenceRule}
public override void ApplyData()

Apply the configured data to all resolved target charts — both 2D ChartGuru.ChartGraphic targets and optional 3D ChartGuru.IChart3DHost targets (routed via ChartGuru.Chart3DIntegration when the ThreeD add-on is loaded).

BuildMarksForChartType(ChartType, ChartAuthoringStyleOptions)

Section titled “BuildMarksForChartType(ChartType, ChartAuthoringStyleOptions)”
public override List<IChartMark> BuildMarksForChartType(ChartType chartType, ChartAuthoringStyleOptions style)

Override that lets a UI Toolkit ChartGuruElement pull marks directly without an intermediate ChartGuru.ChartGraphic. The base class sets the active style override before calling, so existing Get* helpers transparently read the UITK style.

Parameters

Name Type Description
chartType ChartGuru.ChartType
style ChartGuru.ChartAuthoringStyleOptions

Returns

System.Collections.Generic.List{ChartGuru.IChartMark} — No return description is available.

SetData(IEnumerable, Func<T, string>, Func<T, float>)

Section titled “SetData(IEnumerable, Func<T, string>, Func<T, float>)”
public void SetData<T>(IEnumerable<T> data, Func<T, string> labelSelector, Func<T, float> valueSelector)

Set data from an arbitrary collection using a label and value selector.

Parameters

Name Type Description
data System.Collections.Generic.IEnumerable{{T}}
labelSelector System.Func{{T},System.String}
valueSelector System.Func{{T},System.Single}

SetData(IEnumerable, Func<T, float>, Func<T, float>)

Section titled “SetData(IEnumerable, Func<T, float>, Func<T, float>)”
public void SetData<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector)

Set data from an arbitrary collection using X and Y selectors.

Parameters

Name Type Description
data System.Collections.Generic.IEnumerable{{T}}
xSelector System.Func{{T},System.Single}
ySelector System.Func{{T},System.Single}

public DataMode DataMode { get; set; }

The data mode (SingleSeries or MultiSeries).

Returns

ChartGuru.DataMode — No return description is available.

public string SeriesName { get; set; }

The name for single-series data (shown in legend).

Returns

System.String — No return description is available.

public Color PrimaryColor { get; set; }

The primary color for single-series data. If transparent/clear, uses theme’s first series color.

Returns

UnityEngine.Color — No return description is available.

public LinearGradientStyle PrimaryGradient { get; set; }

No description is available for this member.

Returns

ChartGuru.LinearGradientStyle — No return description is available.

public bool UsePrimaryGradient { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public List<ChartDataEntry> DataPoints { get; set; }

The data points for single-series mode.

Returns

System.Collections.Generic.List{ChartGuru.ChartDataEntry} — No return description is available.

public List<ChartDataSeries> DataSeries { get; set; }

The data series for multi-series mode.

Returns

System.Collections.Generic.List{ChartGuru.ChartDataSeries} — No return description is available.

public bool UseSymbols { get; set; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public int Count { get; }

Number of data points in single-series mode, or total across all series in multi-series mode.

Returns

System.Int32 — No return description is available.