CfChart堆叠的条和拆散的线 [英] CfChart Stacked bars and unstacked Lines
问题描述
我试图创建一个CFChart与堆叠条和拆散线。一直在尝试在 Webcharts工具
中工作,但没有运气到目前为止。
I am trying to create a CFChart with Stacked Bars and unstacked Lines. Have been trying to work around in the Webcharts Tool
but no luck so far.
在示例图片中,所有系列是 seriesplacement = stacked
,但我想把条形(Avg和TDD)堆叠,线(Max和Min)为 seriesplacement = default
。有没有办法在Cfchart中实现相同?
In the example image all the series are seriesplacement=stacked
, but I want to have the bars(Avg and TDD) as stacked and the lines (Max and Min) as seriesplacement=default
. Is there a way to achieve the same in Cfchart?
推荐答案
如果我理解正确,只需设置行系列in your xml style:
If I am understanding correctly, just set the placement of the line series in your xml style:
<?xml version="1.0" encoding="UTF-8"?>
<frameChart>
<elements place="Stacked" drawOutline="false">
<series index="0" place="Default" shape="Line" />
<series index="1" place="Default" shape="Line" />
</elements>
</frameChart>
然后像往常一样生成一个堆叠图表:
Then generate a "stacked" chart as usual:
<cfchart format="png" style="#yourCustomStyle#">
<cfchartseries type="line" serieslabel="Min">
...
</cfchartseries>
<cfchartseries type="line" serieslabel="Max">
...
</cfchartseries>
<cfchartseries type="bar" serieslabel="Avg" >
...
</cfchartseries>
<cfchartseries type="bar" serieslabel="TDD">
...
</cfchartseries>
</cfchart>
这篇关于CfChart堆叠的条和拆散的线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!