Pete Freitag Pete Freitag

CFCHART Example - Pie Chart

Published on June 14, 2006
By Pete Freitag
coldfusion

Here's a quick example of some coldfusion code to make a pie chart. I don't create charts everyday so I often need to check the docs, so here's a simple example of using cfchart to create a pie chart with a query as a datasource:

<cfchart format="flash" show3d="true" chartwidth="500" chartheight="500" pieslicestyle="sliced" title="Top Ten States">
  <cfchartseries type="pie" query="myQueryName" valueColumn="num" itemColumn="state" />
</cfchart>


cfchart examples pie chart graphs cfml coldfusion

CFCHART Example - Pie Chart was first published on June 14, 2006.

If you like reading about cfchart, examples, pie, chart, graphs, cfml, or coldfusion then you might also like:

Fixinator

The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.


Try Fixinator

CFBreak
The weekly newsletter for the CFML Community