Option 1: Use Two Pie Charts
Step 1: Create a pie chart
- In Tableau Desktop, connect to Superstore sample data.
- Under Marks, select the Pie mark type.
- Drag Customer Segment to Color.
- Drag Sales to Size.
- Click Label, and then select Show mark labels.
- Resize the pie chart as desired.
Step 2: Switch to the dual-axis chart
- Drag Number of Records to Rows.
- Drag Number of Records to Rows again.
- On Rows, right-click both instances of Number of Records, and then select Measure(Sum) > Minimum.
- On Rows, right-click the second instance of Number of Records, and then select Dual Axis.
Step 3: Change the second pie chart to a circle
- At the bottom of the Marks card, click MIN(Number of Records) (2).
- Remove Customer Segment from Color.
- Remove Sales from Size.
- Click Color, and then choose the same color as the background. In this example, click white.
- Click Size, and then drag the slider to the left to make the circle smaller.
- Drag Sales to Label.
- Right-click on each of the axes and uncheck Show Header.
No comments:
Post a Comment