开发者

how to draw Area Chart in Coldfusion

I want to draw Area Chart in Coldfusion. I know we can integrate 开发者_如何学编程with WebCharts3D but I don't know how to draw it.

how to draw Area Chart in Coldfusion


Looks like you are looking for a multi-series area chart.

You can create these in CF using the <cfchart> tag. Docs are here and there are lots of example around if you Google, such as here and here.

As an alternative I'd recommend the Google Charts API. It provides a way to create many different chart types and I use it instead of <cfchart> where I need to create charts outside of a CF page (such as in an email). Very useful.


I don't need any answers right now. Because, I've done it by myself.

<cfchart 
    chartheight="200" 
    chartwidth="300" 
    xaxistitle="Year" 
    yaxistitle="Month" 
    format="png"> 
    <cfchartseries type="area"> 
        <cfchartdata item="10" value="40"> 
        <cfchartdata item="20" value="50"> 
    </cfchartseries> 
    <cfchartseries type="area"> 
        <cfchartdata item="30" value="80"> 
        <cfchartdata item="40" value="90"> 
    </cfchartseries>     
</cfchart>

Multiple Area Chart in Coldfusion

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