Excel 2007 :: Primary Category Axis Title Rotates With Rotated Value Axis Titles

May 13, 2014

I've put together code to construct a chart

It all works fine but I've noticed an odd quirk which I can't explain nor can I seem to fix. Here's the (reduced) code :

Code:
Dim appExcel As Object ' Excel Application
Dim chtPareto As Object ' Chart
Set appExcel = CreateObject("Excel.Application")
Set chtPareto = appExcel.Charts.Add
With chtPareto
' Primary category axis

[code]....

The category (x) axis title should be horizontal, whereas the value (y) axis title should be rotated. Stepping through the code, when I .SetElement for the category axis title, it appears horizontal as planned. However, as soon as I .SetElement for the rotated value axis title, the category axis title also rotates.

View 3 Replies


ADVERTISEMENT

Excel 2007 :: Horizontal Align X Axis Title To Plot Area VBA?

Jun 16, 2012

We have a lot of charts we want to create in Excel 2007. We have templates created that seem to work. (But also sometime seem to not.)

After the charts are created that are placed in their own chart pages/sheets. The problem I'm having is that the x axis title doesn't seem to be centered horizontally wrt the x axis of the plot area. (It does look centered wrt the chart area.)

Some code or an algorithm to control he placement of the x axis title and maybe center it?

View 9 Replies View Related

Second Category Axis & Value Axis To Current Chart

Sep 27, 2006

how to incorporate another category and value axis to my existing chart.

1. I need to add a rank axis derived from my data column (C6-C15). This column should rank from highest to lowest and create a tie if any number is repeated. I have arranged the rank column in cells B38:L38 as they would appear. I would like this to appear on the top or bottom of the bar graphs.

2. Second I need to add the frequency of hits which = 3 derived from cell J1 This should appear on the chart were it is currently titled. This should create another bar graph colored green and labeled 3.

3. Lastly the numbers axis can remain the same as it appears on the chart or if it would be better to align as shown in cells B43:L43.

View 5 Replies View Related

Locking Secondary Axis To Primary?

Apr 8, 2014

I have been trying to break my new chart that combines stacked bars on the primary axis with their labels on a transparent line graph tied to the secondary axis. The secondary axis allows me to show the labels I want as categories and position them relative to the visible part of the stacked bar (waterfall style) proportionately outside of the bar. The trouble comes when my label positioning is less than or more than the primary boundaries. I can solve this manually by changing the max or min value of the secondary axis, but what I really want is for the secondary axis to be locked to the primary axis' max and min automatically.

View 2 Replies View Related

Excel 2010 :: Vertical Grid Lines For Multi-level Category Axis Labels

Feb 16, 2012

I am having a problem formatting a chart in Excel 2010. My chart has multi-level category axis labels, and I would like to have a vertical grid line separating each major group of categories. In Excel 2003, I could right-click on one of the gridlines and then specify the spacing I wanted between gridlines. In Excel 2010, as soon as I indicate that I want multi-level category axis labels, I get a vertical gridline between each category and I am unable to alter the spacing. If I deselect the multi-level axis label option, I can adjust the spacing between the vertical gridlines, but the axis multi-level label functionality is lost. Is there a way to fix this problem without having to resort to using the drawing tools or text boxes to achieve the desired results.

View 3 Replies View Related

Changing Values Of X-axis, And Descending Order Axis(x-axis)

Feb 8, 2009

Two questions:

1) How do make values on x-axis as words? E.g. apples, oranges, etc.

2) Is it possible to have the numbers on x-axis in descending order? If I can figure out 1), I can do this as well, but it would be nice to know if it is possible to have the numbers on x-axis in descending order.

View 8 Replies View Related

Add Secondary Chart X-axis Below Primary Via Macro Code

Apr 27, 2008

In VBA, how to add a secondary x-axis in the lower portion of the chart if I already have the primary axis in the upper part?

This code

ActiveChart.HasAxis(xlCategory, xlSecondary) = True

just adds it to the upper if I have the primary at lower.

View 4 Replies View Related

Adding Reference Lines To Chart With Primary And Secondary Axis

Jan 10, 2014

I have a chart with sales data on one axis and inventory on a secondary axis. I have the average of each columns of data and want to add a reference line to each axis with it's average. I have added the averages to my data set, but it only adds the reference line to my primary axis. I actually began by manually inserting two lines to the chart (which seems asinine). They actually didn't print because they weren't actually on the chart, but rather just on the spreadsheet behind.

View 5 Replies View Related

Horizontal Category Axis Label?

Mar 11, 2014

I have a chart and a number of the data sets have a horizontal data but then some sets don't. How can I add the same horizontal data to the sets that don't?

View 1 Replies View Related

Axis Title Size

Jun 18, 2007

I'm not getting all of my text into the Axis title "box" in a normal graph in excell. And I'm not able to use the arrow to "drag" the axis title to a larger area. Making the size of the text smaller is not a option, I would like the axis title area larger.

View 3 Replies View Related

2 Category Axis In Same Level - How To Define Uppermost

Aug 22, 2013

I'm building a chart wich displays data for each month and there are 3 phases that are defined by month and included in the chart. I've managed to show both of the category series, but I'd need to change the order in which the labels are displays. Now I have the axis in the following form:

PH2 PH2 PH3 PH4
1.2013 2.2013 3.2013 4.2013

I need it in the following form:

1.2013 2.2013 3.2013 4.2013
PH2 PH2 PH3 PH4

View 1 Replies View Related

VBA To Customize Line Chart Category Axis

Jul 18, 2014

With a scatter chart, you can use the following vba to set maximum and minimum category values on a scatter chart. Is the same possible for a line chart and if so, how?

With ActiveChart.Axes(xlCategory)
If Range("S6").Value "" Then .MinimumScale = Range("S6").Value
If Range("S7").Value "" Then .MaximumScale = Range("S7").Value

View 7 Replies View Related

Offsetting Category Labels Along A Chart Axis

Jun 9, 2006

Has anyone ever succeeded in offsetting category labels in a chart by surpressing the first category label. I am plotting monthly financial data over several years and want to show category labels for the month ends which coincide with quarterly month ends (i.e Mar-06, Jun-06, Sep-06, Dec-06). If I select 2 tick marks between categories I get Jan-06, Apr-06, Jul-06, Oct-6) because my first month and category label is Jan-06. Is there a way to offset displaying the first category label by two tick marks and start with Mar-06 and then go every two tick marks between category labels?

View 3 Replies View Related

Category X Axis Labels On Scatter Graph

Apr 4, 2007

I have a set of data which I need to plot both unordered and ranked.

For the unordered (as is) data, a line graph is fine, as it gives the category labels along the x axis.

For the ordered data, i have a row with the ranking in, and then plot an xy scatter graph, so the values increase.

This obviously has the rank numbers along the x axis, not the corresponding category labels.

Is there anyway to force this? I know there are chart labelling add-ins on here, but our IT dept blocks the download.

The attched file is a very small example.

View 7 Replies View Related

How To Make Room For Axis Title

Jul 19, 2014

I have a basic line chart. It was generated without a horizontal axis title, and very little room to add one. When I add one, the chart won't resize for it, and it bumps into the numbers on the axis. How do I get the chart to resize so this axis title fits in nicely. This has proven to be surprisingly difficult. Note also that a lot of options are greyed out that I try, and so far un-degreyable.

View 7 Replies View Related

Conditional Formatting Of Chart Based On Category Axis Value

May 24, 2005

I am trying to format the colour of a column chart based on the value of the x axis (not the y axis value). Firstly I need to know if it is possible. Secondly I would appreciate any hints / VBA code that could be useful.

View 4 Replies View Related

Prevent Word Wrap In Chart Category Axis

Jan 12, 2008

I do not seem to be able to consistently control word wrapping in the Category Axis area in the series of charts I create quarterly. The individual names appearing are basically the same, but sometimes they word wrap and sometime they don't. In the attached sample, sheet C2-Location: PPO chart is just the way it needs to be - NO WORD WRAP. But if you change that chart to another location it word wraps. (To change locations, go to sheet D2 which controls sheet C2 chart, and change the location to SGO.) It appears that the less bars in the chart the greater the problem.

