Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Charting solution for ASP


Message #1 by irfan.syed@g... on Tue, 14 May 2002 11:57:57 +0800
This is a multi-part message in MIME format.

------=_NextPart_000_002E_01C1FCB4.20C70030
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

No problems.

Having a dll that returns the drawing object should work fine. Having 
that dll called from an asp page should also be okay, although I have 
not tried to do this, it sounds quite feasable.

Robert
  ----- Original Message -----
  From: irfan.syed@g...
  To: ASPX_Professional
  Sent: Wednesday, May 15, 2002 4:32 PM
  Subject: [aspx_professional] RE: Charting solution for ASP



  Robert,

  You really have been so helpful. Thanks a lot. I think I have made it 
and did not know it was so easy. I have one more questions. As I intend 
to use this charting solution both from ASP as well as ASP.Net, can I 
create a dll and register it to call from ASP? Or is there any other 
way?

  Thanks a lot again



  Irfan,

  I adapted the code to do line graphs as well. Here is the line that 
draws the line:

  objGraphics.DrawLine(New Pen(ItemColor(Count), 2), LastX , LastY, 
NewX, NewY)

  LastX and LastY are the values of the last chart point.

  Hope that helps

  Robert
  ----- Original Message -----
  From: irfan.syed@g...
  To: ASPX_Professional
  Sent: Wednesday, May 15, 2002 1:25 PM
  Subject: [aspx_professional] RE: Charting solution for ASP



  Thanks a lot Robert. I am gonna try it right now. But how about line 
charts? Is there any sample code to do that? Or will it be easier once I 
learn how to do Pie and Bar?

  Regards,
  Irfan





  Irfan,

  The below site shows you how to create bar and pie graphs using 
system.drawing.

  http://aspalliance.com/jnuckolls/Articles/ASPCharts/default.aspx

  I spent days evaluating different packages that did charts, and none 
of them did what I wanted done. I then used the above and within 3 hours 
had created my own charting package that does exactly what I want it to 
do.

  Regards
  Robert
  ----- Original Message -----
  From: irfan.syed@g...
  To: ASPX_Professional
  Sent: Wednesday, May 15, 2002 12:01 PM
  Subject: [aspx_professional] RE: Charting solution for ASP



  Chuck, Bruce

  Thank you for your help. I think i will prefer a solution with 
system.drawing as compared to SVG and XSLT as for these learning curve 
will be very steep. CHuck, how long do you think it will take to write a 
class which can create charts (at least the line charts) on the fly? Do 
you have a sample code for that?

  Regards,
  Irfan



  Irfan,

  My thoughts would be to write your own charting using System.Drawing 
to
  create GIF files on the fly (there are alot of open source C++, Perl,
  Script-Fu (GIMP)  Linux/Unix apps that do this for Apache available 
for
  example code).  Of course this might not be the quickest way to 
market.

  Another option is to use VML, but VML is not totally cross browser
  supported, and requires some workarounds to get it to both display and 
print
  (I can give you some intricisies if you would like).  VML is also hard 
to
  properly code.  There are ActiveX/COM-based ASP controls that produce 
VML
  charts available on the internet for a fee.  I'm sure there are also 
things
  that use the Windows GDI to draw graphs as well.  If you find 
something that
  works really well, please let us know.

  - Chuck

  -----Original Message-----
  From: irfan.syed@g... [mailto:irfan.syed@g...]
  Sent: Monday, May 13, 2002 11:58 PM
  To: ASPX_Professional
  Subject: [aspx_professional] Charting solution for ASP



  Hi All,

  Does any one know the best and most scalable solution which can 
generate
  graphs/charts from within ASP pages on the fly?

  Thanks,
  Irfan

  This e-mail (and any attachment (s)) is confidential and for use only 
by
  intended recipient (s). Access by others is unauthorised. Its content
  should not be relied upon and no liability or responsibility is 
accepted by
  us, without our subsequent written confirmation of its content. If you 
are
  not an intended recipient, please notify us promptly and delete all 
copies
  and note that any disclosure, copying, distribution or any action 
taken or
  omitted to be taken in reliance on the information it contains is
  prohibited and may be unlawful. Further information on Guoco Group is
  available from http://www.guoco.com
  --- Change your mail options at http://p2p.wrox.com/manager.asp or to
  unsubscribe send a blank email to





  This e-mail (and any attachment (s)) is confidential and for use only 
by
  intended recipient (s). Access by others is unauthorised. Its content
  should not be relied upon and no liability or responsibility is 
accepted by
  us, without our subsequent written confirmation of its content. If you 
are
  not an intended recipient, please notify us promptly and delete all 
copies
  and note that any disclosure, copying, distribution or any action 
taken or
  omitted to be taken in reliance on the information it contains is
  prohibited and may be unlawful. Further information on Guoco Group is
  available from http://www.guoco.com
  --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
unsubscribe send a blank email to 






  This e-mail (and any attachment (s)) is confidential and for use only 
by
  intended recipient (s). Access by others is unauthorised. Its content
  should not be relied upon and no liability or responsibility is 
accepted by
  us, without our subsequent written confirmation of its content. If you 
are
  not an intended recipient, please notify us promptly and delete all 
copies
  and note that any disclosure, copying, distribution or any action 
taken or
  omitted to be taken in reliance on the information it contains is
  prohibited and may be unlawful. Further information on Guoco Group is
  available from http://www.guoco.com
  --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
unsubscribe send a blank email to 






  This e-mail (and any attachment (s)) is confidential and for use only 
by
  intended recipient (s). Access by others is unauthorised. Its content
  should not be relied upon and no liability or responsibility is 
accepted by
  us, without our subsequent written confirmation of its content. If you 
are
  not an intended recipient, please notify us promptly and delete all 
copies
  and note that any disclosure, copying, distribution or any action 
taken or
  omitted to be taken in reliance on the information it contains is
  prohibited and may be unlawful. Further information on Guoco Group is
  available from http://www.guoco.com
  --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
unsubscribe send a blank email to 



  Return to Index