ChartRenderer
public class ChartRendererMain 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
Methods
Section titled “Methods”
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.
GetXAxisLabels(Rect)
Section titled “GetXAxisLabels(Rect)”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.
GetYAxisLabels(Rect)
Section titled “GetYAxisLabels(Rect)”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.
GetDataLabelPositions(Rect)
Section titled “GetDataLabelPositions(Rect)”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.
InvalidateSeriesColorCache()
Section titled “InvalidateSeriesColorCache()”public void InvalidateSeriesColorCache()No description is available for this member.
Dispose()
Section titled “Dispose()”public void Dispose()No description is available for this member.
Tick(float, bool)
Section titled “Tick(float, bool)”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.
RenderToTexture(RenderTexture)
Section titled “RenderToTexture(RenderTexture)”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 | |
Render(Rect)
Section titled “Render(Rect)”public void Render(Rect screenRect)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
screenRect |
UnityEngine.Rect | |
RenderGL(Rect)
Section titled “RenderGL(Rect)”public void RenderGL(Rect screenRect)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
screenRect |
UnityEngine.Rect | |
RenderInto(IChartDrawSink, Rect, float)
Section titled “RenderInto(IChartDrawSink, Rect, float)”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 | |
RenderGL(Rect, float)
Section titled “RenderGL(Rect, float)”public void RenderGL(Rect screenRect, float scale)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
screenRect |
UnityEngine.Rect | |
scale |
System.Single |
Properties
Section titled “Properties”
BackgroundColorOverride
Section titled “BackgroundColorOverride”public Color? BackgroundColorOverride { get; set; }No description is available for this member.
Returns
System.Nullable{UnityEngine.Color} — No return description is available.
BackgroundModeOverride
Section titled “BackgroundModeOverride”public ChartBackgroundMode? BackgroundModeOverride { get; set; }When non-null, overrides the theme’s BackgroundMode.
Returns
System.Nullable{ChartGuru.ChartBackgroundMode} — No return description is available.
BackgroundGradientOverride
Section titled “BackgroundGradientOverride”public LinearGradientStyle BackgroundGradientOverride { get; set; }Overrides the theme’s BackgroundGradient (LinearGradient mode).
Returns
ChartGuru.LinearGradientStyle — No return description is available.
BackgroundFourCornerOverride
Section titled “BackgroundFourCornerOverride”public FourCornerGradient? BackgroundFourCornerOverride { get; set; }Overrides the theme’s BackgroundFourCorner (FourCornerGradient mode).
Returns
System.Nullable{ChartGuru.FourCornerGradient} — No return description is available.
RenderScale
Section titled “RenderScale”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.
CachedXAxisLabels
Section titled “CachedXAxisLabels”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.
CachedYAxisLabels
Section titled “CachedYAxisLabels”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.
CachedDataLabels
Section titled “CachedDataLabels”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.
AnimatedDataLabels
Section titled “AnimatedDataLabels”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.
CachedLegendLabels
Section titled “CachedLegendLabels”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.
CachedColorScaleLegend
Section titled “CachedColorScaleLegend”public ColorScaleLegendInfo CachedColorScaleLegend { get; }Gets the cached color scale legend info (for heatmap gradient bars).
Returns
ChartGuru.ColorScaleLegendInfo — No return description is available.
CachedXAxisTitle
Section titled “CachedXAxisTitle”public AxisTitleInfo CachedXAxisTitle { get; }Gets the cached X-axis title info from the last render pass.
Returns
ChartGuru.AxisTitleInfo — No return description is available.
CachedYAxisTitle
Section titled “CachedYAxisTitle”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.
Morpher
Section titled “Morpher”public ChartMorpher Morpher { get; }No description is available for this member.
Returns
ChartGuru.ChartMorpher — No return description is available.
IsInitialized
Section titled “IsInitialized”public bool IsInitialized { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
LayoutEngine
Section titled “LayoutEngine”public ChartLayoutEngine LayoutEngine { get; }Gets the layout engine for accessing computed layout data.
Returns
ChartGuru.ChartLayoutEngine — No return description is available.
IsAnimating
Section titled “IsAnimating”public bool IsAnimating { get; }No description is available for this member.
Returns
System.Boolean — No return description is available.
Constructors
Section titled “Constructors”
ChartRenderer(Chart)
Section titled “ChartRenderer(Chart)”public ChartRenderer(Chart chart)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
chart |
ChartGuru.Chart |