Profile Picture

Fitting Xaxis Range to serie values

Posted By Miquel Vila 14 Years Ago
Author
Message
bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Miquel,

The x axis will automatically round to tick - this is probably causing the problem. The following code snippet disables tick rounding for the x axis:

NStandardScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NStandardScaleConfigurator;
scale.RoundToTickMax = false;
scale.RoundToTickMin = false;

Hope this helps - let me know if the problem persists.

Best regards,
Bob

 



Miquel Vila
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1
I'm trying to scroll the X axis everytime I add a new value to a serie, using the following code:

panellGrafic.Axis(StandardAxis.PrimaryX).View = New NRangeAxisView(New NRange1DD(panellGrafic.Axis(StandardAxis.PrimaryX).SeriesRange.End - My.Settings.range, panellGrafic.Axis(StandardAxis.PrimaryX).SeriesRange.End))

In the attached picture you can see the chart just after adding a 6.63 xvalue, and the "panellGrafic.Axis(StandardAxis.PrimaryX).SeriesRange.End" returns 6.9, and the charts draws points at 6.7,6.8 and 6.9 although the serie has not this xvalues.

How can I change this behavior and avoid points being drawn where Xvalues have no values?

Attachments
chart.png (42 views, 12.00 KB)


Similar Topics


Reading This Topic