Skip to content

ChartProxy

ClassChartGuruChartGuru
public class ChartProxy

Coordinate mapping and hit detection for charts. Similar to ChartProxy in Swift Charts, enables interaction between screen coordinates and data space.

Swift Charts equivalent: ChartProxy from .chartOverlay { proxy in … }

public ChartProxy(Chart chart)

No description is available for this member.

Parameters

Name Type Description
chart ChartGuru.Chart

public Chart Chart { get; }

Updates the cached bar geometries for accurate hit detection. Should be called after layout computation.

Returns

ChartGuru.Chart — No return description is available.

public Rect PlotAreaFrame { get; }

Enumerates the X-axis domain. For a band axis this returns the configured category strings; otherwise the lower/upper bounds. Swift Charts equivalent: proxy.xDomain

Returns

UnityEngine.Rect — No return description is available.

public Rect PlotFrame { get; }

Plot frame matching newer Swift Charts naming. Swift Charts equivalent: proxy.plotFrame

Returns

UnityEngine.Rect — No return description is available.

public Vector2 PlotSize { get; }

Plot area size in pixels. Equivalent to PlotFrame.size. Swift Charts equivalent: proxy.plotSize

Returns

UnityEngine.Vector2 — No return description is available.

public Rect PlotContainerFrame { get; }

The full chart container rect in screen coordinates (plot area plus surrounding axis decorations and labels). Swift Charts equivalent: proxy.plotContainerFrame

Returns

UnityEngine.Rect — No return description is available.

public ClosedRange<float> VisibleXDomain { get; }

Current X domain visible in the chart viewport.

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

public ClosedRange<float> VisibleYDomain { get; }

Current Y domain visible in the chart viewport.

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

public ClosedRange<float> DataXDomain { get; }

Raw X domain from chart data before viewport clipping.

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

public ClosedRange<float> DataYDomain { get; }

Raw Y domain from chart data before viewport clipping.

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

public float ScrollPositionX { get; }

Current X scroll position expressed as the visible domain’s lower bound.

Returns

System.Single — No return description is available.

public float ScrollPositionY { get; }

Current Y scroll position expressed as the visible domain’s lower bound.

Returns

System.Single — No return description is available.

public bool IsXViewportActive { get; }

Returns true when the X axis is currently showing a clipped viewport rather than the full data domain.

Returns

System.Boolean — No return description is available.

public bool IsYViewportActive { get; }

Returns true when the Y axis is currently showing a clipped viewport rather than the full data domain.

Returns

System.Boolean — No return description is available.

public DataPoint? Value(Vector2 location)

No description is available for this member.

Parameters

Name Type Description
location UnityEngine.Vector2

Returns

System.Nullable{ChartGuru.DataPoint} — No return description is available.

public DataPoint? NearestValueAtX(float screenX)

No description is available for this member.

Parameters

Name Type Description
screenX System.Single

Returns

System.Nullable{ChartGuru.DataPoint} — No return description is available.

public float ValueAtX(float screenX)

No description is available for this member.

Parameters

Name Type Description
screenX System.Single

Returns

System.Single — No return description is available.

public float ValueAtY(float screenY)

No description is available for this member.

Parameters

Name Type Description
screenY System.Single

Returns

System.Single — No return description is available.

public float? AngleAt(Vector2 location)

No description is available for this member.

Parameters

Name Type Description
location UnityEngine.Vector2

Returns

System.Nullable{System.Single} — No return description is available.

public Vector2 Position(DataPoint dataPoint)

No description is available for this member.

Parameters

Name Type Description
dataPoint ChartGuru.DataPoint

Returns

UnityEngine.Vector2 — No return description is available.

public float PositionForX(float xValue)

No description is available for this member.

Parameters

Name Type Description
xValue System.Single

Returns

System.Single — No return description is available.

public float PositionForY(float yValue)

No description is available for this member.

Parameters

Name Type Description
yValue System.Single

Returns

System.Single — No return description is available.

public Vector2 PositionRangeForX(ClosedRange<float> range)

No description is available for this member.

Parameters

Name Type Description
range ChartGuru.ClosedRange{System.Single}

Returns

UnityEngine.Vector2 — No return description is available.

public Vector2 PositionRangeForY(ClosedRange<float> range)

No description is available for this member.

Parameters

Name Type Description
range ChartGuru.ClosedRange{System.Single}

Returns

UnityEngine.Vector2 — No return description is available.

public Vector2 PositionRangeForX(float xValue)

No description is available for this member.

Parameters

Name Type Description
xValue System.Single

Returns

UnityEngine.Vector2 — No return description is available.

public Vector2 PositionRangeForY(float yValue)

No description is available for this member.

Parameters

Name Type Description
yValue System.Single

Returns

UnityEngine.Vector2 — No return description is available.

public Color? ForegroundStyle(object value)

No description is available for this member.

Parameters

Name Type Description
value System.Object

Returns

System.Nullable{UnityEngine.Color} — No return description is available.

public SymbolShape? Symbol(object value)

No description is available for this member.

Parameters

Name Type Description
value System.Object

Returns

System.Nullable{ChartGuru.SymbolShape} — No return description is available.

public StrokeStyle? LineStyle(object value)

No description is available for this member.

Parameters

Name Type Description
value System.Object

Returns

System.Nullable{ChartGuru.StrokeStyle} — No return description is available.

public float? SymbolSize(object value)

No description is available for this member.

Parameters

Name Type Description
value System.Object

