Skip to content

ChartRenderer

ClassChartGuruChartGuru
public class ChartRenderer

Main chart renderer that orchestrates all rendering operations. Uses GL immediate mode for Editor compatibility and clean anti-aliased output.

Rendering is organized into partial classes:

  • ChartRenderer.cs: Core initialization, main render loop, label caching, utility methods
  • ChartRenderer.Bars.cs: Bar, horizontal bar, candlestick, and waterfall rendering
  • ChartRenderer.Lines.cs: Line, area, point/scatter, interpolation, and polyline drawing
  • ChartRenderer.Sectors.cs: Pie, donut, and sector rendering with triangulation
  • ChartRenderer.Grid.cs: Grid, axes, background, and border rendering
  • ChartRenderer.Primitives.cs: Symbol shapes, polygon clipping, rounded rect drawing
  • ChartRenderer.Special.cs: Radar, indicator, rules, heatmap, selection, tiny charts

TryInvokeCustomSymbolRenderer(ChartMark, SymbolShape, Vector2, float, Color)

Section titled “TryInvokeCustomSymbolRenderer(ChartMark, SymbolShape, Vector2, float, Color)”
public static bool TryInvokeCustomSymbolRenderer(ChartMark mark, SymbolShape shape, Vector2 center, float radius, Color color)

No description is available for this member.

Parameters

Name Type Description
mark ChartGuru.ChartMark
shape ChartGuru.SymbolShape
center UnityEngine.Vector2
radius System.Single
color UnityEngine.Color

Returns

System.Boolean — No return description is available.

public List<AxisLabelInfo> GetXAxisLabels(Rect screenRect)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect

Returns

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

public List<AxisLabelInfo> GetYAxisLabels(Rect screenRect)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect

Returns

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

public List<DataLabelInfo> GetDataLabelPositions(Rect screenRect)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect

Returns

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

public void InvalidateSeriesColorCache()

No description is available for this member.

public void Dispose()

No description is available for this member.

public bool Tick(float deltaTime, bool allowAnimation = true)

No description is available for this member.

Parameters

Name Type Description
deltaTime System.Single
allowAnimation System.Boolean

Returns

System.Boolean — No return description is available.

public void RenderToTexture(RenderTexture target)

No description is available for this member.

Parameters

Name Type Description
target UnityEngine.RenderTexture

RenderToTexture(RenderTexture, float, bool)

Section titled “RenderToTexture(RenderTexture, float, bool)”
public void RenderToTexture(RenderTexture target, float deltaTime, bool allowAnimation = true)

No description is available for this member.

Parameters

Name Type Description
target UnityEngine.RenderTexture
deltaTime System.Single
allowAnimation System.Boolean
public void Render(Rect screenRect)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
public void RenderGL(Rect screenRect)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
public void RenderInto(IChartDrawSink sink, Rect screenRect, float scale)

No description is available for this member.

Parameters

Name Type Description
sink ChartGuru.IChartDrawSink
screenRect UnityEngine.Rect
scale System.Single
public void RenderGL(Rect screenRect, float scale)

No description is available for this member.

Parameters

Name Type Description
screenRect UnityEngine.Rect
scale System.Single

public Color? BackgroundColorOverride { get; set; }

No description is available for this member.

Returns

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

public ChartBackgroundMode? BackgroundModeOverride { get; set; }

When non-null, overrides the theme’s BackgroundMode.

Returns

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

public LinearGradientStyle BackgroundGradientOverride { get; set; }

Overrides the theme’s BackgroundGradient (LinearGradient mode).

Returns

ChartGuru.LinearGradientStyle — No return description is available.

public FourCornerGradient? BackgroundFourCornerOverride { get; set; }

Overrides the theme’s BackgroundFourCorner (FourCornerGradient mode).

Returns

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

public float RenderScale { get; set; }

Scale factor applied to line widths, corner radii, and other pixel-based values. Set this to match the canvas scale factor when rendering to a RenderTexture.

Returns

System.Single — No return description is available.

public IReadOnlyList<AxisLabelInfo> CachedXAxisLabels { get; }

Gets the cached X-axis labels from the last render pass.

Returns

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

public IReadOnlyList<AxisLabelInfo> CachedYAxisLabels { get; }

Gets the cached Y-axis labels from the last render pass.

Returns

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

public IReadOnlyList<DataLabelInfo> CachedDataLabels { get; }

Gets the cached data labels from the last render pass.

Returns

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

public IReadOnlyList<DataLabelInfo> AnimatedDataLabels { get; }

Gets the animated data labels from the last render pass. These are computed using animated values during morphing.

Returns

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

public IReadOnlyList<LegendLabelInfo> CachedLegendLabels { get; }

Gets the cached legend labels from the last render pass.

Returns

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

public ColorScaleLegendInfo CachedColorScaleLegend { get; }

Gets the cached color scale legend info (for heatmap gradient bars).

Returns

ChartGuru.ColorScaleLegendInfo — No return description is available.

public AxisTitleInfo CachedXAxisTitle { get; }

Gets the cached X-axis title info from the last render pass.

Returns

ChartGuru.AxisTitleInfo — No return description is available.

public AxisTitleInfo CachedYAxisTitle { get; }

Gets the cached Y-axis title info from the last render pass.

Returns

ChartGuru.AxisTitleInfo — No return description is available.

public Chart Chart { get; }

No description is available for this member.

Returns

ChartGuru.Chart — No return description is available.

public ChartMorpher Morpher { get; }

No description is available for this member.

Returns

ChartGuru.ChartMorpher — No return description is available.

public bool IsInitialized { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public ChartLayoutEngine LayoutEngine { get; }

Gets the layout engine for accessing computed layout data.

Returns

ChartGuru.ChartLayoutEngine — No return description is available.

public bool IsAnimating { get; }

No description is available for this member.

Returns

System.Boolean — No return description is available.

public ChartRenderer(Chart chart)

No description is available for this member.

Parameters

Name Type Description
chart ChartGuru.Chart