Solved

Struggling with rotation and donut charts

Posted on 2013-12-11
6
422 Views
Last Modified: 2013-12-22
Following getting some help on a previous question Old Quesiton I thought I had it all sorted and closed the question however I've now discovered an issue I didn't anticipate.

As can be seen in the attached Excel workbook.  I have donut chart showing the positions of some curtains on a circular track.  There are 4 curtains on an outer track and one curtain on an inner track.  In the example the curtains all move about 5 times so there are 5 groups of numbers and charts

The columns are:-

A - The Label of the points of each curtain (a startting point and ending point for each curtain).
B - The colour of the curtain
C - The position of the point.  This is essentially in degrees with trailing 00's with 0 at the top centre.  This number can be negative or multiple rotations
D- I was trying to break the figure in C into a single rotation of a circle in degrees thinking this may help
E - The segment size for the donut chart

So the rows with values only in col E are the remainder of a 360 circle not taken up by the segments with curtains.

My issue comes in that Im getting lost with negative values or anything more complicated than the curtains being in the 1st rotation.
Curtain-Rotations.xlsx
0
Comment
Question by:simonwait
  • 3
  • 3
6 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39711018
Use this formula in column D

=C2/100-INT(C2/36000)*360
0
 
LVL 1

Author Comment

by:simonwait
ID: 39712393
Thanks for that but Im not sure this works.  I think its because the values in Col D arent sorted into a numerical order.  The trouble is I need to keep the order the same (Outer1, Outer 2, Outer 3 etc...)

                                                          300
Outer 1      Red              42000      60                20
Outer 2      Red              40000      40                0.3
Outer 3      Yellow      39970      39.7      3        19.62
Outer 4      Yellow      35932      359.32       115.32
Outer 5      Orange      24400      244                37
Outer 6      Orange      20700      207                0
Outer 7      Green      20700      207                88
Outer 8      Green      11900      119                119
Inner 1      Blue                9000      90                90
Inner 2      Blue               -9000      270                180
                                                          90
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39713142
Im not sure this works

What does not work? What is it supposed to do?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Author Comment

by:simonwait
ID: 39713504
From the figures above the chart appears as in the image attached Chart using data I think that the Red curtain should be between 40 & 60 degrees (around 2 o'clock) and the yellow should go from around 12 o'clock (359 deg) to close to the red (39.7 deg). The orange should be around 7/8 o'clock (207-244 deg) and the green should be quite large between about 4 oclock and 7 oclock (119 - 207 deg)
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 39728542
I have redone the entire thing using shapes and macros. Try it and give your comments.
Copy-of-Curtain-Rotations-1.xlsm
0
 
LVL 1

Author Comment

by:simonwait
ID: 39735035
Wow that certainly looks like it will probably work.  I'm now trying to figure out what you have done so that I can use it in my workbook.  The idea being that as the code imports the figures it then also creates the image for those figures before moving down the sheet and importing the next set of figures.  I've got as far as understanding the if statements but I'm now trying to understand from when you start resolving x & y.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now