Forum Discussion

Dionah's avatar
Dionah
Icon for Helper II rankHelper II
1 year ago

Automated colors for data labeling bar chart

Hi all, 

 

How can I automatise the color of my data label in bar char according its value, i.e when it is outside of the bar, it shold be white and when it is inside of the bar, it should be black. 

 

See in the screenshoot

 

Thanks for your helps. 

 

 

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Dionah There is no way that I know of to do what you are asking based on the position of the data label. You can control the color using conditional formatting but that doesn't have an option for "inside/outside".

  • rsbin's avatar
    rsbin
    Icon for Community Champion rankCommunity Champion

    Dionah ,

    Your other option is to change your label position to all Inside or Outside.
    Then you can choose the colour best suited for your needs.

    • Dionah's avatar
      Dionah
      Icon for Helper II rankHelper II

      rsbin of course I can, but in that case, all colors are the same. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Dionah ,

    Your requirement cannot be met for the time being. There is currently no way to determine whether the data label is inside or outside the bar.
    If you think this makes sense, I suggest you post your thoughts here and give it a thumbs up.
    https://ideas.fabric.microsoft.com/ 
    Maybe one day in the future your needs can be realized.

    Best Regards,
    Dino Tao