cell.style.backgroundColor="red";// Apply red background color to the "Age" column
}
returncell;
},
});
html`<style>
.observablehq--table td[data-column="Age"] {
color: red;
}
</style>`;
table;
viewoftable1=Inputs.table(data1,{
columns:["Name","Age","Country"],
header:["Name","Age","Country"],
format:(cell,column,rowIndex)=>{
if(column==="Age"){
cell.style.color="red";// Apply red color to the "Age" column
}
returncell;
},
});
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.