Add to Favorites    Make Home Page 1930 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Graphics Home » MkGraph Function

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title MkGraph Function
Description The MkGraph function creates a simple HTML graph. The graph only displays properly in Internet Explorer browsers. There are seven required arguments.

Parameters:
==========
Required Argument Expects Description
-----------------------------------------------------------------------------
arraytograph array (values should be double) array of data
(numbers) to be graphed

arrayofnames array (values should be strings) array of strings
containing the name of each corresponding
value from arraytograph.

bordersize integer integer representing the size of the border
around the graph. Use 0 for no border.

alignment string ("left", "center" or "right") alignment of
the graph on the page. Acceptable values
are: "left", "center" or "right".

width integer (1-100) integer 1 - 100 representing a
percentage out of 100% the total width
of the graph. The overall width of the graph
is still dependent on the size of the bars.
If the percentage declared in width is
smaller than the longest bar, the longest
bar is used as the width.

color string (hexadecimal) color of the bars in the
graph. Color must be a html hexadecimal
color starting with "#" - example: #0000FF
for blue

title string Title of the graph
Category ASP » Graphics
Hits 370625
Code Select and Copy the Code
<% Private Function MkGraph(ByVal arraytograph, ByVal arrayofnames, _ ByVal bordersize, ByVal alignment, _ ByVal width, ByVal color, ByVal title) Dim i, tmp tmp = "<TABLE BORDER=" & bordersize & " ALIGN=""" & _ alignment & """ WIDTH=""" & width & "%""><TR><TD>" & vbCrLf tmp = tmp & "<CENTER><B>" & title & "</B></CENTER>" & vbCrLf tmp = tmp & "<TABLE WIDTH=""100%"" STYLE=""font-size:7pt;"" " & _ "ALIGN=CENTER>" & vbCrLf For i = 0 To UBound( arraytograph ) tmp = tmp & "<TR><TD ALIGN=LEFT WIDTH=""5%"" " & _ "NOWRAP>" & CStr( arrayofnames( i ) ) & _ "</TD><TD ALIGN=CENTER " & _ "WIDTH=""5%"" NOWRAP>[ " & _ CDbl( arraytograph( i ) ) & " ]</TD><TD WIDTH" & _ "=""90%""><SPAN BGCOLOR=""" & color & _ """ STYLE=""width:" & _ CLng( 2 * (arraytograph( i ) / _ UBound( arraytograph ) + 4) ) & _ ";background-color:" & color & _ ";"" WIDTH=""" & CLng( 2 * (arraytograph( i ) / _ UBound( arraytograph ) + 4) ) & _ """> </SPAN></TD></TR>" & vbCrLf Next tmp = tmp & "</TABLE>" & vbCrLf tmp = tmp & "</TD></TR></TABLE>" & vbCrLf MkGraph = tmp End Function %>

Related Source Codes

Script Name Author
ııııııııııııııııııııı VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=329


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review