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");
}
Area chart has gaps in staircase mode (data specific).
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Juan,
Yes, this is TV52011212.
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 |
Instructions - How to post in this forum |
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Juan,
Yes, I've just checked that this issue hasn't been fixed yet.
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 |
Instructions - How to post in this forum |