|
-
Dec 13th, 2005, 10:38 AM
#1
Thread Starter
Junior Member
[RESOLVED] Chart lines and position.
Hi all,
1. How do I modify the lines in a chart (series lines)?, I have search for info but nothing found.
2. When I create a chart, I can only play with its position in pixels. Do you know a way to handle it with the cells position?
thanks!!, Yorch
Last edited by yorch; Dec 13th, 2005 at 05:52 PM.
Reason: RESOLVED
-
Dec 13th, 2005, 01:15 PM
#2
Re: Chart lines and position.
1) use the SeriesCollection properties of the Chart object.
Top tip. Record a macro in which you do something to a chart. That will give you all the code you need.
-
Dec 13th, 2005, 02:41 PM
#3
Thread Starter
Junior Member
Re: Chart lines and position.
Thanks!. But, could you please give an example because I have tried to do it but help file does not give more instructions, i have tried:
With Sheets("Symptom Search Result").ChartObjects.Add(32, 50, iSympY * 15, 280).Chart
.SeriesCollection.Add Sheets("Symptom Search Result").Range("B28 " & (iSympY - 1))
.ChartType = xlColumnStacked100
.HasTitle = True
.ChartTitle.Text = "Server Comparative Graph - Symptoms"
.SeriesCollection(1).Line.Width = 500 ' or
.SeriesCollection(1).Lines.Width = 500
End With
Kind Regards,
-
Dec 13th, 2005, 05:52 PM
#4
Thread Starter
Junior Member
Re: Chart lines and position.
Thanks, I continues playing and found the solution.
With Sheets("Sheet1").ChartObjects.Add 1,1,5,5).Chart
.SeriesCollection.Add Sheets("Sheet1").Range("B4:C15")
.ChartType = xlLine
.HasTitle = True
.ChartTitle.Text = "Server Comparative Graph"
For y = 1 To 3
.SeriesCollection(y).Border.Weight = xlMedium
Next
End With
Yorch
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|