Skip to main content

renderPCell (PowerPoint)

This function returns a JSON object that describes how to render a cell and how to export it.

// example renderCell function
({ value, fieldObj, row }) => {

let text = value;
if( typeof value === "object" ){ // or use fieldObj.type ??
text = value?.label;
}
if( fieldObj.valueFormat ){
text = d3.format(fieldObj.valueFormat)(value); // something like that
}

return {
backgroundColor: "#ffffff",
color: "#404040",
text: text,
vAlign: "center",
hAlign: "center"
}
}

All Properties

todo