I have spent 2 1/2 hrs trying to get in control of this. I have changed font sizes, changed the plot area, changed the grid lines scale, changed the cell size on the originating sheet (D2), removed the check mark in Auto Scale on the Font tab, and stretched/reduced the entire chart without consistent success. What is most frustrating is that twice I have "accidently" gotten a chart to all of a sudden not word wrap but don't know why because when I try to repeat what I think I did before, it does not work!

Additionally, at times it may appear correct on the screen, but when I do Print Preview, it is word wrapped! I have searched multiple sites and googled multiple Excel solutions as well as pulled out some books but cannot find any references regarding how to control this.

View 7 Replies View Related

Excel 2007 :: Inconsistent Time Scale - X Axis

Mar 8, 2012

Basically I have some performance figures for a fund that I want to make a chart for, the problem is that the first date (the start date of the fund) is 15/09/2011 but every reporting date after that is the end of the month.

So my data looks something like this (not real figures)

15/09/11 20
30/09/11 22
31/10/11 23
30/11/11 25
31/12/11 26
31/01/12 27.5
29/02/12 29

So what I want is a graph where the x axis starts at 15/09/11 but then the next label is 30/09/11 and 31/10/11 etc, while still keeping the scale proportionate to the dates, ie the distance between 15/09/11 and 30/09/11 will be half the distance between 30/09/11 and 31/10/11.

The 2 outcomes I seem to be stuck with is either forcing the graph to start at 31/08/11 and making the y axis cross at 15/09/11, however with this the x axis goes left past the y axis cross point and it just looks dumb, although everything right of the y axis is correct.

Or secondly I get the graph to start at 15/09/11 and set it to label every 1 month and all the labels are 15/09/11, 15/10/11, 15/11/11 etc

I have access to excel 2003 or 2007.

View 4 Replies View Related

VBA Changing Axis Title Font Size And Typeface

Dec 18, 2012

I've been successful at changing the font size for the Main title and legend using these commands:

Code:
ActiveChart.ChartTitle.Font.Size = 8
ActiveChart.Legend.Font.Size = 8

But the horizontal axis has me stumped. I recorded part of this but can't get it to work:

Code:
ActiveChart.Axes(xlValue).AxisTitle.Font.Size = 8

How can I change the typeface to Times New Roman for all three and change the font size for the Axis titles? hundreds of charts to change and not enough patience to to it manually.

View 3 Replies View Related

Excel 2007 :: Dates By Month On X-Axis In Horizontal Stacked Bar Chart?

Aug 24, 2012

I am working with the Ganntt chart and horizontal bar charts but can't seem to figure out a way to force the X-Axis to behave properly.

In Excel 2007, I am trying to get the X-Axis to show major units of Months. However, in my chart options I can only change the Y-Axis to be Date/Monthly.

Changing my data layout (from the below) to be a vertical format produces the same problem, just in the other direction.

My data looks as follows:

System
Blocker
Production
Migrataion
Retired

Sys1
1/1/2012
780

Sys2
1/1/2012
400
60
90

Sys3
2/1/2013
30
5
1

The Blocker column is formatted as "No Fill" in order to cover a portion of the time-scale.

My X-Axis displays as random dates throughout the period and all of my data displays properly in terms of the scale on the grid.

What is NOT working is that the dates shown on the X-Axis really need to be based on a Monthly scale instead of the randomly selected dates Excel is using.

20120823.xlsx

I can't seem to find the right combination of options to make that happen or force a scale on the X-Axis.

View 1 Replies View Related

Create Chart With Names In Vertical Axis And Values In Horizontal Axis?

Mar 1, 2014

I have a spreadsheet with golfers handicaps, golfers names down the left in column A in rows 3-35. Row 2 has the event numbers titles 1 to 18 (18 events in a year). i need a graph that has the person as the vert axis and the horizontal axis needs to be the event numbers, so i can read down for the person and across to see how there handicaps change from each different event. i have attached the data below.

