Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
sasdfasdfsad
Advocate II
Advocate II

Use legend to show/hide data series on line chart? (Specify tile colors?)


I have a line chart that is showing sales by region.  We have 5 regions.

I would like to be able to hide regions by "unselecting" them in the legend, but I don't see anyway to accomplish that.  Like how if you click on Filter you can uncheck the attributes in region and it will remove them from the line chart.

Is there anyway to do that inside the visual or using another filter to replace the legend?

The best I can manage is using a treemap visual but the formatting is limited and I can't default the behavior so that clicking on UNSELECTS the value.

Using a Filter set to "TILE" works perfectly EXCEPT.... I can't specify the color of the tile buttons.  I need them to match the line/legend colors.

This CanvasJS demonstrates the desired behavior:
Hide Unhide Data Series in Chart on Legend Click | CanvasJS

Shown

sasdfasdfsad_0-1692050402939.png



Hidden by clicking DataSeries1

sasdfasdfsad_1-1692050417846.png



Is there anyway to replicate this type of functionality in Power BI?



1 REPLY 1
parry2k
Super User
Super User

@sasdfasdfsad I don't think it is possible, the only way is to use slicer/filter, seems like you have already explored that option.

 

👉 Learn Power BI and Fabric - subscribe to our YT channel - @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤️



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors