473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.FillPolygon(myBrush,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.FillPolygon(MyBrush, MyCurve));

>>> This draws the series on a graph but no polygon.


using Systems.Windows.Forms.DataVisualization.Charting;

ChartGraphics.FillPolygon(MyBrush, MyCurve);
>>> this complains that ...FillPolygon is inaccessible due to its protection level
Aug 23 '10 #1
0 1434

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: python1 | last post by:
Having slight trouble conceptualizing a way to write this script. The problem is that I have a bunch of lines in a file, for example: 01A\n 02B\n 01A\n 02B\n 02C\n 01A\n 02B\n
1
by: Michael Rodriguez | last post by:
In Delphi there was a control called a Bevel. It would let you draw straight lines, top, left, right, or bottom, anywhere on your screen. What is the equivalent in C#? How can I draw a straight...
3
by: Maileen | last post by:
Hi, I would like to know if under VB.NET exist some component which allow us to draw a 3D line (instead to draw 2 lines - 1 white and 1 dark grey) ? thanks a lot, Maileen
0
by: karen s via AccessMonster.com | last post by:
I searched the knowledge base for a way to do this but am having no luck with it. The directions state to select the data series that you want to plot along a secondary value axis, then on the...
0
by: gregoryenelson | last post by:
Does anybody know how to change data series from a histogram/bar representation to a line in a Graph on a Report? I have 5 measurements I need to follow. I created the report and the queries and...
4
by: jessy | last post by:
can anybody tell me how to draw a dashed line in c i've drawn a dotted one using a simple for but i can't figure out how to make it dashed ... i need a for loop that is increasing constantly...
3
by: saathujaya | last post by:
Hi, I want to draw a dotted line.So how to colour the pixel with distance?(like ..... )
1
by: jojojjose | last post by:
function draw() { var s=''; s+='<v:polygon points="'; s+= //points from server s+="> </v:polygon>'"; document.wrie(s); }
2
by: NithyaMM | last post by:
Hi, Draw table using line between rows and Columns Help me
2
by: Swan666 | last post by:
I have a function which creates a polygon of blue color. I call this function inside a loop of 128 iterations. For every iteration, i change the value of x and y so that my polygon is rendered on new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.