charts/chart_colors library

Classes

ChartColors
Chart colors derived from a seed color and a real chart background.
ToneRamp
A reusable chart color ramp; see ChartColors.sequential and ChartColors.divergingWith. Bins and legends should share one ramp so they agree on colors.

Functions

categoricalChartPalette({required Color seed, required Brightness brightness, required int count, Color? background, double contrast = 0.5, Algo algo = Algo.apca, bool isColorAtIndexStable = true}) → List<Color>
count categorical series colors; see ChartColors.categorical.
divergingChartColor({required Color lowSeed, required Color highSeed, required Brightness brightness, required double t, Color? background, double contrast = 0.5, Algo algo = Algo.apca}) → Color
Diverging chart color at t in 0–1, neutral at exactly 0.5; see ChartColors.divergingWith.
sequentialChartColor({required Color seed, required Brightness brightness, required double t, Color? background, double contrast = 0.5, Algo algo = Algo.apca}) → Color
Sequential (low → high) chart color at t in 0–1; see ChartColors.sequential.