Plotting chart with varying Data series - excel

I am looking to plotting a car variant price comparison chart where the chart Y axis would be amount currency.
X Axis would be different car brands like Honda Hyundai, Toyota etc.
My plot would be the price for each car variant from low to high As per this image
Note:
Number of variants in the brands may be different so that way the series in the plots will be different in length/size.

Related

Excel chart Categories against variable quantity of Price Points

I have some data which I would like to plot, presumably in a scatter chart. The data is in the following format.
Category, ID
Cat1, 560000
Cat1, 560005
Cat1, 880011
Cat2, 580000
Cat2, 580001
Cat2, 580002
Cat2, 780052
Cat3, 600000
Cat3, 600010
Cat3, 600011
Cat3, 1003452
For non-developers, you could think of this as Categories of Tyres and their Prices. I'd like to see that in the "Car" category, we sell items in a set of different price points and in the "Bicycle" category we sell items at a different set of price points. This metaphor only breaks down in that no 2 products can use the same price.
For developers out there, these are in fact a Long, Primary-Key to a particular relational database table and I'm attempting to plot how much and what parts of the available ID range have been utilised already, based on splitting the data into some categories.
I have 13 categories, so these will have to become the x axis due to excel limiting that to 255. Therefore ID will be my Y axis.
By using a 2D Line Chart on just the IDs, and squashing the chart, I was able to plot the overall usage of the ID range.
However, I'm unable to get any chart type to split this by category - I presume XY Scatter or Heatmap has this ability somehow.
Update:- Since posting I have encountered this "Contiguity Chart" which is roughly what I'm after but in Excel if feasible
https://qvdesign.wordpress.com/2012/03/29/qlikview-contiguity-chart-aka-that-chart-from-the-windows-disk-defragmenter/

How Can I create a distribution chart in Microsoft Excel?

I want to create a histogram in Microsoft Excel. I think this should be easy but I am oddly having some difficulties.
I have the following table:
Bins | Frequency
50000 | 800
100000 | 500
150000 | 300
and so on. The Bins column shows the bin width for this histogram. The Frequency column shows the number of values in each bin. How can I then turn the above table into a histogram?
Since you already have the Bins and Frequency created, you can select these cells and insert a normal column chart under Insert -> Charts -> 2D-Column.
In order to make it look more like a histogram you can alter the formatting of the chart.
First change the Gap Width under Series Options -> Series Options to 0%
Then add in a border to help distinguish the bars under Series Options -> Fill & Line
You can also play around with the Axis names and add "Frequency" to the y-axis and "Bins" to the x-axis by clicking on the Chart Elements Button (Green plus when hovering over chart) and selecting Axis Titles.

Python: Plot pie chart for every groups in Pandas

Below is the data frame retrieved after grouping my data set:
df1 = data.groupby(['gender','Segment']).agg(Total_Claim = ('claim_amount', 'sum'))
df1['Total_Claim']=df1['Total_Claim'].astype(int)
df1
The output of the same is:
Total_Claim
gender Segment
Female Gold 2110094
Platinum 2369761
Silver 1897617
Male Gold 2699208
Platinum 2096489
Silver 2347217
What would be the most efficient way of plotting a pie chart between the aggregated value of claim amount based on gender and segment?
You can get Series and ploting by Series.plot.pie and autopct parameter for percentages:
df['Total_Claim'].plot.pie(autopct='%1.1f%%')

Excel Chart: X and Y Categories

In Excel 2010 is it possible to have X and Y categories in a scatter/line graph?
An example would be Simple, Intermediate, Complex on the X axis and Low, Medium, High on the Y axis and three markers in the plot area corresponding to Simple/Low, Intermediate/Medium and Complex/High.
Thanks.
You have to get some numbers in your dataset. A scatter between to categories is in my opinion can't be plotted and also it doesn't have any utility as such.
You can have your categories on one axis (Say X) and some values in another axis( Say Y), then you can plot the graph.
Your categories should be unique for scatters, if a single category comes more than once excel will auto change the categories to number from 1, 2, 3, ....

Creating a scatter-plot with series from row values, and XY values from two other rows

I am doing a project that requires me to study the several condition that affect GPS accuracy, and after I collected a set of data and dumped it to Excel, I was trying to plot a scatter graph, grouping the data into different series according to a value: in this case, I wanted to plot the Latitude and Longitude values as the XY scatter values, and separate the series by the number of satellites when the fix was obtained.
Timestamp Latitude Longitude #Satellites
133009.279 3839.3354 904.7395 0
133010.279 3839.3354 904.7395 0
133011.279 3839.3354 904.7395 0
133026 3845.9863 907.4513 4
133027 3845.986 907.4491 4
133028 3845.9851 907.448 4
133222 3845.9909 907.4866 4
133023.28 3845.9817 907.4429 5
133024.28 3845.9867 907.4549 5
133048 3845.9868 907.452 5
133205 3845.9929 907.4858 5
133206 3845.9927 907.486 5
133207 3845.9925 907.4862 5
133056 3845.9885 907.4569 6
133057 3845.9881 907.4578 6
133223 3845.9905 907.4868 6
133224 3845.9901 907.487 6
I have tried selecting the three rows, adding the series afterwards by selecting the appropriate row, and even tried pivot tables, but these don't allow for scatter-plots unfortunately.
All this to no avail, but I am positive that you can plot the graph. Does anyone have an idea?
PS: Manually selecting the series myself isn't an option, since there is a large number of data. If I could select all of the data for one specific value in a row, though, would let my select each series, and I think I would be able to make it from there.
Have a look at the XY charts from FusionCharts XT - http://www.fusioncharts.com/demos/gallery/#bubble-and-xycharts

Resources