Add two identical horizontal bar series with mbSelfStack and the second series is wrong. Here is the code:
static void Main(string[] args)
{
ITChart pChart = new TChartClass();
pChart.SetTheme(EChartTheme.ctExcel, EColorPalette.cpExcel); // just to make chart look nicer
pChart.Aspect.View3D = false;
// add first horizontal bar series
int idx = pChart.AddSeries(ESeriesClass.scHorizBar);
ISeries pSeries = pChart.Series(idx);
pSeries.ColorEachPoint = true;
pSeries.Marks.Visible = false;
IHorizBarSeries pHBarSeries = (IHorizBarSeries)pSeries.asHorizBar;
pHBarSeries.MultiBar = EMultiBar.mbSelfStack;
// add data to the first horizontal bar series
for (int i = 0; i < 7; i++)
pSeries.AddXY(i, i, null, (uint)EConstants.clTeeColor);
// add second bar series
idx = pChart.AddSeries(ESeriesClass.scHorizBar);
pSeries = pChart.Series(idx);
pSeries.ColorEachPoint = true;
pSeries.Marks.Visible = false;
pHBarSeries = (IHorizBarSeries)pSeries.asHorizBar;
pHBarSeries.MultiBar = EMultiBar.mbSelfStack;
// add data to the second horizontal bar series
for (int i = 0; i < 7; i++)
pSeries.AddXY(i, i, null, (uint)EConstants.clTeeColor);
// export graph to observe the problem
IBMPExport pBMP = pChart.Export.asBMP;
pBMP.Height = 250;
pBMP.Width = 600;
pBMP.SaveToFile("c:\\2HorzBarSelfStack.bmp");
}
2 identical horizontal bar series with mbSelfStack problem
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
It works fine for me here using v7.0.0.7 beta (still not available to customers). Which TeeChart version are you using?
Thanks in advance.
It works fine for me here using v7.0.0.7 beta (still not available to customers). Which TeeChart version are you using?
Thanks in advance.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
I already sent you v7.0.0.7 Beta for you to test if it solves that issue.
I already sent you v7.0.0.7 Beta for you to test if it solves that issue.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
Sorry but I noticed that my test were done using a 3D chart. This only occurs in 2D. It happens to be a known bug and it is almost fixed for the next maintenance release.
Sorry but I noticed that my test were done using a 3D chart. This only occurs in 2D. It happens to be a known bug and it is almost fixed for the next maintenance release.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Juan,
Have you been able to reproduce it using v7.0.1.2, the latest maintenance release available at the client area? It should be fixed there.
Have you been able to reproduce it using v7.0.1.2, the latest maintenance release available at the client area? It should be fixed there.
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 |