1

Based on the data, I need to dynamically generate a graphic in my ASP.NET page. What is the best way to do this. Is this easier to implement in Silverlight.

softwarematter
  • 28,015
  • 64
  • 169
  • 263

4 Answers4

2

You can use any graphics library, including the classes in the System.Drawing namespace.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
0

no, SL in not absolutely needed, you can draw it line by line using GDI+ (Managed GDI APIs) on the server side from C#.

SL could help a bit but it really depends if you want then to bind your application to a plugin. I would not, just to be cross platform (including mobile devices)...

Davide Piras
  • 43,984
  • 10
  • 98
  • 147
0
  1. You can create the image on the server side and returns via httpHandler
  2. TO draw on the client side using javascript you can find a special librarise like this
  3. You can use Silverlight or Flash
  4. I'm not sure but probably it can be done via CSS3
Samich
  • 29,157
  • 6
  • 68
  • 77
0

I would seriously recommend using http://raphaeljs.com/

You could create server side code to do it using system.drawing, but Raphael can do it all in the browser, saving you a round trip.

Simon Halsey
  • 5,459
  • 1
  • 21
  • 32