Excel 2007 Charting Wierdness

hatman

Well-known Member
Joined
Apr 8, 2005
Messages
2,664
Has anyone noticed some wierd behavior for ChartType = xlXYScatterLinesNoMarkers? I have a small sample of data, like 100 columns by 5000 rows, with lots of blanks scattered throughout it. In 2003, it plots multiple curves per chart fine, with breaks in the curves right where they belong according to the blank cells. But the same charts in 2007 have entire curves missing from the charts. If you toggle through the series collections in the formula bar of the chart, the invisible curves are there (plus there is a corresponding entry in the legend), and the data gets highlighted when selected, but no line. Some charts had one or two curves missing, and others had all of them missing. We could not seem to repeat WHICH data sets were invisible and which not, on various builds of the charts (actually, a lot of the grunt work is via a macro, but even manual builds with different data sets behaved in a similar fashion).

So here we have curves that do not show up. Great. If we formatted the curve, and ticked on the Smoothed Line option, the curve would appear. Tick it back off, and it disappears.

So the fix in my code was:
Code:
                If Application.Version > 11 Then
                
                    CHRT.ChartType = xlXYScatterSmoothNoMarkers
                    
                Else
                
                    CHRT.ChartType = xlXYScatterLinesNoMarkers
                    
                End If

I really don;t understand why ther eis this discrepency between chart tyes in the 2 versions. Is this a feature or a bug? Has anyone else seen this?

Another aside: When you have an XY scatter with a secondary Y-Axis, and change the chart type to a different sub-group of XY, the secondary Y-Axis disappears, and all the data plotted against it reverts to the primary Y-Axis. I checked, and that behaviour exists in 2003 also.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,222,647
Messages
6,167,331
Members
452,110
Latest member
eui

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top