Forum Discussion

ashrafkotb's avatar
ashrafkotb
Icon for Helper I rankHelper I
5 years ago
Solved

Legends show as separate lines

Hello,   I'm trying to plot a simple line chart with legends, pretty much like the below example: https://www.youtube.com/watch?v=aOWyeIvpM2s   However, when I plot mine, the legends show as thr...
  • DanielPozo's avatar
    5 years ago

    What happens is that in the example video, the categories occupy different years. Therefore, in the same year the Historical or Forecast category does not occur.

    In your example the categories are present at the same time in some X-axis data, so when you place the legend you will see 3 different lines.

    If you want to get the same video view, you must ensure that your data does not repeat the same categories for an X-axis data.