@kariem-ryad
Just a little SYNTAX-error…
const getColor = (num) => num > 0 ? 'green' : num < 0 ? 'red' : 'black';
$w.onReady(() => {
$w('#dataset6').onReady(()=> {
$w('#table7').columns = $w('#table7').columns.map(e => {
if(e.dataPath==='chg') {e.type = 'richText';} return e;
});
$w('#table7').rows = $w('#table7').rows.map(e => {
e.chg = `<p style="color:${getColor(e.chg)};">${e.chg}</p>`; return e;
});
})
});