By M B - 10 Years Ago
|
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.
|
By Nevron Support - 10 Years Ago
|
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.
|
|