Plan icon indicating copy to clipboard operation
Plan copied to clipboard

Configuration option(s) to zero-baseline charts

Open SlimeDog opened this issue 3 years ago • 5 comments

Data to display

I would like charts to be presented with 0 baseline. For example, TPS would chart from 0 to max (20) rather than the current (in my case) 19.2 to 20. A configuration option to do that, without having to create customized JS, would be a nice addition.

Link to API or Source Code

n/a

Link to Project page or Downloads

n/a

SlimeDog avatar Feb 07 '22 20:02 SlimeDog

I think this could be implemented as a toggle-button on the frontend :)

AuroraLS3 avatar Feb 08 '22 05:02 AuroraLS3

Great!

SlimeDog avatar Feb 08 '22 05:02 SlimeDog

Hopefully the toggle would be a flag on the URL, so that the graph could be called the the desired configuration.

SlimeDog avatar Feb 08 '22 06:02 SlimeDog

I'll probably have to store it in localstorage (The same place where the user chosen theme is so it persists between reloads) - Thinking more about it, a default value will likely need to be defined in the config anyway.

AuroraLS3 avatar Feb 08 '22 06:02 AuroraLS3

That would work for me. :)

SlimeDog avatar Feb 08 '22 06:02 SlimeDog

I assume that this is included in Plan 5.5-b1923. How do I configure to get zero-based charts? I don't see a toggle on the page.

SlimeDog avatar Sep 04 '22 15:09 SlimeDog

I decided to zero baseline all the charts on the rewritten server page (except the TPS graph, since the TPS is zero-baselined in the All graph so it allows more in depth look) - Enable Plugin.Frontend_BETA setting to see those.

If it's not enough I'll look more into it when I make it possible to configure user preferences on the frontend side some time after the rewrite is complete

AuroraLS3 avatar Sep 04 '22 17:09 AuroraLS3

Looks good. It would still be nice to have the option to zero-baseline the TPS chart.

SlimeDog avatar Sep 04 '22 17:09 SlimeDog

I figured the same stuff is available if you hide the other series from All chart 🤔 - But I suppose it'd be less clicks having tps chart with zero baseline

AuroraLS3 avatar Sep 04 '22 17:09 AuroraLS3

I supposed, but if one wants All ...

Still, the beta looks good.

SlimeDog avatar Sep 04 '22 18:09 SlimeDog