Area chart has gaps in staircase mode (data specific).

TeeChart for ActiveX, COM and ASP
Post Reply
ESRI
Newbie
Newbie
Posts: 60
Joined: Wed Mar 09, 2005 5:00 am

Area chart has gaps in staircase mode (data specific).

Post by ESRI » Thu Jan 26, 2006 11:53 pm

Here is the code:

static void Main(string[] args)
{
ITChart pChart = new TChartClass();
//pChart.Aspect.View3D = false; //optional
pChart.SetTheme(EChartTheme.ctExcel, EColorPalette.cpExcel); // just to make chart nicer

int idx = pChart.AddSeries(ESeriesClass.scArea); // "area" and "horizontal area" have problem
ISeries pSeries = pChart.Series(idx);
pSeries.XValues.Order = EValueListOrder.loNone; // very important to preserve original data order

IAreaSeries pAreaSeries = pSeries.asArea;
pAreaSeries.Stairs = true; // stairs mode is important to see gaps, without it 2d is ok but 3d will miss one of side walls of the chart
pAreaSeries.AreaPen.Visible = false; // to see gaps better
pAreaSeries.LinePen.Color = 0xff; // to see gaps better

for (int i = 0; i < 7; i++)
//pSeries.AddXY(i, i, null, 0xffffff); // makes correct Area Chart
pSeries.AddXY(6 - i, 6 - i, null, 0xffffff); // makes incorrect Area Chart with gaps

// export graph to observe the problem
IBMPExport pBMP = pChart.Export.asBMP;
pBMP.Height = 250;
pBMP.Width = 600;
pBMP.SaveToFile("c:\\tee_testAreaStairsSortedDesc.bmp");
}

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 30, 2006 8:59 am

Hi,

yes, you're correct, it's a bug, it does not paint fine with this combination (xorder = loNone and aspect to 3D). I've added on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.

ESRI
Newbie
Newbie
Posts: 60
Joined: Wed Mar 09, 2005 5:00 am

Post by ESRI » Wed Nov 08, 2006 5:15 am

Hello Pep.

Could you please provide your bug ID number for this request?

Many thanks,
Juan

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 08, 2006 1:43 pm

Hi Juan,

Yes, this is TV52011212.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ESRI
Newbie
Newbie
Posts: 60
Joined: Wed Mar 09, 2005 5:00 am

Post by ESRI » Thu Mar 20, 2008 3:53 am

Hola Narcís.

Just wanted to note that we are using TeeChart7.ocx v7.0.1.4, and are still seeing the problem.

Demonstrated here:
http://i25.tinypic.com/2w74qxl.png

Thanks,
juan

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 20, 2008 8:47 am

Hi Juan,

Yes, I've just checked that this issue hasn't been fixed yet.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply