Skip to content

feat: Adding a new SparklineCell view and adding trend lines to the GroupedStat table#392

Merged
codyward-skybox merged 4 commits into
mainfrom
cody.ward/ecs_graphs
Jun 3, 2026
Merged

feat: Adding a new SparklineCell view and adding trend lines to the GroupedStat table#392
codyward-skybox merged 4 commits into
mainfrom
cody.ward/ecs_graphs

Conversation

@codyward-skybox
Copy link
Copy Markdown
Contributor

This change adds a new SparklineCell control which renders a very basic line chart using an SVG polyline, as well as a Min/Max label.

The sparklines are being used to render trend lines on each row of the Entity and Systems tables in Client - Entity Systems

The logic for driving the trend line is handled within the MinecraftGroupedStatisticTable, which is also controlling the time window for the history, aggregation of the child rows and some normalizations smoothing to make the graphs easier to read over time.

ecs_graphs.mp4

observedCategories,
);

if (sparklineColumnIndex !== undefined) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if this can ever become false. I see we pass in 0 in ClientEntitySystems.tsx, but does the value of sparklineColumnIndex change afterwards?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, that shouldn't be possible. I did a cleanup pass trying to remove undefined's where possible and think I missed this.

@codyward-skybox codyward-skybox merged commit 962e96e into main Jun 3, 2026
2 checks passed
@codyward-skybox codyward-skybox deleted the cody.ward/ecs_graphs branch June 3, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants