Stacked barchart from pivot table

Hello @rlimani, elcome to the forums.

It really all depends on your data, which chart to use, how to prepare the data (by sorting, grouping…). This makes it difficult to give you a general answer. Since you mentioned, you are just starting your plotly journey, I would recommend start building some basic charts and add complexity step by step. I think this would be a good starting point:

As for the format of your question keep in mind, that

  • posting your code as formatted code instead of images
  • adding (dummy) data to make it possible reproduce your problem

makes the lifes of the people willing to help you a lot easier.

Asking specific questions also increases the chances to get your questions answered.

@adamschroeder wrote a nice post also:

1 Like