Page 1 of 1

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

Posted: Thu Jan 26, 2006 11:53 pm
by 9526208
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");
}

Posted: Mon Jan 30, 2006 8:59 am
by Pep
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.

Posted: Wed Nov 08, 2006 5:15 am
by 9526208
Hello Pep.

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

Many thanks,
Juan

Posted: Wed Nov 08, 2006 1:43 pm
by narcis
Hi Juan,

Yes, this is TV52011212.

Posted: Thu Mar 20, 2008 3:53 am
by 9526208
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

Posted: Thu Mar 20, 2008 8:47 am
by narcis
Hi Juan,

Yes, I've just checked that this issue hasn't been fixed yet.