PC Review


Reply
Thread Tools Rate Thread

Add in label to the category axis on Chart

 
 
Chen Yan
Guest
Posts: n/a
 
      16th Oct 2003
I am sorry to post this question, cause I am very good in
VB programming.

I need to draw a chart (the data is in the excel files),
and This is my code. The chart type I want is
xl3DColumnClustered, and Z6:z13 contains the data I want
to plot, and Y6:Y13 contains the label I want to put into
the x-axis as lable.


With ActiveWorkbook.Charts(Charts.Count)
.ChartArea.Border.ColorIndex = 5
.ChartWizard Source:=ActiveWorkbook.Worksheets
(SheetName).Range("Z6:Z13"), Gallery:=xl3DColumn
.ChartType = xl3DColumnClustered
.Axes(xlValue).TickLabels.NumberFormat = "0.00"
.HasLegend = False
.Axes(xlCategory).HasTitle = True
.Axes(xlCategory).AxisTitle.Caption = "Package
Size"
.Axes(xlValue).HasTitle = True
.Axes(xlValue).AxisTitle.Caption = "Through Put"
.HasTitle = True
.ChartTitle.Text = ChartTitleAll
End With


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart templates treates value axis as a category axis FHW at EAD Microsoft Excel Charting 3 17th Dec 2008 03:19 AM
Category axis label problem at column chart Marko Pinteric Microsoft Excel Charting 9 24th Apr 2006 02:40 PM
Column chart - category axis - make to start with the second label Marko Pinteric Microsoft Excel Misc 3 10th Apr 2006 09:31 AM
Column chart - category axis - make to start with the second label Marko Pinteric Microsoft Excel Charting 3 10th Apr 2006 09:31 AM
label the category axis from 0 to 30, step 5 in an excel chart =?Utf-8?B?am9obm55IGhhbmxvbg==?= Microsoft Excel Charting 2 29th Jan 2006 12:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:53 PM.