how do I draw a filled polygon on a line data series chart?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ian dean
    New Member
    • Aug 2010
    • 3

    #1

    how do I draw a filled polygon on a line data series chart?

    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
Working...