Problemm with is3D property

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Guest
Posts: 83
Joined: Tue Aug 16, 2005 6:08 pm

Problemm with is3D property

Post by Guest »

Hi !
1. Why Chart shows only one series when is3D = true? When is3D = false it displays all series :

Code: Select all

with XLS.Sheets[0].AddChart do
begin
    PlotArea.ChartType := xctLine;
    PlotArea.HasLegend := true;
    PlotArea.Is3D := true;
    Col1 := 1;
    Col2 := 10;
    Row1 := 4;
    Row2 := 24;
    Series[0].Values := '''1''!$A$2:$A$10';
    Series[0].Category := '''1''!$B$2:$B$10';
    Series.Add;
    Series[1].Values := '''1''!$C$2:$C$10';
    Series[1].Category := '''1''!$B$2:$B$10';
end;
2. I have Access Vialation when I've tried set Chart3D property:

Code: Select all

TChartStyleLine(PlotArea.ChartStyle).Chart3D.SeriesSpace := 10;
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

The problem seems to be the Chart3D property. In order to use more than one serie, a 3D (line) chart must be in perspective transformation. But this is not possible as you can't access the Chart3D property...

I will take a look at this.


Lars Arvidsson
Post Reply