Cold fusion calendars, coldfusion, cold fusion applications
Home Applications Custom Tags My Blog Questions? SpeedTest






          
Basic use:
   	cf_1barGraph
	 TheNumbs="169,20,98,12"
	  thelabels="Xyz,ALR,AOL,IBM"
	   ImgRange="1,5"
	   
With Optional attributes:

cf_1barGraph
 TblWdith="300"
 BarSize="30"
 SortType="A"
 TheNumbs="169,20,98,12"
 thelabels="AOL,ALR,AOL,IBM"
 Title="Sample Portfolio"
 ImgNums="1,5"
 TheScale="2"
 TblBrdr="1"
 BgClr="efefef"
 HdrClr="blue"
 hdrsize="3"
 LblClr="blue"
 LblSize="2"

Required Attributes

	TheNumbs
		The data you want to use to build the graph.  Must be numerical data in a comma separated list.
		The percentage of the toal for each item is then returned in the graph.
	TheLabels
		The labels or text that corresponds to the numerical data list "TheNumbs". 
		Must be in a comma separated list.
	ImgPath
		Optional path to your images directory.
	ImgRange or ImgNums
		Either ImgRange or ImgNums must be specified.  
		Your images should be colored blocks that will be sized according to your data.
		Name these blocks "block1.jpg" "block2.jpg" etc...
		ImgRange, the list of numbers you want the graph to cycle through. 
		1,2 will use block1.jpg and block2.jpg.
		ImgNums, the list of numbers you want used.  
		These will be cycled through, so if all you want is red bars specify block1.jpg
		where block1.jpg is a red pixel.


Optional Attributes:


	TblWdith
		User specified table width.
	BarSize
		User Specified width of each bar.
	SortType
		User specified sort type. A for Ascending, D for Descending.
	Title
		The title for your graph.
	BgClr
		The background color of your graphs table.
	HdrClr
		The color of your header.
	LblClr
		The colors of your labels the correspond to the data.
	LblSize
		The size of the labels.
	hdrsize
		The size of the header.
	TblBrdr
		The size of the optional outer table border, must be numberic.
	TheScale
		The multiple to use if your data will result in a small graph.
		Must be numeric and less then or equal to 5.
	horz
		If you want to display your bars horizontally, set to 1.
Back to sample.