Skip to content

IMarkColorResolver

InterfaceChartGuruChartGuru
public interface IMarkColorResolver

The morph layer’s sole colour-resolution hook. Per-mark colours are read straight from ChartGuru.ChartLayoutEngine.Bars / ChartGuru.ChartLayoutEngine.Points / ChartGuru.ChartLayoutEngine.Sectors (which already applied the theme palette, per-mark overrides, gradients, and selection highlighting), so the morph layer no longer needs a general-purpose “resolve this mark’s colour” method.

What the layout engine can't decide on its own is how to colour a pie / donut born from a single-series source (e.g. a plain Bar → Pie morph): the layout engine would paint every slice with the series's one colour, while a freshly authored pie chart paints each slice from the palette. `ChartGuru.IMarkColorResolver.ResolveByPaletteIndex(System.Int32)` gives the projector a direct palette lookup so the morph ends on the multi-coloured pie the static renderer will draw.

Color ResolveByPaletteIndex(int index)

Resolves a color directly from the active palette at index, wrapping around as needed.

Parameters

Name Type Description
index System.Int32

Returns

UnityEngine.Color — No return description is available.