PC Review


Reply
Thread Tools Rate Thread

2007: Chartwizard bugs

 
 
=?Utf-8?B?TXJU?=
Guest
Posts: n/a
 
      21st Nov 2006
Problems with the Chartwizard:

- If you select a range with two columns and use it as the source with the
ActiveChart.ChartWizard method, for an xlXYScatter chart, you'll get two
series, while you had one previously (and that was LOGICAL).

- If you set Categorylabels:=True, SeriesLabels:=False, and if the first
category is empty, Excel 2007 decides that in fact, SeriesLabels is true. Why
that, no clue. It wasn't so before. And it was better before because it was
so before.

No, no, that's not the beta ...

MrT


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TXJU?=
Guest
Posts: n/a
 
      21st Nov 2006
Just a comment on that

> - If you select a range with two columns and use it as the source with the
> ActiveChart.ChartWizard method, for an xlXYScatter chart, you'll get two
> series, while you had one previously (and that was LOGICAL).


> - If you set Categorylabels:=True, SeriesLabels:=False, and if the first
> category is empty, Excel 2007 decides that in fact, SeriesLabels is true. Why
> that, no clue. It wasn't so before. And it was better before because it was
> so before.


In fact, that's the same problem as above. Then it forces to consider
serieslabels as true.

 
Reply With Quote
 
=?Utf-8?B?TXJU?=
Guest
Posts: n/a
 
      26th Nov 2006
Many things related to the chart wizard behavior have been changed. Automatic
guesses are weird and totally ineffective, and sometimes depend on the
chart/data types. CategoriesLabels and SeriesLabels are not taken into
account if guesses have been made. It will be a big hassle to adapt your code
to version 2007. Believe me.

MrT
 
Reply With Quote
 
H Adler
Guest
Posts: n/a
 
      11th Jan 2007
Little late but here's how I did it...

'Set PlotRange = Union(GraphRange1, GraphRange2)
'ActiveChart.ChartWizard Source:=PlotRange, _
Gallery:=xlXYScatter, Format:=1, PlotBy:=1, CategoryLabels:=1, _
SeriesLabels:=0, HasLegend:=2, Title:=ChartTitle & _
CategoryTitle:=CatAxisTitle, ValueTitle:=ValueAxisTitle, ExtraTitle:=""

ActiveChart.SeriesCollection(1).XValues = GraphRange2
ActiveChart.SeriesCollection(1).Values = GraphRange1
ActiveChart.ChartTitle.Caption = ChartTitle

ActiveChart.ChartType = xlXYScatter
ActiveChart.HasLegend = False
ActiveChart.Axes(xlCategory).HasTitle = True
ActiveChart.Axes(xlCategory).AxisTitle.Caption = CatAxisTitle
ActiveChart.Axes(xlValue).HasTitle = True
ActiveChart.Axes(xlValue).AxisTitle.Caption = ValueAxisTitle

Cheers
/H Adler

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
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 No Show by Using ChartWizard - 2007 Excel, C# Peter Microsoft Excel Programming 2 13th Jan 2009 03:21 PM
ChartWizard difference between Excel 2003 and 2007 kevin-rf Microsoft Excel Programming 0 26th Nov 2008 08:11 PM
TWO 2007 BUGS Dr Bob Microsoft Outlook Calendar 4 9th Sep 2008 10:55 PM
Need urgent help with VBA 2007 CHARTWIZARD method !!! rAJU_sR Microsoft Excel Programming 2 24th Jun 2008 05:54 AM
RE: ChartWizard =?Utf-8?B?U291cA==?= Microsoft Excel Charting 1 27th Jan 2007 04:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 PM.