Skip to content

ChartSeriesAttribute

namespace Griff.Scenes;
public sealed class ChartSeriesAttribute : RowsAttribute

Marks a list of strings as a Chart’s series, one per row: a name, a color and optionally an output it samples, written “Cards: #4C9AFF = Cards Today”. The Inspector lists them a row each, the color picked and the output picked from what the chart’s Track entity gives.

public override IReadOnlyList<RowColumn> Columns { get; }
public override string Example { get; }
public override string Noun { get; }
public override string Describe()
public override IReadOnlyList<string> MoreChoices(int column, Component component, IProjectNames? names)
public override IReadOnlyList<string> NewRow()
public static IReadOnlyList<ValueTuple<string, Color?, string>> Parse(IReadOnlyList<string>? rows)

The series rows hold, as read: each one’s name, color (null for the palette’s) and output (null for none).

public override IReadOnlyList<string>? Read(string row)
public override string Write(IReadOnlyList<string> cells)