Skip to content

Improve chart viz for event values not around zero#2244

Open
Flix6x wants to merge 2 commits into
mainfrom
feat/no-zero-viz
Open

Improve chart viz for event values not around zero#2244
Flix6x wants to merge 2 commits into
mainfrom
feat/no-zero-viz

Conversation

@Flix6x

@Flix6x Flix6x commented Jun 22, 2026

Copy link
Copy Markdown
Member

Description

  • Stop mandating zero to be included in the domain of event values in the chart for multiple sensors
  • Added changelog item in documentation/changelog.rst

Look & Feel

Before:

image

After:

image

How to test

...

Further Improvements

I'm not sure if this is always a good choice. Needs testing.

Related Items

...

…s in the chart for multiple sensors

Signed-off-by: F.N. Claessen <claessen@seita.nl>
@Flix6x Flix6x self-assigned this Jun 22, 2026
Signed-off-by: F.N. Claessen <claessen@seita.nl>
@Flix6x Flix6x added this to the 1.0.0 milestone Jun 23, 2026
@nhoening

Copy link
Copy Markdown
Member

Can we in principle add a checkbox, to re-render the page with all charts including zero?

@Flix6x

Flix6x commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

I'm not a fan of the whole checkbox + session variable approach. I prefer these things to be part of the chart specs, so you can set them per asset rather than per user session. The data should not look different depending on who is viewing. So then the toggle (or an alternative axis domain settting) should become part of the SensorsToShowSchema imo.

@nhoening

Copy link
Copy Markdown
Member

Where would the user set that?

@Flix6x

Flix6x commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

In the modal for editing sensors_to_show.

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