Sunday, May 1, 2011

Is there a way to draw lines (x,y)-(x2,y2) in ASP.NET pages?

Not animated of course, but good for displaying data visually such as Gantt chart etc.

From stackoverflow
  • 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.

  • why not use a javascript graphs library to draw your graphs and charts?

    check out these flot examples - maybe flot is what you need

    Davide Vosti : Highly reccomend flot
  • 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.

    shogun : System.Drawing is what I was looking for, thank you.
  • 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.

0 comments:

Post a Comment