I need to add a polygon to a data series in mschart.
I have tried the following:-
...using Systems.Windows .Forms;
...
formGraphics.Fi llPolygon(myBru sh,MyCurve);
{this works OK but on a plain form with no axes)
...
chart1.Series[0].Points.AddXY(1 .0, 2.0);
...
chart1.Series[0].Points.AddXY(5 .0, 20.0);
...
formGraphics.Fi llPolygon(MyBru sh, MyCurve));
>>> This draws the series on a graph but no polygon.
using Systems.Windows .Forms.DataVisu alization.Chart ing;
ChartGraphics.F illPolygon(MyBr ush, MyCurve);
>>> this complains that ...FillPolygon is inaccessible due to its protection level
I have tried the following:-
...using Systems.Windows .Forms;
...
formGraphics.Fi llPolygon(myBru sh,MyCurve);
{this works OK but on a plain form with no axes)
...
chart1.Series[0].Points.AddXY(1 .0, 2.0);
...
chart1.Series[0].Points.AddXY(5 .0, 20.0);
...
formGraphics.Fi llPolygon(MyBru sh, MyCurve));
>>> This draws the series on a graph but no polygon.
using Systems.Windows .Forms.DataVisu alization.Chart ing;
ChartGraphics.F illPolygon(MyBr ush, MyCurve);
>>> this complains that ...FillPolygon is inaccessible due to its protection level