Conversation
4c4a804 to
1e02ef9
Compare
af4ec03 to
a22e99c
Compare
0652b65 to
1f274ba
Compare
Keep a single row when cells stay wide enough. Otherwise wrap into a near-square grid (column count from series count and available width) so many values use the panel efficiently without tiny one-row cells. Add unit tests for multiSeriesLayout. Flatten nested ternaries for oxlint. Signed-off-by: colivi <charles.olivi@gmail.com>
1f274ba to
d75e16f
Compare
shahrokni
left a comment
There was a problem hiding this comment.
Please hold this one.
We have already a PR from another contributor being reviewed and is in final stage.
|
Hi @shahrokni, OK we’ll hold #814 in favor of #812 for the moment. When orientation is auto, does the layout wrap into multiple rows based on panel width and the number of series (keeping each tile at least a minimum readable width)? => That’s the behavior we need for dense multi-series stats. We’ll re-test Argos multi-series stats after merge and if gaps remain we will open a follow-up. |
You can take a look at this output.
|
Relates to perses/perses#4382
Description
Multi-value StatCharts laid all series on one horizontal row (overflow scroll).
Maximizes space wrt number of elements to fill so panels that have multiple sub-panels to display stay readable.
Screenshots
N/A until deployed on Argos; change is layout-only in "StatChartPanel.tsx".
Checklist