Skip to main content
Question

How to get the line chart on top of Bar chart

  • July 31, 2023
  • 8 replies
  • 11 views

Hi Team,

I am trying to get a line chart on top of bar chart but the bar in many cases are superimposing on line. So how can i get it on top/front?

Adding the chart for reference

image

8 replies

  • July 31, 2023

Hi Rahul,

you can add the order attribute on the section mark with type line. Here you can use order equal 100 for type line and order equal 200 for mark type bar.

image


  • Author
  • Level 7
  • July 31, 2023

Hi @Rashid Laamouri 

I tried and it is still showing the same

image


  • July 31, 2023

Hi @Rashid Laamouri 

I tried and it is still showing the same

image

HI @Rahul Bhat, can you please try it as a sublevel of the mark section not the encoding? after line 12 at the same level with Point:true


  • Author
  • Level 7
  • July 31, 2023

Hi @Rashid Laamouri 

Adding a screenshot with the suggestion.

image


  • July 31, 2023

Hi @Rashid Laamouri 

Adding a screenshot with the suggestion.

image

Hi @Rahul Bhat that's weird, could you try order 200 for the line and 100 for the bar?

Hope that helps


  • Author
  • Level 7
  • July 31, 2023

@Rashid Laamouri 

coincidently , it worked :)

Thank you

 


  • July 31, 2023

@Rashid Laamouri 

coincidently , it worked :)

Thank you

 

@Rahul Bhat  nice :) I learned something new too, the order here somehow are confusing, because logically (from my point of you) the order = 100 should be on front and order = 200 on the background, so nice to know.

Have a nice day Rahul


  • Author
  • Level 7
  • July 31, 2023

@Rahul Bhat  nice :) I learned something new too, the order here somehow are confusing, because logically (from my point of you) the order = 100 should be on front and order = 200 on the background, so nice to know.

Have a nice day Rahul

Yes logically what you described should have worked. But this is celonis :) Somehow they have reversed it

Thank you for your support and you too have a nice day