ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Chart with double y-axis (https://www.excelbanter.com/charts-charting-excel/447225-chart-double-y-axis.html)

DaveinVT

Chart with double y-axis
 
Hello,
I have 2 sets of data for the same variables. One set of data is shown in %, from 50%-100%. The other set of data is shown simply as values, from 0-25. Is there a way to combine these data sets onto one bar chart in order to compare the relative magnitude of the lines? In other words, can I make the y-axis show both 50%-100% AND the numbers 0-25 next to each other so that the minimum and maximum heights (0%-100% and 0-25) are equal and have the charts combine into one?
Thanks!

Spencer101

Quote:

Originally Posted by DaveinVT (Post 1605858)
Hello,
I have 2 sets of data for the same variables. One set of data is shown in %, from 50%-100%. The other set of data is shown simply as values, from 0-25. Is there a way to combine these data sets onto one bar chart in order to compare the relative magnitude of the lines? In other words, can I make the y-axis show both 50%-100% AND the numbers 0-25 next to each other so that the minimum and maximum heights (0%-100% and 0-25) are equal and have the charts combine into one?
Thanks!

You can have a secondary Y axis meaning you'd have the %'s up the left side of the chart and the 0-25 values up the right side of the chart. Would that work for you?

William B. (Billby)

Circular Bar chart?
 

Is this what you mean?
http://www.excelcharts.com/blog/the-...art-revisited/

Or perhaps one like this?
http://peltiertech.com/WordPress/mag...visualization/

There are also plenty of third party product$ that can do what you want.

Go to: http://images.google.com/advanced_image_search?hl=en
And enter the words: excel circular bar chart
Then if you see an image that looks interesting click
on it and visit the site where the image originated from.

Have fun,

William B.


On 26/09/2012 11:12 AM, DaveinVT wrote:
Hello,
Is it possible to create a circular bar chart, with the radii of the
circle serving as the y-axis of the chart, and the perimeter of the
circle serving as the x-axis?
Thanks!



DaveinVT

Quote:

Originally Posted by Spencer101 (Post 1605862)
You can have a secondary Y axis meaning you'd have the %'s up the left side of the chart and the 0-25 values up the right side of the chart. Would that work for you?

Yes, thanks

Spencer101

Quote:

Originally Posted by DaveinVT (Post 1605866)
Yes, thanks

Could you post some example dummy data? Far easier to make a graph with that.

DaveinVT

Thanks for the reply. I posted a jpeg of what I want to recreate (and then play with a bit) in this tread he
http://www.excelbanter.com/showthread.php?t=447224

I guess I should have asked all my questions in one thread to keep it all together...

----------------------------

[quote=William B. (Billby);1605870]Is this what you mean?
http://www.excelcharts.com/blog/the-...art-revisited/

Or perhaps one like this?
http://peltiertech.com/WordPress/mag...visualization/

There are also plenty of third party product$ that can do what you want.

Go to: http://images.google.com/advanced_image_search?hl=en
And enter the words: excel circular bar chart
Then if you see an image that looks interesting click
on it and visit the site where the image originated from.

Have fun,

William B.

William B. (Billby)

Chart with double y-axis
 
Hi Dave, I checked out your jpeg and the Excelbanter blog.
What your are trying to achieve is quite complex for Excel.
A polar chart might do what you require but I couldn't find
any 'free' examples at that level of complexity...

The Excel 'Sparklines' charting mentioned elsewhere by Ben
is quite extensive but doesn't appear to have a direct
solution for your problem. Best of luck with your research
and eventual success in plotting it. WB.


On 27/09/2012 12:06 AM, DaveinVT wrote:
Thanks for the reply. I posted a jpeg of what I want to recreate (and
then play with a bit) in this tread he
http://www.excelbanter.com/showthread.php?t=447224

I guess I should have asked all my questions in one thread to keep it
all together...

----------------------------

William B. (Billby);1605870 Wrote:
Is this what you mean?
http://www.excelcharts.com/blog/the-...art-revisited/

Or perhaps one like this?
http://tinyurl.com/9zvdgnn

There are also plenty of third party product$ that can do what you
want.

Go to: http://images.google.com/advanced_image_search?hl=en
And enter the words: excel circular bar chart
Then if you see an image that looks interesting click
on it and visit the site where the image originated from.

Have fun,

William B.







[email protected]

Circular Bar chart?
 
On Tuesday, September 25, 2012 at 11:12:03 PM UTC-4, DaveinVT wrote:
Hello,
Is it possible to create a circular bar chart, with the radii of the
circle serving as the y-axis of the chart, and the perimeter of the
circle serving as the x-axis?
Thanks!




--
DaveinVT


It's been a long time since this was asked, but in case there are any other searchers out there, this page gave me the solution I used to build mine in MATLAB.

http://interworks.co.uk/blog/radial-bar-chart/

This website shows you the trigonometric solution you need to plot a line using the regular old plot function. Each line has two points, and you plot your first one like this in MATLAB:

plot([innerx outerx], [innery outery])

When I made mine, I selected r1 to the same number for all observations and r2 to be the value for that observation. Here's all the code for MATLAB.

values = [3 4 1 8 9];
nvalues = size(values,2) %values has 5 rows and 1 column.
indices = 1:nvalues
angledeg = 360/nvalues;
anglerad = degtorad(angledeg);
angles = indices.*anglerad
innerr = 5; % pick anything you want
values = innerr + values;
cosines = cos(angles);
sines = sin(angles);

xinners = innerr.*cosines;
yinners = innerr.*sines;

for i = indices
plot([xinners(i) xvalues(i)], [yinners(i) yvalues(i)])
end

xvalues = values.*cosines;
yvalues = values.*sines;


All times are GMT +1. The time now is 03:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com