Page 1 of 1

StiClusteredBarSeries - Setting the x-axis range

Posted: Mon Dec 12, 2011 9:40 am
by John
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

StiClusteredBarSeries - Setting the x-axis range

Posted: Tue Dec 13, 2011 3:15 am
by Alex K.
Hello,

We made some improvements in that direction. Please check the last release.
If the issue is still present, please send us a sample which reproduces the issue for analysis.

Thank you.

StiClusteredBarSeries - Setting the x-axis range

Posted: Fri Dec 23, 2011 7:20 am
by John
Hallo,

I've written a small test project with which you can quickly reproduce the issue (see attachment). The problem occurs if you want to do the following:
For example:
You have data where the highest value on the x-axis is 5000. However, you want the x-axis to be displayed until 16000. This won't work. Unfortunately, this is what I need, for the reasons explained above.

If you have a highest x-value of 5000 and only want the x-axis to display until, say, 3000, this works fine.

Is it possible to include this a forthcoming build? It did in fact use to work.

Best regards and happy Christmas,

John K.

StiClusteredBarSeries - Setting the x-axis range

Posted: Mon Dec 26, 2011 6:50 am
by HighAley
Hello, John.
jkitching wrote:I've written a small test project with which you can quickly reproduce the issue (see attachment). The problem occurs if you want to do the following:
For example:
You have data where the highest value on the x-axis is 5000. However, you want the x-axis to be displayed until 16000. This won't work. Unfortunately, this is what I need, for the reasons explained above.

If you have a highest x-value of 5000 and only want the x-axis to display until, say, 3000, this works fine.

Is it possible to include this a forthcoming build? It did in fact use to work.
We know about this issue and already fixed it.

Please, check our latest prerelease build.

Thank you.

StiClusteredBarSeries - Setting the x-axis range

Posted: Tue Dec 27, 2011 6:05 am
by John
Hallo Alexey,

I've now tested it with your latest version and it's working fine for me.

Thanks and regards,

John K.

StiClusteredBarSeries - Setting the x-axis range

Posted: Tue Dec 27, 2011 7:29 am
by HighAley
Hello, John.
jkitching wrote:I've now tested it with your latest version and it's working fine for me.
That's great!

Let us know if you need any additional help.

Happy New Year!