Multiple Traces
Plotly lets you make awesome charts with multiple traces. You can mix and match diverse types of traces to create combo charts or use the same type of traces to create stack or group charts.
There's no limit to what you can do with Plotly and multiple traces.
Combo Charts
When a chart uses more than one type of trace for visualization, it is a combo chart. Like combining column and line graphs in one chart.
Plotly could combine all types of traces with each other and make combo chart. Even if the traces nature is not match, Plotly will draw the result for you.
Multiple Traces Options
When similar traces are used to make a chart, you can determine their position relative to each other. The default mode changes according to the chart type.
This feature is used for cartesian charts (with x and y axis) and cannot be used in some charts such as pie, polar and map.
Mode
These modes offer versatile ways to visualize and interpret multiple traces in a single chart, each providing unique insights depending on the comparison or relationship you are exploring.
Group for side-by-side comparison, Stack for cumulative views, Relative for proportions, and Overlay for combined analysis across various chart types.
In Group mode, each trace is represented separately but aligned side-by-side for each category or segment. This mode is not limited to bars; it can be used with lines, points, or other chart types.
Use Case
Ideal for direct comparison of different traces within the same category. It helps in analyzing how each trace performs in relation to others within the same segment.
Example
Imagine comparing the sales of three products (A, B, C) across four quarters. Each quarter will have three bars (one for each product) grouped together
Gap and Group Gap
These options are used to describe the spacing between elements in a chart, specifically when dealing with multiple traces like bars in a bar chart.
Refers to the space between separate groups of bars or elements in a chart. In charts with multiple traces, this setting controls how much space is left between these groups.
Normalization
Fraction normalization is useful when you want to understand the relative size of each data point in relation to a total. It's often used in scenarios where the absolute values are less important than the proportion they represent of the whole.
Last updated