#pragma once

// Renders a vertical bar chart using ImPlot with locked axes so it doesn't
// reflow between frames. Pass an explicit height so it doesn't enter a
// feedback loop with AutoResizeY containers.
// Call within an ImGui frame.
void bar_chart(const char* title, const char* const* labels, const float* values,
               int count, float bar_width = 0.67f, float height = 200.0f);
void bar_chart(const char* title, const char* const* labels, const double* values,
               int count, double bar_width = 0.67, float height = 200.0f);
