473,811 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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
Aug 23 '10 #1
0 1456

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

Similar topics

5
1439
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
3892
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 line across the screen? TIA, Mike Rodriguez
3
4491
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
1716
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 format menu click Selected Data Series, and then click the Axis tab. I don't have an Axis tab when I do this. I have patterns, shapes, data labels and Options, none of which contain any mention of secondary axis. I am trying to plot on the y axis...
0
1519
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 then selected the 'Custom' type in the Chart Types option page - this creates a mix of the 5 indicators I need. However, it created a lot of bar indicators and I need to change some to the Line indicators. I tried right-clicking and going thru...
4
13667
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 but skips afew pixels in the way and then continue drawing again here's the one i used to draw the dotted line y=y1 where x1,y1 are start points x2,y2 end points for( x=x1;x<=x2;x+=3) { putpixel(x,y,color); }
3
3535
by: saathujaya | last post by:
Hi, I want to draw a dotted line.So how to colour the pixel with distance?(like ..... )
1
4512
by: jojojjose | last post by:
function draw() { var s=''; s+='<v:polygon points="'; s+= //points from server s+="> </v:polygon>'"; document.wrie(s); }
2
4362
by: NithyaMM | last post by:
Hi, Draw table using line between rows and Columns Help me
2
1531
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 location. This goes fine and i get 128 new polygons on my image after running the script. But if change the number to 129, the 129th polygon is transparent or what i cannot guess.It just does not display or render at all. Is this a bug or some...
0
9728
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10648
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.