1

i want to add line with values on chart

how do this

my array value {10,20,30.....}

enter image description here

3
  • 1
    Is the picture what you have achieved or what you want to do?
    – NLindbom
    Nov 20, 2015 at 14:42
  • So what have you written so far??
    – TaW
    Nov 20, 2015 at 16:24
  • For a Series S1 try something like this: for (int i = 1; i < 25; i++) { int p = S1.Points.AddXY(i, 123); S1.Points[p].Label = i+""; }
    – TaW
    Nov 20, 2015 at 16:48

1 Answer 1

3

This will bind all your data from the array to the chart in only one line of code:

chart1.Series[0].Points.DataBindY(insertYourArrayHere);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.