insightdock::charts::detail::expand_steps

Expands a polyline into a staircase according to mode (pixel space).

Synopsis

Declared in <insightdock/detail/step.h>
std::vector<std::pair<float, float>>
expand_steps(
    std::vector<std::pair<float, float>> const& pts,
    StepMode mode);

Return Value

A standard container which offers fixed time access to individual elements in any order.

Parameters

Name Description
pts A standard container which offers fixed time access to individual elements in any order.
mode Staircase interpolation between points (line and area charts).

Created with MrDocs