My data contains a color field, e.g. {"category": "Age", "value": 6, "color": "#ffd800" }
I want to use the color in the record to format the label text for that category.
This works (hard-coded):
.Labels(labels => labels.Color("#ff0000"))
These don't:
.Labels(labels => labels.Color("color"))
.Labels(labels => labels.Color("#= color #"))
.Labels(labels => labels.Color("#= dataItem.color #"))
I've confirmed that the color field is accessible.
How can this be done?
I want to use the color in the record to format the label text for that category.
This works (hard-coded):
.Labels(labels => labels.Color("#ff0000"))
These don't:
.Labels(labels => labels.Color("color"))
.Labels(labels => labels.Color("#= color #"))
.Labels(labels => labels.Color("#= dataItem.color #"))
I've confirmed that the color field is accessible.
How can this be done?