473,324 Members | 2,535 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,324 software developers and data experts.

DrawLines and c#

I am trying to draw a line on a graphic that will represent data almost like a line graph would do. I however don't know how to draw a continuos line with multiple points. I have also tried creating a line chart on the page and that is not an option because my page can;t have any script in the asp tags and when I tried to put it in the code behind nothing gets display. How would I be able to display any values that I get in the form of a line Chart or line Graph?
Oct 13 '08 #1
2 1555
IanWright
179 100+
Well, the easiest way is probably to go out and buy a 3rd party .NET graph library... However it's going to cost you a bit.

If you want to draw your own then I'm guessing you first want to render a graph on your server, then convert it to an image, and transmit that back to the client...
Oct 13 '08 #2
Plater
7,872 Expert 4TB
Well Graphic objects have the .DrawLines() function that takes an array of points and will draw a line from the first point to the next point and so on and so on.

There are plenty of free 3rd party graching libraries out there that will do this for free as well.
Oct 13 '08 #3

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

Similar topics

5
by: Tamir Khason | last post by:
How I can paint something onClick event? I need PaintEventArgs event in order to paint and raise Graphics, but onClick I have only EventArgs Event... Thanx
7
by: Tamir Khason | last post by:
Is there something RePaint event? I have a couple of controls where I draw using control.CreateGraphics, BUT when I lost focus or do something inside the contorl (click ,etc) all graphics are...
2
by: Serge Klokov | last post by:
Hi! 1. Please, help with example "paint on form by mouse" 2. Below is my example, but it clear the line after each Refresh()... how to fix? 3. How to draw the line in Mouse_Move event? ...
2
by: Benny Raymond | last post by:
More problems with this... When I run this code, the main form returns an invalid cast exception as it's executing the line "TreeNode n = (TreeNode) this.Nodes;" Does anyone know what would...
3
by: Stephen | last post by:
hi, i would like to draw static arrows in the window form. Seems from the posts that there isnt any drawing toolbox. Is there a way of doing it? Pls go step by step, this is the first time i...
3
by: Boni | last post by:
Dear all, I need to draw a collection of hor/vert lines. The lines in the collection are nor ordered. Each line has it's start point end point width and height. |Endpoint 2 |...
12
by: Lee | last post by:
I have the following code using System; using System.Windows.Forms; using System.Drawing; using System.Collections; namespace FINN {
5
by: ibiza | last post by:
Hi all, I use VB.NET (C# would do the same) and GDI+ to draw on a form. I'd like to know if it is possible to set the z-order when we draw something...Let's consider that simplified case : '...
3
by: Piotrekk | last post by:
Hi Graphics pea = e.Graphics; Point ptTable = { pictureBox1.Location , new Point(pictureBox1.Location.X + pictureBox1.Width,pictureBox1.Location.Y + pictureBox1.Height) }; ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.