Forum Discussion
Create Custom visuals - Set measure color
- 6 years ago
With measures, I've only got it to work by using the queryName property from the measure DataViewMetadataColumn. If you use this rather than getSelector() against a SelectionId it should push it into the data view correctly.
If done right, you should see an objects key underneath your column in the metadata, e.g.:
You should be able to make out the queryName property from this screenshot too.
This should then get persisted into your object enumeration, e.g.:
Hopefully this is enough to get you moving; if not, you might need to share some code so we can have a look at specifics.
Good luck!
Daniel
Hi,
Did you manage to resolve this issue? I am having the same problem and can't figure out how to read the measure colors
Thanks
Nishant
With measures, I've only got it to work by using the queryName property from the measure DataViewMetadataColumn. If you use this rather than getSelector() against a SelectionId it should push it into the data view correctly.
If done right, you should see an objects key underneath your column in the metadata, e.g.:
You should be able to make out the queryName property from this screenshot too.
This should then get persisted into your object enumeration, e.g.:
Hopefully this is enough to get you moving; if not, you might need to share some code so we can have a look at specifics.
Good luck!
Daniel