Skip to content

ChartColorMapping

StructChartGuruChartGuru
public struct ChartColorMapping

A category key mapped to a color, as in .chartForegroundStyleScale(["Key": color]).

public string Key

Returns

System.String

public Color Color

Returns

UnityEngine.Color

public ChartColorMapping(string key, Color color)

Maps a series or category key to the color used for its marks.

Parameters

Name Type
key System.String
color UnityEngine.Color