StiClusteredBarSeries - Setting the x-axis range
Posted: Mon Dec 12, 2011 9:40 am
Hallo Support,
I recently updated to your latest version (2011.3.1108.0) of the dlls. This has brought some good improvements but one problem which I did not have before. In my c# code I am dynamically generating a chart with a "StiClusteredBarSeries". The chart is split over two pages as there is too much data for one page. To achieve this, the data is split (50 rows to one page) and for each page, a new databand and a chart are created. As from the reader's point of view it is supposed to be just one chart, I must ensure that the x-axis for each of the 2 charts starts and ends with the same values. For this I use the x-axis range as follows:
IStiXAxis axisX = ((Stimulsoft.Report.Chart.StiAxisArea)chart.Area).XAxis;
// check for a fixed x-axis range
if (this.fixedXaxisRange.Count == 2)
{
axisX.StartFromZero = false;
axisX.Range.Auto = false;
axisX.Range.Minimum = this.fixedXaxisRange[0];
axisX.Range.Maximum = this.fixedXaxisRange[1];
}
Up to now this was working fine but with the new version it doesn't work, as you can see in the attachments - the x-axis on the first page goes to 16.000 but on the 2nd page only to 5.000. You can also see from the output in the debugger that the values have been set for the x-axis. Do you have any idea what I can do to get it to work?
Thanks and regards,
John Kitching
I recently updated to your latest version (2011.3.1108.0) of the dlls. This has brought some good improvements but one problem which I did not have before. In my c# code I am dynamically generating a chart with a "StiClusteredBarSeries". The chart is split over two pages as there is too much data for one page. To achieve this, the data is split (50 rows to one page) and for each page, a new databand and a chart are created. As from the reader's point of view it is supposed to be just one chart, I must ensure that the x-axis for each of the 2 charts starts and ends with the same values. For this I use the x-axis range as follows:
IStiXAxis axisX = ((Stimulsoft.Report.Chart.StiAxisArea)chart.Area).XAxis;
// check for a fixed x-axis range
if (this.fixedXaxisRange.Count == 2)
{
axisX.StartFromZero = false;
axisX.Range.Auto = false;
axisX.Range.Minimum = this.fixedXaxisRange[0];
axisX.Range.Maximum = this.fixedXaxisRange[1];
}
Up to now this was working fine but with the new version it doesn't work, as you can see in the attachments - the x-axis on the first page goes to 16.000 but on the 2nd page only to 5.000. You can also see from the output in the debugger that the values have been set for the x-axis. Do you have any idea what I can do to get it to work?
Thanks and regards,
John Kitching