Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3
Default Multiple charts from 1 source data

Hi all

I am battling with graphs/ charts in Excel 2007. I am basically looking for
a way that I can create multiple graphs based on a sheet with a bunch of
simple data.

What I have is a sheet that contains a list of servers with 3 datapoints
(Min, Max, Avg)

Example:
Server Name/Min/Max/Avg
server1/53/100/64
server2/52/99/63
server3/51/98/62

and this list caries on for up to 200 servers. I need to create graphs per
server in an automated way. I have tried this script but it does not
represent the data labels correctly. It does not show me the Min/Max/Avg as a
legend on my graphs...or possibly label each bar correctly.

Sub CreateBarCharts()
Dim ws As Worksheet, cel As Range

Set ws = ActiveSheet
With ws
For Each cel In .Range(.[B9], .Cells(.Rows.Count, "B").End(xlUp))
With Charts.Add
.ChartType = xl3DColumnClustered
.SetSourceData Source:=cel.Resize(1, 8), PlotBy:=xlRows
.Location Whe=xlLocationAsNewSheet
.HasTitle = True
.ChartTitle.Characters.Text = cel.Value
With .Axes(xlCategory, xlPrimary)
.HasTitle = True
.AxisTitle.Characters.Text = ws.[B9]
End With
End With
Next cel
End With

End Sub

Please any help will be appreciated.
Regards
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 108
Default Multiple charts from 1 source data

Hi Sduduzo,

Some of samples here may help
http://www.edferrero.com/ExcelCharts...2/Default.aspx
Look for 'multiple chart builder'

Ed Ferrero
www.edferrero.com
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1,180
Default Multiple charts from 1 source data

Excel 2007 Table, Multiple Charts
With your edited macro.
With legend and category text.
http://c0444202.cdn.cloudfiles.racks.../02_03_10.xlsm
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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
change source data in multiple charts Tuxla Charts and Charting in Excel 5 September 4th 08 03:38 PM
Copying Charts While Changing Source Data David Haley Charts and Charting in Excel 8 August 2nd 07 04:50 PM
Editing Source Data in Charts F. Lawrence Kulchar Charts and Charting in Excel 1 November 5th 06 03:18 PM
extending source data in several charts Mike Charts and Charting in Excel 4 November 29th 05 05:37 AM
Charts not recognizing source data if original linked data is changed. JLC Charts and Charting in Excel 3 October 14th 05 01:29 AM


All times are GMT +1. The time now is 12:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"