epezent / epezent/implot

Support stacked area charts

Open
#602 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

e.g. second chart here:

![image](https://github.com/user-attachments/assets/df89cc22-ed22-4cfa-a296-a7ba8e549378)

I have a basic implementation here, but it's very limited - doesn't support the usual flags etc:
- https://github.com/fredemmott/XRFrameTools/blob/11cb058fc9e99636d4810606e23ea298d9666df5/src/ImStackedAreaPlotter.hpp
- https://github.com/fredemmott/XRFrameTools/blob/main/src/ImStackedAreaPlotter.cpp

Usage:

```c++
ImGuiStackedAreaPlotter plotter;
plotter.Plot("Foo", plotterFunc, data, count);
plotter.Plot("Bar", plotterFunc, data, count);
```

Due to #340 , this currently depends on implot internals in order to function correctly when series are hidden.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.