IChartMark
public interface IChartMarkRendering contract implemented by chart marks, including data, style, ordering, cloning, and morph projection.
Methods
Section titled “Methods”
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”(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}
Clone()
Section titled “Clone()”IChartMark Clone()Creates an independent copy of this I Chart Mark; later configuration changes do not affect the original instance.
Returns
ChartGuru.IChartMark
Properties
Section titled “Properties”
MarkType
Section titled “MarkType”ChartType MarkType { get; }Returns
ChartGuru.ChartType
DataPoint
Section titled “DataPoint”DataPoint DataPoint { get; set; }Returns
ChartGuru.DataPoint
ForegroundColor
Section titled “ForegroundColor”Color ForegroundColor { get; set; }Returns
UnityEngine.Color
Visible
Section titled “Visible”bool Visible { get; }Returns
System.Boolean
SeriesKey
Section titled “SeriesKey”object SeriesKey { get; }Returns
System.Object
CategoryLabel
Section titled “CategoryLabel”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
Offset
Section titled “Offset”Vector2 Offset { get; }Offset applied to the mark in plot coordinates. Swift Charts equivalent: .Offset(x:y:)
Returns
UnityEngine.Vector2