NCS Logo - Click for home page Northstar Developer Center
Platforms
All Platforms
.NET Framework (1.x - 4.x)
Active Server Pages
ASP.NET
C#
SQL Server
VB.NET
Visual Basic

Keywords
.NET Data Types
.NET E-mail
.NET Events
.NET Functions
.NET Object Programming
.NET System.Configuration
.NET System.Diagnostics
.NET System.IO
.NET System.Net
.NET System.Net.Sockets
Active Data Objects
ASP Architecture
ASP Black Belt
ASP Built-in Functions
ASP Built-in Objects
ASP Debugging
ASP Performance
ASP Security
ASP Syntax
ASP.NET Authentication
ASP.NET Controls
ASP.NET Data Access
ASP.NET Features
ASP.NET Master Pages
ASP.NET Page Events
ASP.NET Security
ASP.NET ViewState
Atom
Certifications
COM, DCOM, COM+
Data Access
E-Mail
Errors
Exporting Data
HTML Tips
IIS
Object-Oriented Programming
RSS
SQL
Uncategorized ASP Tips
VB API Programming
VB Forms
VB Syntax
XML

Book Support
Visual Basic 6 Bible
ASP Bible
ASP Weekend Crash Course
ASP.NET At Work
Creating Web Services

Showing Graphs and Charts on a Web Page

Written by Eric Smith, Northstar Computer Systems LLC

A user asked about the best way to show a graph or chart on a web page. For this, you basically have three options. First, if the chart isn't really complicated, such as a simple bar chart, you could draw a graphic and stretch its width or height to a proportional size larger. The graphic might only be 2 pixels high and 10 pixels wide, for instance. You could show your graphic as 60 pixels high and 10 pixels wide, for instance, to show 30% or 30 units.

A second option is to use a Java applet, which can be controlled from your ASP file. There are a number of applets available to do this, both commercial and freeware. One of the good sources for Java applets is <a href="http://gamelan.earthweb.com/">Gamelan</a>.

A third option, if you have the ability to do so, you can use one of many ActiveX controls to show your graph or chart. Like Java applets, there are a number of commercial and freeware controls available. You can get these controls at online stores like <a href="http://www.componentsource.com">ComponentSource</a> or <a href="http://vbxtras.com">VBxtras</a>.

Keywords: [ Uncategorized ASP Tips ]

Publication Date: 5/1/2000