struct EE::UI::Charts::ChartGridStyle

Overview

One grid direction. More…

#include <uichart.hpp>

struct ChartGridStyle {
    // fields

    ChartGridMode mode { ChartGridMode::Disabled };
    double spacing { 80.0 };
    double offset { 0.0 };
    Float width { 1.f };
    std::optional<Color> color;
    const ChartAxis* axis { nullptr };
};

Detailed Documentation

One grid direction. AxisTicks chooses nice data values near the requested dp spacing.

Fields

double spacing { 80.0 }

Target dp for ticks, axis units for data, dp for screen.

double offset { 0.0 }

Data origin, or dp from the plot’s left/top edge.

Float width { 1.f }

Stroke width in dp.

std::optional<Color> color

Unset follows the theme’s axis color at reduced opacity.

const ChartAxis* axis { nullptr }

Non-owning; null selects the primary axis. A set axis must belong to the model.