Profile Picture

NlineSeries : Start range from 1 instead of 0 using " new NRangeAxisView(new NRange1DD(1, 30)) "

Posted By M B 10 Years Ago

NlineSeries : Start range from 1 instead of 0 using " new...

Author
Message
M B
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 1, Visits: 6
Hi,
I am trying to fill chart using a List<decimal> like this:
 for (int i =0; i<ListItems.Count; i++)
            {
nl.Values.Add(ListItems[i]);
            nl.XValues.Add(i+1);
}

but the first item always has xvalue = 0, how can I change it to start from 1 to 30?

Best regards,

R. B.


Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 hours ago
Posts: 3,054, Visits: 4,009
Hi R.B.,
You simply need to tell the line to use X values:

nl.UseXValues = true;

otherwise it will automatically assign x values that start from 0.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic