PDA

View Full Version : Graphical Chart in ASP


ibrahim
11-07-2005, 10:46 AM
I need to draw a chart in asp page, kindly suggest what kind of chart will be easy to use. is it possible to insert a MsExcel Chart in a asp page?

If yes then please guide step by step

Thanks in Advance...

:confused:

Bullschmidt
11-10-2005, 02:34 PM
I've got a free barchart ASP class (no components) downloadable from my Web site at http://www.bullschmidt.com/barchart.asp to help turn data stored in a table (or SQL statement) into a barchart.

To create a bar chart on a Web page you would include another Web page called jpschart.asp:
<!--#include file="jpschart.asp"-->

And the trick for using the chart with a recordset is the same concept as writing data to an HTML table from a recordset and that is this - within your loop through the recordset you retrieve values such as objRS("Sales") and in this case write those values to the chart object instead of writing those values to the HTML table.

And if a user ever wants to print a bar chart he can do this in a browser such as Internet Explorer: Tools | Internet Options | Advanced tab | Under Printing check "Print background colors and images."

Also you may want to check out the following:

Components: Graphics & Charts
http://www.aspin.com/home/components/graphics
Lists components.

IntrChart - Graphing and Charting the Internet
http://www.compsysaus.com.au/intrchart