2011-01-21 112 views

回答

0

我现在不需要任何答案。因为,我自己做过。

<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

4

看起来你正在寻找一个多系列的面积图。

您可以使用<cfchart>标记在CF中创建这些标记。 Google文件的格式为here,如果您使用Google,则会有很多示例,例如herehere

作为替代方案,我会推荐Google Charts API。它提供了一种创建许多不同图表类型的方法,我使用它来代替<cfchart>,我需要在CF页面之外创建图表(例如在电子邮件中)。很有用。

+0

邑,我已经用Google搜索你提到的页面。但是,CF区域只显示了一个值。 – ppshein 2011-01-23 03:53:38

+0

最后,我发现http://www.ppshein.net/index.cfm/2011/1/22/Multiple-Area-Chart-in-Coldfusion – ppshein 2011-01-23 04:20:45