liprec / powerbi-boxWhiskerChart

Home of the code of my Power BI Custom Visual: Box and Whisker chart
MIT License
8 stars 4 forks source link

Color sequence not respected #28

Closed dsonnerat closed 3 years ago

dsonnerat commented 3 years ago

Power bi allows to define a color sequence which is used to display data using themes. They can be defined in a json file for example: "dataColors":["#E03C31","#EAAA00","#00B2A9"...] (see doc here ) The color sequence is respected when the visual is first loaded or refreshed but it isn't when new whisker box are added incrementally (selecting them in a slicer). Example: Right: Whisker box plot. It has an incorrect color sequence. Left: high low plot done with another visual. It has the expected color sequence. image Same visual after a refresh, all the color sequences are ok now : image

It would be nice that the colors respect the defined color sequence and stay constant so that we can have the same color for a same item on different visuals.

Thank you

liprec commented 3 years ago

Closed as duplicate of #21