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

[Feature request] Colorizing output when the data is scalar in Table tile in Overview #4062

Open
jgpallero opened this issue Nov 5, 2021 · 0 comments

Comments

@jgpallero
Copy link
Contributor

jgpallero commented Nov 5, 2021

Using the heat{} function it is possible to colorize the background when intervals() is used in a multirrow Table tile (

); otherwise, heat does not work. It would be nice if heat{} could work also for scalar values. As an example, and trying to mimic the old Summary behavior, I would like to colorize the Ramp Rate metric when the value were greater than a reference value:

{
    names
    {
        c("TSB",
          "CTL",
          "ATL",
          "RR");
    }

    values
    {
        c(round(sb(BikeStress)),
          round(lts(BikeStress)),
          round(sts(BikeStress)),
          round(rr(BikeStress)));
    }

    heat
    {
        high <- (round(rr(BikeStress))>=8)?1:0;
        c(normalize(0,0,0),
          normalize(0,0,0),
          normalize(0,0,0),
          normalize(0,1,high));
    }
}

It would be nice also the possibility to colorize the text itself instead of the background

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants