SQLDrill.com - Excel Addin for using SQL

Microsoft® Excel® based database addin

 

Go Back   SQL Drill Excel Add-in > Excel > Charting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-2010, 04:12 AM
gvm
Guest
 
Posts: n/a
Default Creating a Line graph

I have data that I want to put in a simple line graph: The data is
A B
23 200
87 500

I mark the 6 cells, select insert chart / line and get a chart with both A
and B labels on the x axis. I go to "select data source" and try "switch
row/column" and get A and B as series names in the legend. How do I get the
label A and the values 23 and 87 on the x axis, and label B and values 200
and 500 on the y axis please?
(Congratulations Microsoft for making something that was so easy and
powerful in Excel 2003 an absolutely primitive disgrace in Excel 2007!) TIA
.... Greg
Reply With Quote
  #2 (permalink)  
Old 02-09-2010, 06:03 AM
Ed Ferrero
Guest
 
Posts: n/a
Default Re: Creating a Line graph

Hi Greg,

Select your data including one column to the left of your data. i.e. if the
data is in cells B1:C3, select A1:C3
Then Insert - Line Chart
Then Switch Row/Column

Ed Ferrero
www.edferrero.com

Reply With Quote
  #3 (permalink)  
Old 02-09-2010, 09:31 AM
trip_to_tokyo
Guest
 
Posts: n/a
Default RE: Creating a Line graph

"How do I get the label A and the values 23 and 87 on the x axis, and label B
and values 200 and 500 on the y axis please?"

You can't do that.

As far as I can see the behaviour that EXCEL is performing is correct.

You cannot have the label A and the values 23 and 87 on the x axis because
the x axis is a category axis (which expects labels, like A, not values, like
23 and 87).

You cannot mix labels and values on the same axis.

Similary you ask for, "label B and values 200 and 500 on the y axis". You
can't do that because, once again, you are mixing labels and values on the
same axis.

The Y axis is a value axis and expects values (like 200 and 500) but not
labels (like B).

To assist you further hit the F 1 key to display the Help Facility.

In the Search box type:-

line chart

A topic (near the top) called:-

Present your data in a scatter or line chart

- is shown.

Display this and pay particular attention to the Line Chart parts.

It explains how the axes are used and what data they are expecting.

Please hit Yes if my comments have helped.

Thanks.










"gvm" wrote:

> I have data that I want to put in a simple line graph: The data is
> A B
> 23 200
> 87 500
>
> I mark the 6 cells, select insert chart / line and get a chart with both A
> and B labels on the x axis. I go to "select data source" and try "switch
> row/column" and get A and B as series names in the legend. How do I get the
> label A and the values 23 and 87 on the x axis, and label B and values 200
> and 500 on the y axis please?
> (Congratulations Microsoft for making something that was so easy and
> powerful in Excel 2003 an absolutely primitive disgrace in Excel 2007!) TIA
> ... Greg

Reply With Quote
  #4 (permalink)  
Old 02-09-2010, 10:03 AM
trip_to_tokyo
Guest
 
Posts: n/a
Default RE: Creating a Line graph

Just thinking about what you have said further.

Are you sure you want a line graph?

I think you want a column chart.

This would give you:-

1. The letter A appearing on the X axis and above that it would show blocks
(filled columns) representing 23 and 87.

2. The letter B on the X axis and above that it would show blocks (filled
columns) representing 200 and 500.

Try a column chart (Clustered Column) and I think that you will arrive at
the solution you seek.

Please hit Yes if my comments have helped.

Thanks.



"gvm" wrote:

> I have data that I want to put in a simple line graph: The data is
> A B
> 23 200
> 87 500
>
> I mark the 6 cells, select insert chart / line and get a chart with both A
> and B labels on the x axis. I go to "select data source" and try "switch
> row/column" and get A and B as series names in the legend. How do I get the
> label A and the values 23 and 87 on the x axis, and label B and values 200
> and 500 on the y axis please?
> (Congratulations Microsoft for making something that was so easy and
> powerful in Excel 2003 an absolutely primitive disgrace in Excel 2007!) TIA
> ... Greg

Reply With Quote
  #5 (permalink)  
Old 02-10-2010, 05:22 AM
gvm
Guest
 
Posts: n/a
Default Re: Creating a Line graph

Thanks Ed, your suggestion was a big help ... totally un-intuitive but it did
let me get closer to where I want to be. I still have problems labelling the
x axis "A" and getting the values (23 and 87) to show properly. The window
that allows me to switch row/column also lets me edit horizontal axis label
but does not let me specify the x axis values. Or am I missing something
else? TIA ... Greg

"Ed Ferrero" wrote:

> Hi Greg,
>
> Select your data including one column to the left of your data. i.e. if the
> data is in cells B1:C3, select A1:C3
> Then Insert - Line Chart
> Then Switch Row/Column
>
> Ed Ferrero
> www.edferrero.com
>
> .
>

Reply With Quote
  #6 (permalink)  
Old 02-10-2010, 05:22 AM
gvm
Guest
 
Posts: n/a
Default RE: Creating a Line graph

thank you ... Greg

"trip_to_tokyo" wrote:

> Just thinking about what you have said further.
>
> Are you sure you want a line graph?
>
> I think you want a column chart.
>
> This would give you:-
>
> 1. The letter A appearing on the X axis and above that it would show blocks
> (filled columns) representing 23 and 87.
>
> 2. The letter B on the X axis and above that it would show blocks (filled
> columns) representing 200 and 500.
>
> Try a column chart (Clustered Column) and I think that you will arrive at
> the solution you seek.
>
> Please hit Yes if my comments have helped.
>
> Thanks.
>
>
>
> "gvm" wrote:
>
> > I have data that I want to put in a simple line graph: The data is
> > A B
> > 23 200
> > 87 500
> >
> > I mark the 6 cells, select insert chart / line and get a chart with both A
> > and B labels on the x axis. I go to "select data source" and try "switch
> > row/column" and get A and B as series names in the legend. How do I get the
> > label A and the values 23 and 87 on the x axis, and label B and values 200
> > and 500 on the y axis please?
> > (Congratulations Microsoft for making something that was so easy and
> > powerful in Excel 2003 an absolutely primitive disgrace in Excel 2007!) TIA
> > ... Greg

Reply With Quote
  #7 (permalink)  
Old 02-10-2010, 06:25 AM
Ed Ferrero
Guest
 
Posts: n/a
Default Re: Creating a Line graph

Hi Greg,

Let's try the failsafe way. This should help in understanding what is going
on behind the scenes.

Select an empty cell in your sheet.
Insert - Line Chart you should see an empty chart
Click the 'Select Data' button on the Chart Tools - Design ribbon
In the Chart data range box, select the cells containing 200 and 500 (i.e.
just the y values)
The 'Legend Entries (Series)' box shows 'Series1' and
the 'Horizontal (Category) Axis Labels' box shows 1, 2
Now click the Edit button under the 'Horizontal (Category) Axis Labels' box
In the selection box for 'Axis Label Range' select the cells that contain
the x values (23 and 87)
Click OK
Click OK

Now add axis titles.

Ed Ferrero
www.edferrero.com

Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Line Graph with Selectable Data RGoad Charting 1 01-15-2010 01:51 PM
Creating a step-up line as a graph ? jan_villadsen@hotmail.com Charting 1 01-16-2009 09:15 PM
creating a mean line in a bar graph SDK Charting 1 01-16-2009 08:52 PM
creating a regression line in a graph sirsoto Charting 1 01-16-2009 03:57 AM
creating a regression line in a graph sirsoto Charting 1 01-16-2009 03:57 AM


All times are GMT. The time now is 10:42 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 |Website Pricer