typeWriterStyles = [
new g.TextStyle({
color: () => "#000",
fontFamily: () => fontFamily,
text: (cell, resolution) => {
const value = cell["2018"];
return "E";
}
}),
new g.TextStyle({
color: () => "#000",
fontFamily: () => fontFamily,
text: (cell, resolution) => {
const value = cell["2018"];
if (
value > threshold * resolution * 0.25 &&
value < threshold * resolution * 1.25
) {
return "U";
}
}
}),
new g.TextStyle({
color: () => "#000",
fontFamily: () => fontFamily,
text: (cell, resolution) => {
const value = cell["2018"];
if (value >= threshold * resolution * 1.25) {
return "R";
}
}
})
]