I built component to display data in a table format.
I want the backgroud color as below depending on the value of 'Progress' If Progress >0 and < 49 background color RED If Progress >=50 and <74 background color YELLOW If Progress >=75 and < 100 background color GREEN
I do not have much understanding on CSS or HTML
My component
<aura:handler name="init" action="{!c.doInit}" value="{!this}" />
<aura:attribute name="agreementRows" type="Training_Agreement__c[]"/>
<ltng:require styles="/resource/SLDS102/assets/styles/salesforce-lightning-design-system-ltng.css"
scripts="/resource/Jquery" />
<div class="slds">
<p>
<b> My Enrolments </b>
</p>
<br>
</br>
<table class="slds-table slds-table--bordered slds-max-medium-table--stacked" >
<thead>
<tr class ="slds-text-heading--label">
<td class = "boldHeader slds-cell-wrap slds-size--1-of-6">Qualification Name</td>
<td class = "boldHeader slds-cell-wrap slds-size--1-of-6">Start Date</td>
<td class = "boldHeader slds-cell-wrap slds-size--1-of-6">Expected End Date</td>
<td class = "boldHeader slds-cell-wrap slds-size--1-of-6">Progress</td>
<td class = "boldHeader slds-cell-wrap slds-size--1-of-6">Training Outcome</td>
<td class = "boldHeader slds-cell-wrap slds-size--1-of-6">Training Outcome Date</td>
<!--<th><strong> Trainee </strong></th>
<th><strong> Qualification </strong></th>
<th><strong> Type </strong></th>
<th><strong> Completed </strong></th> -->
</tr>
</thead>
<tbody>
<aura:iteration var="cell" items="{!v.agreementRows}">
<tr>
<td data-label="Qualification Name"> {!cell.Qualification_Name__c} </td>
<td data-label="Start Date">
<ui:outputDate value="{!cell.Start_Date__c}" /> </td>
<td data-label="Expected End Date">
<ui:outputDate value="{!cell.Expected_Completion__c}" /> </td>
<td data-label="Progress"> {!cell.Progress__c}% </td>
<td data-label="Training Outcome"> {!cell.Training_Outcome__c} </td>
<td data-label="Training Outcome Date">
<ui:outputDate value="{!cell.Training_Outcome_Date__c}" /> </td>
</tr>
</aura:iteration>
</tbody>
</table>