Hello,
using ASP.net webpage with Razor syntax cshtml.
I want to make the gauge colour follow the needle. I did this easily
enough, but if the value is less than 0, the color fills the gauge.
What I need is to be able to tell it to first check if the value is below
0, and if it is, return 0.
I have this:
> var colorZone = if { @thisWeek < 0,0, @thisWeek };
>
> It doesn't work.
As you can see, i want a var to be the greater of 0 or input value.
@thisWeek is a variable from the SQL queries higher up in the page.
I'm obviously doing something wrong here - please point me in the right
direction :)
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.