|
ColdFusion Home
Basic ColdFusionIntroductionColdFusion Installation ColdFusion Editors ColdFusion Syntax ColdFusion Includes ColdFusion Variables ColdFusion Variable Types ColdFusion If Statements ColdFusion Loops ColdFusion Datasource ColdFusion Database Queries ColdFusion Lists ColdFusion Arrays ColdFusion Redirect ColdFusion Debugging ColdFusion Error Handling Advanced ColdFusionColdFusion MailColdFusion Functions ColdFusion Components ColdFusion Web Services ColdFusion Upload File ColdFusion Read File ColdFusion Write File ColdFusion Append File ColdFusion Rename File ColdFusion Copy File ColdFusion Move File ColdFusion Delete File Cffile Parameters Using cffile Parameters ColdFusion FTP (cfftp) cfftp Cached Connections ColdFusion HTTP (cfhttp) ColdFusion Query of Queries ColdFusion Charts ColdFusion Summary ColdFusion AdminCF AdministratorCF Archive and Deploy CF Scheduled Tasks CF Mini Tutorial ColdFusion BooksColdFusion MX BibleMacromedia ColdFusion MX 7 Web Application Construction Kit Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |
ColdFusion ChartsColdFusion provides several tags that gives you the ability to create charts and graphs. To create a chart in ColdFusion, you use the cfchart tag in conjunction with the cfchartseries and cfchartdata tags. Example cfchartThis example uses visitor data from the traffic logs of a website. This data is added to the chartdata tags. These are nested within cfchartseries tags, which provide properties about the data series.
The above code results in the following chart: Multiple SeriesYou can add more than one series of data to a single chart. We will add another chart series to our example for the previous year's traffic. That way, we can compare the two years side by side.
The above code results in the following chart: 3D ChartsYou can add the show3d attribute to produce a 3d chart:
The above code produces the following 3D chart: Changing the Chart DimensionsAdding the chartHeight and chartWidth attributes enable you to change the height and width.
The above code results in the following chart: Pie ChartsPie charts are slightly different in that they are limited to a single series, and the data items are represented as slices of the pie - all of which contribute to the whole.
The above code results in the following pie chart: You may have noticed the above code contains Other Chart TypesYou can create any of the following types of charts, simply by using this value in the type attribute of the cfchartseries tag. You can see what each of these look like on the cfchart examples page.
Enjoy this website?
Oh, and thank you for supporting Quackit! |
Featured Template:
(Build your websites in minutes!) |