← Back to team overview

dhis2-users team mailing list archive

Html report

 

Hi guys

I'm trying to create an html report using js, I want to check a value then change the CSS color. Example

//get data from analytics

If  ($("#bcg").html.json()) > 50)
{
//change background color for the span bcg to green
}
 
The point is i want to check if an indicator is in a certain range set the background color of the  span/div to say green.

Any help is appreciated 
Regards

Ngoni Windows Phone

Follow ups