Axis Management issue


Author
Message
Andrei Zaharia
Andrei Zaharia
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1
Hello,

I have a problem regarding the axis management. We have a menu from which we can change, among other things, the length of the axis. This menu was working fine with the old nevron (Nevron .NET Vision Q2007). Now we are using the Nevron build 12.8.17.12 and we can't increase the length for the Y axis above a certain value.
Ex: If the chart has on the Y axis the maximum value 15 we can't set it higher than 15.

I debugged the code and in the method that does the modification of the axis length the new value is received correctly. This is the part of the code where we make the change. We get the chart occupying the right position and we update the Begin Value and Axis Length

....
NNumericAxisPagingView NumericPagingView = new NNumericAxisPagingView(new NRange1DD((double)nUD_Beginvalue.Value, (double)nUD_AxisLength.Value));

axis.PagingView = NumericPagingView;

if ((cb_ChartAxis.SelectedIndex == 0) && (m_chart.Axis(StandardAxis.SecondaryX)).Tag.ToString() =="String")
m_chart.Axis(StandardAxis.SecondaryX).PagingView = NumericPagingView;

///We recover the list with the axis definition
List> axe = gf.getAxisList();

///We change the begin value and length value for the corresponding axis
axe[cb_ChartPosition.SelectedIndex][cb_ChartAxis.SelectedIndex].BeginNValue = (int)nUD_Beginvalue.Value ;
axe[cb_ChartPosition.SelectedIndex][cb_ChartAxis.SelectedIndex].LengthNValue = (int)nUD_AxisLength.Value;
gf.setAxisList(axe);
Graphique.Refresh();
....
As i pointed out the new values are correctly stored in the axis's parameters ( BeginNValue and LengthNValue ) but the change doesn't occur on the graphic.
This works if we input a lower value for the Y axis length. It only fails when we want to set a higher value that the maximum point on the Y axis.

I added some print-screens with the problem.

Regards
Attachments
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Andrei,

Why do you use the paging view? - most likely you simply want to set a range to the axis in which case you should use the View:

someAxis.View = new NRangeAxisView(new NRange(begin, end), true, true);

will do the job...



Best Regards,
Nevron Support Team


Andrei Zaharia
Andrei Zaharia
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1
Hello,

Thank you for the solution! It was exactly what i needed.

Regards,
Andrei Zaharia
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search