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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dunner2020
Post Prodigy
Post Prodigy

Changing color of line graph based on hourly value

I got a line chart which shows the gas data of last 5 days. x-axis contains the hour of the day and y axis contains the value of gas. The chart looks like as follow:

 

Dunner2020_0-1659303000044.png

 

I want to change the colour of each line based on the gas value. For example, if gas value goes over 50 in certain hour then  change the color of line (for that particular hour) to red and in later hours if comes below 50 then change the color of the line for that hour to green. So instead of changing the color of the whole line I want to change the color of the portion of line for given hour based in the gas value. Is it possible to do in Power BI ?

 

Sample file here

1 REPLY 1
amitchandak
Super User
Super User

@Dunner2020 , You can not do that with standard line visual. Refer Curbal's Video for charticulator line

https://www.youtube.com/watch?v=k5c-KtU2k_U

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.