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? Commented Nov 20, 2015 at 14:42
  • So what have you written so far?? Commented 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+""; } Commented 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);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.