Skip to main content
Question

How to get the line chart on top of Bar chart

  • Jul 31, 2023 9:04 AM UTC
  • 8 replies
  • 113 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

  • Jul 31, 2023 9:10 AM UTC

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


  • Jul 31, 2023 9:29 AM UTC

Hi @Rashid Laamouri 

I tried and it is still showing the same

image


  • Jul 31, 2023 9:33 AM UTC

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


  • Jul 31, 2023 10:07 AM UTC

Hi @Rashid Laamouri 

Adding a screenshot with the suggestion.

image


  • Jul 31, 2023 11:49 AM UTC

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


  • Jul 31, 2023 11:56 AM UTC

@Rashid Laamouri 

coincidently , it worked :)

Thank you

 


  • Jul 31, 2023 12:00 PM UTC

@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


  • Jul 31, 2023 12:02 PM UTC

@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