Forum Discussion

giammariam's avatar
giammariam
Solution Sage
7 years ago
Solved

Create Custom visuals - Set measure color

Hello All,   I am developing custom visual for a clustered column chart and I am facing issue while implementing the color palette.    I have added the color palette successfully but cannot use t...
  • dm-p's avatar
    dm-p
    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