Is there a way to draw lines (x,y)-(x2,y2) in ASP.NET pages?
-
13-09-2019 - |
Question
Not animated of course, but good for displaying data visually such as Gantt chart etc.
Solution
why not use a javascript graphs library to draw your graphs and charts?
check out these flot examples - maybe flot is what you need
OTHER TIPS
I'm not sure if i understand your question but if you want to draw images dynamically you can use GDI+ and the System.Drawing namespace. Look here for an example.
Edit: Sorry i did not see the gannt tag. Check out the following control.
You could create the image using the Graphics class, then output the file to the filesystem, and link an Image control of some sort to that image.
There is a new Chart control in ASP.NET 3.5 with a bunch of features and options, maybe you'll like it. You can read a quick review here.
The Walter Zorn javascript library may be your answer.