Create continuous density curve from pivot table?

OldManExcellor

New Member
Joined
May 30, 2011
Messages
45
I have created this table with the pivot table function. The first column is supposed to be the x-axis. The second and third columns are supposed to be values for two density curves in a graph.

Code:
0,88	0,007990241	0,007014028
0,89	0,011448944	0,011022044
0,91	0,020942602	0,02004008
0,93	0,05689206	        0,052104208
0,94	0,084130296	0,077154309
0,96	0,108859757	0,110220441
0,98	0,132474609	0,129258517
1	0,140641581	0,150300601
1,02	0,163591684	0,152304609
1,04	0,098615796	0,106212425
1,06	0,074624989	0,076152305
1,09	0,07726832	        0,080160321
1,11	0,013411459	0,017034068
1,14	0,006362309	0,007014028
1,16	0,002711613	0,003006012
1,19	3,37395E-05	0,001002004

My question is, how can I make the x-axis become "smooth and continuous"? As it is now there is as much space between 0,88 and 0,89 (first and second data points) as there is between 0,89 and 0,91 (second and third data points). I want the space to be the same between 0,88 0,89 0,90 0,91...

What is a good way to achieve this?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
What you need is to have your chart set up as a "X-Y Scatter Diagram". That means a normal x-y graph in Microsoft speak.

If you use a line diagram, then Excel will take each item from the x-axis as being a text label rather than a value. So it could read 'camel' rather than 0.88 for all Excel cares....


Does this help you at all?
 
Upvote 0
Yes, that worked! Thank you very much!

An additional question. Is it possible to have an "x y scatter" visualized as bars instead of lines and dots?
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top