Tableau(Donut chart in tableau)
Donut chart:
π Just like a pie chart, a doughnut chart shows the relationship of parts to a whole, but a doughnut chart can contain more than one data series.
π Each data series that you plot in a doughnut chart adds a ring to the chart.
π The first data series is displayed in the center of the chart.
Creating a Donut chart in Tableau
A donut chart is a union of two things. The first one is the regular pie chart and the other is just a whole circle. Following are the steps that needed to be implemented to create a Donut chart in Tableau. In this blog, we are going to work with the sample dataset available in Tableau.
1. On the home screen of the Tableau Desktop, Under the Saved Data sources card, click on Sample-Superstore.
2. Drag the category to the “colors” card in “Marks”.
3. In the “Marks” card change the drop-down box value to pie.
4. Drag the quantity to the “Angle” card in the “Marks”.
5. Now the pie chart part of the donut chart is ready and we are yet to make another circle. For that, we need to write avg(0) in the “Rows” shelf as shown in the figure.
6. After this step we will be having two pie charts and using the “size” in the “marks” card the size of the first pie chart should be increased.
7. For the lower pie chart need not be a pie chart so we remove the category field from the “Marks” card of the second chart.
8. Following the previous step we need to right-click on the axis and select “Dual Axis”. Then, synchronize both of them.
10. Drag sales to the “angle” field of both the pie charts. Change the color of the second chart to white by clicking on the color field. Finally, we have our much-awaited donut chart here.
Comments
Post a Comment