Skip to content

Replace smoothie fork with custom graph component#730

Draft
microbit-matt-hillsdon wants to merge 1 commit intoappsfrom
replace-smoothie
Draft

Replace smoothie fork with custom graph component#730
microbit-matt-hillsdon wants to merge 1 commit intoappsfrom
replace-smoothie

Conversation

@microbit-matt-hillsdon
Copy link
Copy Markdown

This is obviously targetting the wrong branch but I just wanted to try this as I was reminded how hacked in the recording time is. Still not perfect here (we really want to be told the times via a callback/subscription) but so much nicer to be in control of drawing the region and to render x/y/z along with the graph.

@github-actions
Copy link
Copy Markdown

Preview build will be at
https://review-createai.microbit.org/replace-smoothie/

Base automatically changed from merge-mp-into-apps to apps February 11, 2026 10:56
@microbit-matt-hillsdon
Copy link
Copy Markdown
Author

Going to test the performance aspect of this on the office mini-PC which visibly struggles with the graph even on the Data Samples page.

Aims for identical behaviour except for the recording lines which now show the
recording in-progress rather than filling in the gap between start and end when
the recording finishes.

As a very minor tweak, for non-dashed lines we extend the line to the triangle
rather than having the constant "catching up" effect from the next data sample.

x/y/z move into the graph component rather than being rendered separately by
React. That way they can have their position calculated without hacks.

We keep a large enough buffer of data points to cope with window resizes
(7000px+) without left truncating the graph when the window grows.
@microbit-matt-hillsdon
Copy link
Copy Markdown
Author

Going to test the performance aspect of this on the office mini-PC which visibly struggles with the graph even on the Data Samples page.

Performance is similar and not great. Worth spending some more time here I think.

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.

1 participant