Returns

System.Nullable{System.Single} — No return description is available.

public IReadOnlyList<object> XDomain()

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{System.Object} — No return description is available.

public IReadOnlyList<object> YDomain()

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{System.Object} — No return description is available.

public IReadOnlyList<object> ForegroundStyleDomain()

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{System.Object} — No return description is available.

public IReadOnlyList<object> SymbolDomain()

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{System.Object} — No return description is available.

public IReadOnlyList<object> LineStyleDomain()

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{System.Object} — No return description is available.

public IReadOnlyList<object> SymbolSizeDomain()

No description is available for this member.

Returns

System.Collections.Generic.IReadOnlyList{System.Object} — No return description is available.

public void UpdateBarGeometries(IReadOnlyList<BarGeometry> bars)

No description is available for this member.

Parameters

Name Type Description
bars System.Collections.Generic.IReadOnlyList{ChartGuru.BarGeometry}
public void UpdateSectorGeometries(IReadOnlyList<SectorGeometry> sectors)

No description is available for this member.

Parameters

Name Type Description
sectors System.Collections.Generic.IReadOnlyList{ChartGuru.SectorGeometry}

UpdateCandlestickGeometries(IReadOnlyList)

Section titled “UpdateCandlestickGeometries(IReadOnlyList)”
public void UpdateCandlestickGeometries(IReadOnlyList<CandleGeometry> candles)

No description is available for this member.

Parameters

Name Type Description
candles System.Collections.Generic.IReadOnlyList{ChartGuru.CandleGeometry}
public void UpdatePointGeometries(IReadOnlyList<PointGeometry> points)

No description is available for this member.

Parameters

Name Type Description
points System.Collections.Generic.IReadOnlyList{ChartGuru.PointGeometry}
public void SyncGeometries(ChartLayoutEngine layoutEngine)

No description is available for this member.

Parameters

Name Type Description
layoutEngine ChartGuru.ChartLayoutEngine
public void UpdateScreenRect(Rect screenRect)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
public bool SelectAtPosition(Vector2 screenPosition)

No description is available for this member.

Parameters

Name Type Description
screenPosition UnityEngine.Vector2

Returns

System.Boolean — No return description is available.

public bool SelectAngleAtPosition(Vector2 screenPosition)

No description is available for this member.

Parameters

Name Type Description
screenPosition UnityEngine.Vector2

Returns

System.Boolean — No return description is available.

public bool SelectAtX(float screenX)

No description is available for this member.

Parameters

Name Type Description
screenX System.Single

Returns

System.Boolean — No return description is available.

public ClosedRange<float> SelectXRange(float startScreenX, float endScreenX)

No description is available for this member.

Parameters

Name Type Description
startScreenX System.Single
endScreenX System.Single

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

public ClosedRange<float> SelectYRange(float startScreenY, float endScreenY)

No description is available for this member.

Parameters

Name Type Description
startScreenY System.Single
endScreenY System.Single

Returns

ChartGuru.ClosedRange{System.Single} — No return description is available.

public void ClearRanges()

No description is available for this member.

public void ScrollXBy(float delta)

No description is available for this member.

Parameters

Name Type Description
delta System.Single
public void ScrollYBy(float delta)

No description is available for this member.

Parameters

Name Type Description
delta System.Single
public void ScrollToX(float value)

No description is available for this member.

Parameters

Name Type Description
value System.Single
public void ScrollToY(float value)

No description is available for this member.

Parameters

Name Type Description
value System.Single
public void PanByPixels(Vector2 pixelDelta)

No description is available for this member.

Parameters

Name Type Description
pixelDelta UnityEngine.Vector2
public void ZoomX(float zoomFactor, float anchorScreenX)

No description is available for this member.

Parameters

Name Type Description
zoomFactor System.Single
anchorScreenX System.Single
public void ZoomY(float zoomFactor, float anchorScreenY)

No description is available for this member.

Parameters

Name Type Description
zoomFactor System.Single
anchorScreenY System.Single
public void Zoom(float zoomFactorX, float zoomFactorY, Vector2 anchorScreenPosition)

No description is available for this member.

Parameters

Name Type Description
zoomFactorX System.Single
zoomFactorY System.Single
anchorScreenPosition UnityEngine.Vector2
public void ResetXViewport()

No description is available for this member.

public void ResetYViewport()

No description is available for this member.

public void ResetViewport()

No description is available for this member.

public int GetDataPointIndexAt(Vector2 screenPosition)

No description is available for this member.

Parameters

Name Type Description
screenPosition UnityEngine.Vector2

Returns

System.Int32 — No return description is available.

public Vector2 GetPositionFor(DataPoint dataPoint)

No description is available for this member.

Parameters

Name Type Description
dataPoint ChartGuru.DataPoint

Returns

UnityEngine.Vector2 — No return description is available.

public float GetXValueAt(float screenX)

No description is available for this member.

Parameters

Name Type Description
screenX System.Single

Returns

System.Single — No return description is available.

public float GetYValueAt(float screenY)

No description is available for this member.

Parameters

Name Type Description
screenY System.Single

Returns

System.Single — No return description is available.

public int GetNearestDataPointIndexAtX(float xValue)

No description is available for this member.

Parameters

Name Type Description
xValue System.Single

Returns

System.Int32 — No return description is available.

public int GetDataPointIndexAtX(float screenX)

No description is available for this member.

Parameters

Name Type Description
screenX System.Single

Returns

System.Int32 — No return description is available.