How to change Maximum and Minimum axis range

Stimulsoft Reports.NET discussion
Post Reply
a_hnd
Posts: 2
Joined: Wed Jul 25, 2012 3:20 pm

How to change Maximum and Minimum axis range

Post by a_hnd »

Hi
How to change Maximum and Minimum axis range? (VB.NET)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to change Maximum and Minimum axis range

Post by HighAley »

Hello.

Please, try to use next code:

Code: Select all

Dim chart As StiChart = TryCast(rep.GetComponentByName("Chart1"), StiChart)
DirectCast(DirectCast(chart.Area, Stimulsoft.Report.Chart.StiAxisArea).YAxis, Stimulsoft.Report.Chart.StiAxis).Range.Minimum = 2
DirectCast(DirectCast(chart.Area, Stimulsoft.Report.Chart.StiAxisArea).YAxis, Stimulsoft.Report.Chart.StiAxis).Range.Maximum = 10
Thank you.
a_hnd
Posts: 2
Joined: Wed Jul 25, 2012 3:20 pm

Re: How to change Maximum and Minimum axis range

Post by a_hnd »

And where i use this code? Visual Studio or Designer (Version 2012) ?
Thank You.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to change Maximum and Minimum axis range

Post by Alex K. »

Hello,

Sorry, maybe in this case we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
Post Reply