Vous êtes sur la page 1sur 7
2anan01s Imlcroso excel - How to make aPleradar chart - Super User sign up login tour help ‘Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required. x How to make a Pie radar chart Add {> projects to your 3 stackoverflow profile. ~~ CAREERS: | want to create a circular chart in Excel with 8 sectors like in this example: ure Family LEARWING Instead of representing the percentage like in a pie chart, I want the actual value lke in a radar chart |s it possible without using macros? oa) hip superuser com/quesvonsi687036MNoW-to-make-a-pe-radarchart w 2anan01s Imleroso excel - How to make a Pleradar chart - Super User a Andi Mohr SSE Kirarpe 2315 1 13° 32 Hak 101 5 1 Answer This walkthrough is based on Andy Pope's original tutorial here. Let's say this is the data you're starting with. There's a bit of data manipulation to do before we create the chart. A 5 Iny add EEEEESSSe (Category value EXERCISE CREATIVITY/ALONE TIME LEARNING PARTNER, \VOLUNTEERING/COMMUNITY FAMILY SOCIAL UFE work wwe Biwnn /our example we want all the sectors to be the same size, but let's make things flexible and in a sector weight column, eg if you wanted 'WORK' to appear as a double/triple/quadruple- sized slice, just change the sector weight to 2/3/4 etc. A 5 wes ol>[s[|o Mel» Category Value Sector Weight EXERCISE CREATIVITY/ALONE TIME LEARNING PARTNER \VOLUNTEERING/COMMUNITY FAMILY SOCIALUFE WORK wove Bvwue Now we need to calculate the slice proportions that each sector needs to cover. Add a column call led "% of 360’, dividing the sector weight by the sum of all sector weights. hip superuser com/quesvonsi687036MNoW-to-make-a-pe-radarchart 2anan01s Imlcroso excel - How to make aPleradar chart - Super User =€2/SUM($C52:5¢89) Next we need to calculate the start and end angles that each sector covers, Add a 'Start Angle’ column. In the top row enter 0, then for each row below reference the cell above, In a'Finish Angle’ column multiply the cumulutive figure for '% of 360' by 360. x i a= 1 category Value Sector Weight 60 360° Start Angle Finish Angle 2 EXERCISE, 4 1 =C2/SUM(SCS2:SCS3) 0 =360°SUM(S0$2:02) 2. CREATIVI/ALONETIME 5 =c3/SUM(SCS2SCS8) =F __=360*SuNa(S052.03) [canine 2 £ Lcaysumscsosscss) =F =aa0*suna(50§2:08) ‘5 PARTNER 7 1 ‘=C5/SUM(SCS2:$CS9) 4 (=360°SUM(SD$2:05) 6 VOLUNTEERING/COMMUNTTY 301 =CO/SUMISCS2:SCS8) -200"S ($052.06) 7 FAMILY 8 1 =C7/SUM(SC$2:SCS3) =360°SUM($0$2:07) “8 SOCIALUFE 24 =C8/SUMM(SCS2:5C85) =360*Suta(5052:08) 9 work oon =£9/SURMSCS:$C88) =60°Sum4(50$2:05) Now the trick to making a radar chart think i's a pie chart is to create data points for every one of the 360 degrees in a circle. Let’s extend our table, with a column for each angle (shaded grey in my example). For each cell, add some logic that checks whether the angle for that column is covered by the Start/Final Angles - and if so return the value for that row. Make sure you copy this for all rows and columns. for 0-360 degrees TF (AND(6$1>=$E2,G81¢65F2),$82,0) Start angle Fi 2 5 Pp Frssorsunsosnny (AN =F(AN =IF(AN F(AN FAN '=360°SUM(S$D82:03) =IF[AND(G$1>=SE3, GS1<=$F3},$B3,0) SIF(AN =1F(AN =IF(AN IF(AN =IF(AN (=360°SUM(SD82:D4) =IF[AND(GS1>=S64,6$1<=$F4),$24,0) (=IF(AN =IF(AN =IF(AN =IF[AN =IF(AN =360°SUM($0$2:D5) -=IF[AND(GS1>=SE5,G$1<=$F5},$85,0) (SIF[AN =IF(AN =IF(AN =IF[AN =IF(AN- -200"SUM{S052:05) _=F[AND(GSI>-$E5,GS1<-SF6), $86.0) =IF[AN =IF(AN -IF(AN =IF(AN -IF(AN -=260°SUM{S0S2:07)_=IF[AND(GSI>=5E7,681<-$67),$87,0) _F[AN =F(AN =IF(AN F[AN -F(AN =360°5UM(S0S2:08) _-IF[AND{GSI>=SE8,651<-SF6),$88,0) _F[AN IF(AN =IF(AN F[AN IF(AN -=360°SUM|S0S2:05)__=IF[AND{GSI>=SE9,G$1<=S69},$89,0) __F[AN IF(AN =IF(AN F[AN =IF(AN (Note - if you're using Excel 2003 or earlier you will need to fip this table round so the table is vertical (transpose) because the number of columns used by this method is greater than the number allowed by old versions of Excel.) hip superuser com/quesvonsi687036MNoW-to-make-a-pe-radarchart 2anan01s Imlcroso excel - How to make aPleradar chart - Super User We can now think about the chart, For flexibilty's sake let’s add a "Chart Labels" column between the final Angle and the 0-360 degrees. I'm just going to refer to the titles in column A but you might want to customise them here. | § (STL | |) wl] lala a eee eee eer ‘90 CREATIVITY/ALONE TIME. ooo00co0 000000 1 (225 VOLUNTEERING/COMMUNITY 9 0 0 0 0 0 0 0 O O OO Select all cells under the "Chart Labels" and 0-360 columns (G2:NDS in this example). Insert a chart - under the radar chart options choose the end one - "Filled Radar". You'll get this. CREATIVITY/ ALONE TIME Leaaning PARTNER Delete the legend and the circular data labels (highlighted yellow). Right-click the remaining axis and choose Format Axis, Set the major unit fixed to 10 (your maximum value) and the minor unit fixed to 1, Close the dialog box, then delete the axis numbers on the chart, ‘Switch on Major & Minor Horizontal Gridlines: hip superuser com/quesvons/687036MNow-to-make-a-pe-radarchart 2anano1s rmleroso excel - How to make aPleradar chart - Super User anot dea Hozort! Gites (Bi) Beet Met ces tr torent 1500014000 snr sins 0125 0128 (il) spa Honora Gigs ter ner nts s 2 [fl] oor Fish age «6 4 tegoy Names a . Sms 016000 415000 « Now our chart looks like this. Set the major gridiine ine weight to be 2pt and black for the outer circle border. If you want to, make the segments show the minor gridlines you will need to alter each segment's fil colour and set transparency (about 20-40% transparent should do it) hip superuser com/quesvonsi687036MNoW-to-make-a-pe-radarchart 2anan01s Imlcroso excel - How to make aPleradar chart - Super User To get the radial segment borders we need to add a new series, Set the title to be cell C1 ("Sector Weight") and the values to the rows in column C (C2:C9). Set the horizontal category axis labels to be your chart labels (62:69). Change the chart type for this new series to a pie chart, Remove the fill for the pie segments and add black borders. Add data labels for the pie series, selecting the Category Name instead of Value and setting the position to Outside End. work EXERCISE creaniviny/ SOCIAL LIFE GREE FAMILY LEARNING VOLUNTEERING PARTNER /contmuniy EDIT (Sep 30 2014): The workbook is available for download here as requested by Fires. hip superuser com/quesvonsi687036MNoW-to-make-a-pe-radarchart parianos Imrosoft excl - How to make a Pe radar chart - Super User EDIT 2 (Mar 25 2015): Nihajlo has pointed out that this technique can be improved slightly: The graph ends up with a slight shift counterclockwise (as seen on the last graph above with red having a gap at the vertical, but covering the boundary at 300 degrees). This is due to spider chart always being one behind (i.e. 1 degree is plotted at 2, 2 at 3 and so on), A quick fix to this is to change the formula for finish angle (F2) from =36e*su¢$0$2:02) to =3605UM($0$2:02)+1 and change the formula for the first point of the last series to be the same as the last point of the last series (in the above example make cell H9 formula to be D9, edited Mar 25 at 9:50 answored Dec 11'13 at 18:14 Andi Mohr 2315 1 13° 32 Link only answers aren't good answers. Maybe you can summarize the steps together with some pictures — rixda Dec 1113 at 18:15 Its fine as you did it. The problem with link-only answers is, that inks can disappear/change in future which will make the complete answer useless. — nixda Dec 11 13 at 19:07 Excellent solution Andi. Could you upload your workbook for us please. — Fires Sep 3014 at 9:27 No problem - ink added :)~ Andi Mohr Sep 30 't4 at 10:56 Brillant answer +1 - Dave Sep 25 at 6:12 protected by Community ¢ Sep 25 at 6:22 ‘Thank you for your interest in this question. Because it has attracted low-quality or spam answers thal had to be removed, posting an answer now requires 10 reputation on this site Would you like to answer one of these unanswered questions instead? hip superuser com/quesvonsi687036MNoW-to-make-a-pe-radarchart

Vous aimerez peut-être aussi