![]() |
Web Development »
ASP.NET »
General
Intermediate
License: The Microsoft Public License (Ms-PL)
A simple thermometer chart for ASP.NETBy Joe LyndsA simple thermometer chart for ASP.NET |
VB 8.0, Windows, .NET 2.0, ASP.NET, GDI+, WebForms, VS2005, Dev
|
||||||||
|
Advanced Search |
|
|
|
||||||||||||||||
jThermometer is a class for creating thermometer charts of the type used generally
to show progress toward a fund raising goal. It arose out of my involvement in a
charity walkathon. The organizer wanted to have a thermometer-type chart on a the
walkathon's home page to indicate progress toward fund raising goals. I was unable
to find anything free that seemed appropriate for the site so I decided to create
my own and share it here on Code Project.
The chart uses GDI+ to compose an image and stream it out to the browser.
For the purposes of portability, I've separated the chart into two parts.
jThermometer is a class that creates a bitmap using GDI+ and streams it out to the current request as a GIF image.
Thermometer.aspx is a web page that accepts various parameters controlling the appearance of the Thermometer chart and that can be referenced by an <IMG> tag on another web page.
Thermometer.aspx uses these querystring values:
| MIN: | Value displayed at bottom of thermometer. |
| MAX: | Value displayed at top of thermometer |
| IV: | Value indicated on the thermometer. |
| T: | Title displayed at top of the thermometer |
| VT: | Type of value (1=currency, 2=decimal, 3=integer) |
At present, the thermometer does not scale. I'd like to have it automatically scale based on user-provided dimensions. There are also a lot of appearence-related aspects that should be controlable via properties such as text color, indicator color and the color of the mercury.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 15 May 2007 Editor: |
Copyright 2007 by Joe Lynds Everything else Copyright © CodeProject, 1999-2009 Web20 | Advertise on the Code Project |