Skip to main content

DataViewer::DefaultColors

DataViewer::DefaultColors

Default values and utilities for time series display configuration.

Functions

Name
std::string getColorForIndex(size_t index)
Get color from index, returns hash-based color if index exceeds palette size.

Attributes

Name
std::array< char const *, 8 > PALETTE

Functions Documentation

function getColorForIndex

inline std::string getColorForIndex(
    size_t index
)

Get color from index, returns hash-based color if index exceeds palette size.

Parameters:

  • index Index of the color to retrieve

Return: Hex color string

Attributes Documentation

variable PALETTE

std::array< char const *, 8 > PALETTE = {
        "#0000ff",
        "#ff0000",
        "#00ff00",
        "#ff00ff",
        "#ffff00",
        "#00ffff",
        "#ffa500",
        "#800080" 
};

Updated on 2026-11-13 at 20:25:42 +0000