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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.