scheme

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorMode

type ColorMode string
const (
	Last ColorMode = "last"
	Min  ColorMode = "min"
	Max  ColorMode = "max"
)

type Option

type Option func(scheme *Scheme)

Option represents an option that can be used to configure an axis.

func BluePurple

func BluePurple(colorBy ColorMode) Option

BluePurple uses the blue-purple color scheme.

func BlueYellowRed

func BlueYellowRed(colorBy ColorMode) Option

BlueYellowRed uses the blue-yellow-red color scheme.

func ClassicPalette

func ClassicPalette() Option

ClassicPalette uses the classic palette color scheme.

func GreenYellowRed

func GreenYellowRed(colorBy ColorMode) Option

GreenYellowRed uses the green-yellow-red color scheme.

func RedYellowGreen

func RedYellowGreen(colorBy ColorMode) Option

RedYellowGreen uses the red-yellow-green color scheme.

func SingleColor

func SingleColor(color string) Option

SingleColor defines the color scheme with a single color.

func ThresholdsValue

func ThresholdsValue(colorBy ColorMode) Option

ThresholdsValue uses the thresholds colors.

func YellowBlue

func YellowBlue(colorBy ColorMode) Option

YellowBlue uses the yellow-blue color scheme.

func YellowRed

func YellowRed(colorBy ColorMode) Option

YellowRed uses the yellow-red color scheme.

type Scheme

type Scheme struct {
	// contains filtered or unexported fields
}

Scheme represents a color scheme.

func New

func New(fieldConfig *sdk.FieldConfig, options ...Option) *Scheme

New creates a new Scheme configuration.

type Step

type Step struct {
	Color string
	Value int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL