Set per-point numeric x-values (e.g. Unix timestamps) for continuous x-axis positioning, in place of evenly-spaced categories.
<insightdock/cartesian_chart.h>
void
set_x_values(std::vector<double> values);
Only takes effect when CartesianOptions::x_scale_type is ScaleType::DateTime and the concrete chart type overrides supports_continuous_x_axis to return true (LineChart, AreaChart) — series values are then paired with these by index instead of with categories(). Ignored otherwise (falls back to category-slot positioning). Must be strictly non-decreasing and the same length as each series' values.
| Name | Description |
|---|---|
| values | A standard container which offers fixed time access to individual elements in any order. |