cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
DesireeS
Regular Visitor

Display dashed/dotted lines in legend

Please allow an option for the legend to display a line or a dot for colour (and dotted/dashed lines to match the line on the chart, like the figure below):

DesireeS_0-1687378922928.png

 

Context:

I would like to display four lines on my line chart:

  1. this year's rates for my Region,
  2. last year's rates for my Region,
  3. this year's rates for my Province/Territory/State, and
  4. last year's rates for my Province/Territory/State.

I would like last year's rates to be displayed as dotted lines, this year's rates to be displayed as solid lines, my Region's rates for both last year and this year to be the same colour, and the rates for my Province/Territory/State for both last year and this year to be the same colour. But if I were to do that right now in PBI, last year's and this year's rates would look the same in the legend because there is no differentiation between solid and dotted lines in the legend.

3 ACCEPTED SOLUTIONS
JusticeJr
Frequent Visitor

Hi @DesireeS ,

Is this the outcome you want? 

JusticeJr_0-1687399872916.png

You can go to Legend and setting like this, then the legend will reflect the dotted/solid lines. 

JusticeJr_1-1687399923661.png

 

Best regards,

View solution in original post

danextian
Super User
Super User

hi @DesireeS 

 

The line chart visual has an option to chang the legend shape (marker and line) for each series.

danextian_0-1687399909332.png

 






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Connect to me on LinkedIn || Need consulting? Hire me for a Power BI gig on UpWork.
Learn with me on YouTube @PowerBITambayan.

View solution in original post

Ritaf1983
Super User
Super User

Hi @DesireeS 
If I understand you correctly it is achievable.

Ritaf1983_0-1687399840019.png

you can format every line separately :

Ritaf1983_1-1687399888576.png

Legend will be referenced according to your formatting.

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @DesireeS 
If I understand you correctly it is achievable.

Ritaf1983_0-1687399840019.png

you can format every line separately :

Ritaf1983_1-1687399888576.png

Legend will be referenced according to your formatting.

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

danextian
Super User
Super User

hi @DesireeS 

 

The line chart visual has an option to chang the legend shape (marker and line) for each series.

danextian_0-1687399909332.png

 






Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Connect to me on LinkedIn || Need consulting? Hire me for a Power BI gig on UpWork.
Learn with me on YouTube @PowerBITambayan.
JusticeJr
Frequent Visitor

Hi @DesireeS ,

Is this the outcome you want? 

JusticeJr_0-1687399872916.png

You can go to Legend and setting like this, then the legend will reflect the dotted/solid lines. 

JusticeJr_1-1687399923661.png

 

Best regards,

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors