-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getIncrSpace
errors if graph height 67px or less
#146
Comments
hey @photonstorm uPlot will fail to find an axis/tick divisor (via incrs) if the chart dim is smaller than check out https://leeoniya.github.io/uPlot/demos/sparklines.html not to discourage you from using uPlot, but if you're just wanting a perf monitor widget or just sparklines, uPlot is massive overkill :D have you seen https://github.com/mrdoob/stats.js? btw, great work on Phaser & https://github.com/photonstorm/box2d-lite, waiting for part 13! |
another real-time option that looks good/micro is https://github.com/danchitnis/webgl-plot |
Thanks for the quick response. I've used Stats.js a lot in the past, but as you know, it has a lot of limitations - after all, it was only really designed to do one thing, and it does that pretty well, but if you need to push it any further you're out of luck (there's no history, you can't resize the graph without losing "data", it's hard to add gridlines, etc). After messing around with Charts.js I gave up because it has no ESM support and while dispairing at that, someone in their issues list mentioned uPlot and I love it :) Tiny, fast, canvas, perfect. I need a lot of the features it provides, so it's a good choice for me. This isn't for in-game stats or anything, it's for visualizing a huge load of Phaser 4 metrics, such as cached draws, fps, max texture use, sprite logic time, etc. I've managed to turn the axis off, which is great :) But for some reason, it still generates the Honestly, I really like using uPlot so far and will be happy to contribute towards docs and stuff once I understand what's going on better. |
Ahh, it needs the Going to close this off, as the issue is resolved and I know what it feels like having lingering open issues on a repo :) |
sounds like you're missing EDIT: you beat me to it
happy to hear that :) #107 might interest you as well. i plan to use the r-tree-based https://github.com/mourner/flatbush for it at some point. |
this looks like an oversight.
the |
these fixes are pushed to |
Hi,
Really interested to see where uPlot goes (after struggling to find anything like it). I noticed a strange bug in the 1.0.0 release - if you set the height to be 67, or less, you get the following error (and no graph):
Any height above 67 works. I mean, the graph is next to invisible, but you don't get the error. I was trying this because I really wanted to make a small in-line graph showing rendering speeds and needed it to be 64px tall.
Here is some simple test code:
I was also trying to stop the label from appearing, as I didn't need it for my series, hence trying a blank space, or
null
, but nothing seemed to be able to get rid of it - which meant all the label space got factored into the height, too.Is there a way to have just the pure graph and no series labels at all?
The text was updated successfully, but these errors were encountered: