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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
davidz106
Helper III
Helper III

Line chart series coloring in custom visual - pbivizedit

Hi, I am plotting a line chart of a size distribution. There are size classes on x axis and % of particles in each on y axis. I filter by "sample ID" by Legend. Power BI uses a different color for each of my sample IDs by default (categorical colors). 

 

Is there a way to implement same coloring in custom visual? I am wondering because "Line Chart with Smooth Lines from pbivizedit" does it job great but lacks the functionality to use Power BI default color scheme. I would like to know wheter there is a possibility to implement this programatically. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

1 REPLY 1
Anonymous
Not applicable

Hi @davidz106 ,

Please review the following links, hope they can help you.

Color utils

How to change the bar color/axis label color in custom visuals

how to set theme color for custom visual

Best Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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