473,791 Members | 2,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need to add the Label to the category axis. How could I do it?

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
xl3DColumnClust ered, 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.C ount)
.ChartArea.Bord er.ColorIndex = 5
.ChartWizard Source:=ActiveW orkbook.Workshe ets
(SheetName).Ran ge("Z6:Z13"), Gallery:=xl3DCo lumn
.ChartType = xl3DColumnClust ered
.Axes(xlValue). TickLabels.Numb erFormat = "0.00"
.HasLegend = False
.Axes(xlCategor y).HasTitle = True
.Axes(xlCategor y).AxisTitle.Ca ption = "Package
Size"
.Axes(xlValue). HasTitle = True
.Axes(xlValue). AxisTitle.Capti on = "Through Put"
.HasTitle = True
.ChartTitle.Tex t = ChartTitleAll
End With

Really appreciate your help!

Henry

Nov 20 '05 #1
1 1552
* "Chen Yan" <ya******@agile nt.com> scripsit:
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
xl3DColumnClust ered, 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.C ount)
.ChartArea.Bord er.ColorIndex = 5
.ChartWizard Source:=ActiveW orkbook.Workshe ets
(SheetName).Ran ge("Z6:Z13"), Gallery:=xl3DCo lumn
.ChartType = xl3DColumnClust ered
.Axes(xlValue). TickLabels.Numb erFormat = "0.00"
.HasLegend = False
.Axes(xlCategor y).HasTitle = True
.Axes(xlCategor y).AxisTitle.Ca ption = "Package
Size"
.Axes(xlValue). HasTitle = True
.Axes(xlValue). AxisTitle.Capti on = "Through Put"
.HasTitle = True
.ChartTitle.Tex t = ChartTitleAll
End With


You should post this question to the Excel programming group: microsoft.publi c.excel.program ming.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
4169
by: nephish | last post by:
Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working ok. I need to make an x y chart for some data that comes in from sensors at different times durring the day. i need it to show the value in the y and the time in the x . no problem so far. But what i cannot get to happen is to scale x (time of the...
1
4292
by: Jameel | last post by:
Hi Coders, How do i Add a Lable control to DataList to show the Count Files which belong the current Category. i have a DataList which displays categoryName,Description and File counter (coutn the images belong to category), i able to display first 2 values from database, but how to dispalyg the image counted data in DataList ? Here is my code which doesnt working:(i am using code behind to pull the data from DB)
2
1614
by: H5N1 | last post by:
Hi there First of all excuse me posting such simple (I guess) question, but I didn't find the answer in tutorials. I have a formView presenting records from some table. one of the fields is a Category ID, which is a foreign key. in edit template I replace it with dropdownlist, which is gets this ID, and displays corresponding name, by getting information from other datasource.
4
13993
by: nawrin22 | last post by:
hi.. I am a niwebie in 'AXIS' . but i had correctly installed it without any problem with the help of 'apache.axis.install.pdf' and also tested the examples under 'samples\userguide' directoy provided with 'AXIS'. Later ,I wanted to run a 'build.xml' file created of my own to run the 'example3' project under a diffrent directory and configured the 'build.xml' accordingly. I succeded but after then .. I could not run any of the...
8
1490
by: fiefie.niles | last post by:
I am new to ASP.Net. I use VB.NET as the language and Visual Studio ..NET 2003. On my WebForm I have a label called "Categories". I would like to read all the categories from the database and placed them under the label "Categories". I also would like each category to be a hyperlink to go to another page. How can I do that ? Using the codes below the categories are not placed under the label "Categories", and there is no hyperlink for...
13
5799
by: PinkBishop | last post by:
I am using VS 2005 with a formview control trying to insert a record to my access db. The data is submitted to the main table no problem, but I need to carry the catID to the bridge table CatalogImage where imgID also needs to be placed. Below is my code behind to carry the catID using the Select @@Identity and insert imgID to the bridge table. No data is being entered into the bridge table.
0
2390
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
3
2319
by: Sandy911 | last post by:
I´ve never used charts in Access. Somehow I managed to format well shaped charts in Excel but I can´t find the way to understand how to create a report in Access that produces a bar or a pie chart based on a one record (summarized) query. For example: I have a table with statistics. I run a query that sums and gets the total for each category and calculates the percentages over the totals. I need a report that shows those results in a well...
2
3956
by: gabsaga | last post by:
The following code creates a chart in Powerpoint with data from an Access query. Question I have is how to set the font and alignment of the data points on my X-axis. I want my alignment to be 90 degrees for my data label points on the X-axis and the font for those points to be 10. Any help will be greatly appreciated. Thanks. Gabsaga
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.