drawing graphs without using bitmaps

P

pradnyapatil29

I am trying to draw a chart similar to GANTT chart in
asp.net.

Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap

. Coz loading bitmap takes time...Is there any other way to draw
graphics / charts / rectangles without using bitmap or any other image
as a background ?

Thanks....
....
Pradnya
 
N

Nicholas Paldino [.NET/C# MVP]

Pradnya,

You could try doing something with tables that are sized and positioned
a certain way, but quite honestly, it's not really feasible.

You might want to try SVG, scalable vector graphics, but I think you
have to have a plugin for rendering those graphics.

The bitmap is really your best bet which will reach the most amount of
people.

Hope this helps.
 
L

Larry Lard

I am trying to draw a chart similar to GANTT chart in
asp.net.

Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap

. Coz loading bitmap takes time...Is there any other way to draw
graphics / charts / rectangles without using bitmap or any other image
as a background ?

So I'm guessing you're creating these bitmaps on the server, saving
them, then incorporating them in <img> tags you send to the browser?
(If this isn't what you're doing then please ignore this post :)

If you're doing this with .BMP files, then yes they are going to be
slow. However, just because you're working with Bitmap objects, doesn't
mean you have to save them as .BMP files. You can save them as .GIF
files, which are compressed (in a way that's good for charts) and which
will therefore be delivered much more quickly over the wire.
 
A

Alvin Bruney

why don't you use a third party component to spit the chart out? there are
lots of free packages out there

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top