Forum Discussion

_Matthew_'s avatar
_Matthew_
Regular Visitor
9 months ago
Solved

X-axis label formatting not responding in a Line chart with multiple series of time-series data

Hi Folks, Working on a Line Chart which overlays multiple years of weather data onto a single chart. The simple goal is to remove the years in the X-axis labels. Sounds simple, right?     We...
  • Hans-Georg_Puls's avatar
    Hans-Georg_Puls
    9 months ago

    Hi _Matthew_ , 

    this morning working on a line chart I remembered your posting and had an idea for a solution.

     

    What do you think about this one:

     

    Basic ideas are:

    • Make the x-axis labels invisible
    • Disable vertical grid lines
    • Add 12 reference lines, each as a x-axis constant line for the beginning of a month
    • Add some extra space to center the labels

    Are you interested in the details?

     

    Working on this, a second idea came to my mind: Adding a dummy line with zero values and use custom data labels to get the x-axis labels. But unfortunately all data field for custom labels are greyed out. Obviously Power BI doesn't allow custom labels if you have more than one series (resulting from more than one y-axis entries or a legend entry). So that would be only an option for exactly one line.

     

    Correction:

    Multiples lines are possible, only the legend entry has to be avoided. If its an option for you to have separate measures for every year, the following could be an option too:

    (no manual adding of 12 reference lines and no manual correction of label positions)