Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChartElementColorRGBBadValue = fmt.Errorf("rgb value should be between %d and %d if it's set", minValue, maxValue)
ErrChartElementColorRGBBadValue contains error message about bad RGB value.
Functions ¶
func ValidateChartElementColor ¶
func ValidateChartElementColor(chartElementColor *render.ChartElementColor) error
ValidateChartElementColor validates if chart element color can be used as RGB color.
func ValidateChartElementColorJSON ¶
func ValidateChartElementColorJSON(color *view.ChartElementColor) (*render.ChartElementColor, error)
ValidateChartElementColorJSON parses and validates chart element RGB color JSON representation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.