I tried to bind chart to generatedSequence
of type List<float>
. How to update chart control after binding?
I tried this but with no luck:
chart1.DataSource = new BindingList<float>(chartSequence);
chart1.DataBind();
chart1.Update();
I tried to bind chart to generatedSequence
of type List<float>
. How to update chart control after binding?
I tried this but with no luck:
chart1.DataSource = new BindingList<float>(chartSequence);
chart1.DataBind();
chart1.Update();
Don't forget set DataSource property of Series in chart property.
Set XValueMember
and YValueMembers
from code:
chart1.Series.First().XValueMember = "X";
chart1.Series.First().YValueMembers = "Y";
Tutorial: Creating a Basic Chart