Skip to content

IChartMark

InterfaceChartGuruChartGuru
public interface IChartMark

Rendering contract implemented by chart marks, including data, style, ordering, cloning, and morph projection.

(Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)

Projects this mark into plot-space geometry that the morph renderer can interpolate toward the requested chart type.

Parameters

Name Type
targetType ChartGuru.ChartType
plotArea UnityEngine.Rect

Returns

System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2}

IChartMark Clone()

Creates an independent copy of this I Chart Mark; later configuration changes do not affect the original instance.

Returns

ChartGuru.IChartMark

ChartType MarkType { get; }

Returns

ChartGuru.ChartType

DataPoint DataPoint { get; set; }

Returns

ChartGuru.DataPoint

Color ForegroundColor { get; set; }

Returns

UnityEngine.Color

bool Visible { get; }

Returns

System.Boolean

object SeriesKey { get; }

Returns

System.Object

string CategoryLabel { get; set; }

Category label for X-axis display (e.g., “Jan”, “Feb”, “Mar”). Separate from SeriesKey/ForegroundStyleKey which determine colors and legend.

Returns

System.String

Vector2 Offset { get; }

Offset applied to the mark in plot coordinates. Swift Charts equivalent: .Offset(x:y:)

Returns

UnityEngine.Vector2