StiClusteredBarSeries - Setting the x-axis range

Stimulsoft Reports.NET discussion
Post Reply
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

StiClusteredBarSeries - Setting the x-axis range

Post 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
Attachments
1488.3.jpg
1488.3.jpg (58.53 KiB) Viewed 1733 times
1487.2.jpg
1487.2.jpg (38 KiB) Viewed 1735 times
1486.1.jpg
1486.1.jpg (36.07 KiB) Viewed 1735 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

StiClusteredBarSeries - Setting the x-axis range

Post 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.
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

StiClusteredBarSeries - Setting the x-axis range

Post 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.
Attachments
1526.StiReportTester.zip
(1.78 MiB) Downloaded 253 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

StiClusteredBarSeries - Setting the x-axis range

Post 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.
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

StiClusteredBarSeries - Setting the x-axis range

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

StiClusteredBarSeries - Setting the x-axis range

Post 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!
Post Reply