Skip to content
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

Conditional colors #295

Open
prfalken opened this issue Sep 7, 2014 · 5 comments
Open

Conditional colors #295

prfalken opened this issue Sep 7, 2014 · 5 comments

Comments

@prfalken
Copy link

prfalken commented Sep 7, 2014

The 'singlegraph' item is inspired by Tasseo and is wonderful !

However Tasseo offers the conditional colors feature, which allows you to set thresholds for which the graph colors would change.

This feature would be awesome in Tessera : for instance the graphs would switch to red if the value go over a specific threshold.

@aalpern
Copy link
Member

aalpern commented Sep 8, 2014

@prfalken - FYI, there actually are warning and danger alert thresholds buried in the dashboard item rendering code already. You can see their effects in the gallery sample.

I'm planning to refactor them slightly, however, so I wouldn't rely on them in their current form - instead of being a property of each individual dashboard item, I'd like to make them a property of the Query object. That way the thresholds can be applied to any items that share the same query.

Either way, there's no way to set them in the UI currently, but you can play with them using the API.

@aalpern
Copy link
Member

aalpern commented Sep 8, 2014

screen shot 2014-09-08 at 12 07 40 pm

@clohtd
Copy link

clohtd commented Mar 3, 2015

Quick feedback; I would be interested in using the threshold in both manners. I have charts and singlestats side by side on some pages, using the same query. On those pages, I'd like to use the same query but only have the singlestat change color when over threshold (ignoring the threshold in the time series). So perhaps create a property of any renderer which would allow you to ignore threshold behavior in the query?

@aalpern
Copy link
Member

aalpern commented Mar 3, 2015

Yeah, allowing a per-item override of the per-query threshold should be straightforward.

@filippog
Copy link

👍 this would be awesome to have!

other random idea, the same concept can be applied to graphs too: e.g. (single) time series can have their background split in chunks and each chunk is colored based on how close the value is to the threshold for that chunk. Or bar charts have individual bars colored based on how close the value is to the threshold. Also note that I have no idea how easy/hard it is to implement this in practice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants