Microsoft KB Archive/151355

= How to Create Two Pie Charts in One =

Article ID: 151355

Article Last Modified on 8/17/2005

-

APPLIES TO


 * Microsoft Excel 95 Standard Edition
 * Microsoft Excel 5.0c
 * Microsoft Excel 5.0a for Macintosh

-



This article was previously published under Q151355





SUMMARY
Pie charts show the relationship or proportions of the parts to the whole. This chart type is useful for emphasizing a significant element. Normally, a pie chart always contains one data series. If you select more than one data series when you create a pie chart, only one data series will be displayed. It is possible, however, to specify a two-series pie chart by defining the chart as a combination chart. By defining the chart as a combination chart, two separate charts are created and can be formatted separately. Both the main and the overlay charts will be formatted as pie charts.



MORE INFORMATION
By defining the chart as a combination chart and formatting both the main and overlay charts as pie charts, Microsoft Excel plots one chart over the other one so that only one chart is displayed. To work around this behavior, you must add a temporary value to both series before plotting them. Then, you explode the slice of the pie that represents the temporary value. By exploding the slice, the size of the entire pie is reduced, exposing the bottom chart.   Enter the following data in a worksheet:      A1:               B1: US    C1: Asia A2: Electronics  B2: .28   C2: .30 A3: Automotive   B3: .16   C3: .24 A4: Software     B4: .11   C4: .09 A5: Textiles     B5: .185  C5: .16 A6: Service      B6: .08   C6: .083 A7: Other        B7: .185  C7: .127   Enter the temporary values in cells B8 and C8. The temporary values should either be a very large or a very small value so that it is easily identified on the chart.     A8: Temporary Values  B8: .90   C8: .90  Select the following range of cells on the worksheet: A1:C8:  On the Insert menu, click Chart, and then As New Sheet. In the ChartWizard box, click Next. Under "Select a chart type," click Combination, and then Next.</li> Under "Select a format for the Combination chart," click chart type 1, and then click Next.</li> Click Next again, and then click to select No under "Add a legend?" Click Finish.</li></ol> </li> On the Format menu, click Chart type. In the Chart Type box, click to select Group under Apply to, and then click Column group. Click Pie, and then click OK.</li> On the Format menu, click Chart type. In the Chart Type box, click to select Group under Apply To, and then click Line Group. Select Pie, and then click OK.</li> Click the largest slice of pie and hold down the left mouse button. Slide the pointer to the left until the pie slice separates from the rest of the pie slices.

NOTE: The other slices of the pie chart should not separate from each other.</li> Switch back to the worksheet. Select cells A8:C8. On the Edit menu, click Clear All. The chart should display a pie chart on top of another pie chart. The top chart, or inner pie chart, represents the values in cells C2:C7. The bottom chart, or outer pie chart, represents the values in cells B2:B7.</li> Select the Legend. On the Edit menu, click Clear All.</li> To add Data Labels on the inner pie slices: <ol style="list-style-type: lower-alpha;"> Click the inner pie.</li> On the Insert menu, click Data Labels.</li> Click the Show Label and Percent option button under the Data Labels group box and click OK. This places the data labels for the inner pie on the outer pie. Manually drag the labels to their respective slices on the inner pie.</li></ol> </li> To add Data Labels on the outer pie slices: <ol style="list-style-type: lower-alpha;"> Click the outer pie.</li> On the Insert menu, click Data Labels.</li> Click the Show Label and Percent option button under the Data Labels group box and click OK. This places the data labels for the outer pie in the plot area of the chart. Manually drag the labels to their respective slices on the outer pie.</li></ol> </li></ol>

<div class="references_section">

For Microsoft Excel 97
For more information about charting, click Contents And Index on the Help menu, click the Index tab in Excel Help, type the following text

charts, creating

and then double-click the selected text to go to the "Create a chart (Microsoft Excel)" topic. If you are unable to find the information you need, ask the Office Assistant.

For Microsoft Excel Version 7.0
For more information about charting in Microsoft Excel, click Answer Wizard on the Help menu and type:

creating and formatting charts

For Microsoft Excel Version 5.0
For more information about charting in Microsoft Excel, click the Search button in Help and type:

chart

Additional query words: pie of XL

Keywords: kbhowto kbinfo KB151355

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.