View 1 Replies View Related

Draw Log Chart Or Edit Axis Intervals And Starting Axis Value

Apr 20, 2007

I have some numeric data that has to be put on a log chart. but there is no option for log charts. so i converted my data to log and then drew a chart but i am unable to edit the axis intervals and starting axis value. whenever i change the value it gets back to its default value,ie 1. can anyone tell me how to draw log chart or how to edit axis intervals and starting axis value?

View 6 Replies View Related

How To Create Engineering Graph With Two X Axis And Single Y Axis

Dec 10, 2012

I need to create a graph with a 2 x axis and a single y axis. For example:

Pressure ( PSIA) Solubility (mol %) Velocity (m/s)
200 0.024 1
300 0.036 1.2
400 0.041 1.8

I need the two x axis to be pressure and solubility and the y axis to be velocity, with the data being demonstrated by a single plot (I have only managed it with two plots which does not demonstrate solubility's relationship to pressure ).

For example at a pressure of 200 PSIA (lower x-axis) and solubility of 0.024 mol % (upper x-axis) velocity was found to be 1 m/s.

View 1 Replies View Related

Graphing 2 Distinct X Axis Variables On Same Y Axis

Mar 26, 2014

I am trying to reproduce a graph similar to this: [URL] ....

How to get the Y axis in the center and two distinct bar charts on either side.

Sample data can be found here: [URL] ....

View 1 Replies View Related

Horizontal And Vertical Chart Axis As Value Axis

Jan 26, 2008

What is the best way to have both horizontal and vertical axis as value axis?

View 2 Replies View Related

Excel 2010 :: How To Extract List Of Titles Having Similar Category

Oct 30, 2013

I have lots of DVDs and decided to catalogue them using Excel 2010. I made use of 3 Sheets. In Sheet 3 there are 2 lists: Category (PG, M18, General, Adult) and Language (English, Chinese, Japanese, Korean, Spanish). Sheet 2 contains the data under the following headings: Title, Category, Language, Genre. I used Sheet 1 to create a drop down list for selecting a Title and then the information of the title are displayed, that is, its category, language and genre (I used vlookup). This is working fine.

Then I created another drop down list for Category. I want to be able to select a category, such as M18, and then a list of titles that fall under this category will be displayed. However, when I tried using vlookup with index, I failed to get the display of titles.

View 1 Replies View Related

Plotting Data With Two X Axis And 1 Y Axis

Dec 19, 2013

I have a data set that is a spectrum of (y)intensity vs (x)energy I was wanting to add an additional X axis at the top of the graph showing the wavelength conversion for the energy value, is that possible in excel? and if so how?

View 1 Replies View Related

Bar Graph With Values On Left Vertical Axis And Percentages On Right Vertical Axis

Jan 19, 2012

how do you create a graph with a field such as vendors on the X-axis, but with dollar values spent on the left side of the y-axis and percentage of total dollars spent on the right side vertical axis?

View 3 Replies View Related

Add Right Axis That Look Exactly The Same As Left Axis?

Jan 29, 2014

I would like to add a vertical axis to the right of my plot that looks exactly the same as the left axis. The only way I found to do this is to add a secondary axis. However this axis is based on a data series and it does not match the left axis.

How can I make the left and right vertical axis look the same.

View 4 Replies View Related

Getting Value On Y Axis By Putting X Axis Value

Aug 15, 2011

Any way to get the values in a chart/graph by putting an specific X axis value.

E.g. There is relation between Gauge height and Flow

GaugeFlow
0.30500.320.100220.3413880.275390.3813470.855280.4017081.322240.4137521.692480.4333542
.468280.4529963.431060.4823795.30220.5115577.774290.5229628.94510.56120913.535920.58917.68

If I draw the curve with Flow on X-axis and Gage on Y-axis and then want to know the flow at Gage 0.53m.

OR

By putting flow value to know Gage height.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved