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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
saadmarwan
Regular Visitor

line chart change shape format based on x-axis value

Simply speaking I do have a line chart for 28 days, the X-axis is the date. I want the srtoke width to change after certain date, for example after day 14 I want the stroke width to be 2 instead of 5 for the previous dates. 

 

How can I do this ?

5 REPLIES 5
v-shex-msft
Community Support
Community Support

HI @saadmarwan,

 

Current power bi only support modify whole layout of chart, it not support the feature which you mention.
I 'd like to suggest you submit this requirement to ideas.

 

Regards,

Xiaoxin Shneg

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
saadmarwan
Regular Visitor

Simply speaking I do have a line chart for 28 days, the X-axis is the date. I want the srtoke width to change after certain date, for example after day 14 I want the stroke width to be 2 instead of 5 for the previous dates. 

 

How can I do this ?

Anonymous
Not applicable

I don't think you can do it with 1 line.

 

Top of mind solution would be splitting the data into (1) the data series with a thinner stroke and (2) the data series with a thicker stroke. Having the 2 line series enables you to customize one from the other.

 

To do this, you need a validator(measure) that tells the data to be included in either data series.

Sorry I am new to power bi, can you elaborate more on how to create two data series ?

Hi @saadmarwan,

 

Perhaps you can take a look at below tutorial :

Customize X-axis and Y-axis properties (Tutorial)

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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