Hi All,
Iam facing a problem with bar chart using coldFusion.
if there is only one <cfchartserie s> tag then the seriesLabel attribute is not displaying instead of that the items of the cfchartdata are displaying.
if there are more then one <cfchartserie s> then the seriesLabel specified is displaying properly.
Please look at the code and its corresponding bar chart attached .
Code -1 and BarChart1 :
[CODE=cfm]<cfchart format="jpg" xaxistitle="Mon th" yaxistitle="Mon thlyTotal" seriesPlacement ="stacked" showLegend="yes " showMarkers="no " chartHeight="30 0" chartWidth="400 " >
<labelStyle orientation="Ho rizontal"/>
<cfchartserie s type="bar" seriesLabel="TE XAS" >
<cfchartdata item="jan2007" value="1">
<cfchartdata item="Feb2007" value="3">
<cfchartdata item="Mar2007" value="2">
<cfchartdata item="Apr2007" value="4">
</cfchartseries>
</cfchart>
[/CODE][IMG]E:\ManRIMS\Scre enShots\BarChar t1.jpeg[/IMG]
Code-2 and BarChart2 :
[CODE=cfm]<cfchart format="jpg" xaxistitle="Mon th" yaxistitle="Mon thlyTotal" seriesPlacement ="stacked" showLegend="yes " showMarkers="no " chartHeight="30 0" chartWidth="400 " >
<labelStyle orientation="Ho rizontal"/>
<cfchartserie s type="bar" seriesLabel="TE XAS" >
<cfchartdata item="jan2007" value="1">
<cfchartdata item="Feb2007" value="3">
<cfchartdata item="Mar2007" value="2">
<cfchartdata item="Apr2007" value="4">
</cfchartseries>
<cfchartserie s type="bar" seriesLabel="DA LLAS">
<cfchartdata item="jan2007" value="1">
<cfchartdata item="Feb2007" value="3">
<cfchartdata item="Mar2007" value="2">
<cfchartdata item="Apr2007" value="4">
</cfchartseries>
</cfchart>
[/CODE][IMG]E:\ManRIMS\Scre enShots\BarChar t2.jpeg[/IMG]
The Barchart1 need to show TEXAS as the seriesLabel instead of that its showing the Months which are the X-axis variables.
The Barchart2 is showing properly as per the code.
I tried my best to solve it by my self but iam unable to find it. Requesting u people give me ur ideas.
I am waiting for ur Suggestions.
ThankYou,
Varma
Iam facing a problem with bar chart using coldFusion.
if there is only one <cfchartserie s> tag then the seriesLabel attribute is not displaying instead of that the items of the cfchartdata are displaying.
if there are more then one <cfchartserie s> then the seriesLabel specified is displaying properly.
Please look at the code and its corresponding bar chart attached .
Code -1 and BarChart1 :
[CODE=cfm]<cfchart format="jpg" xaxistitle="Mon th" yaxistitle="Mon thlyTotal" seriesPlacement ="stacked" showLegend="yes " showMarkers="no " chartHeight="30 0" chartWidth="400 " >
<labelStyle orientation="Ho rizontal"/>
<cfchartserie s type="bar" seriesLabel="TE XAS" >
<cfchartdata item="jan2007" value="1">
<cfchartdata item="Feb2007" value="3">
<cfchartdata item="Mar2007" value="2">
<cfchartdata item="Apr2007" value="4">
</cfchartseries>
</cfchart>
[/CODE][IMG]E:\ManRIMS\Scre enShots\BarChar t1.jpeg[/IMG]
Code-2 and BarChart2 :
[CODE=cfm]<cfchart format="jpg" xaxistitle="Mon th" yaxistitle="Mon thlyTotal" seriesPlacement ="stacked" showLegend="yes " showMarkers="no " chartHeight="30 0" chartWidth="400 " >
<labelStyle orientation="Ho rizontal"/>
<cfchartserie s type="bar" seriesLabel="TE XAS" >
<cfchartdata item="jan2007" value="1">
<cfchartdata item="Feb2007" value="3">
<cfchartdata item="Mar2007" value="2">
<cfchartdata item="Apr2007" value="4">
</cfchartseries>
<cfchartserie s type="bar" seriesLabel="DA LLAS">
<cfchartdata item="jan2007" value="1">
<cfchartdata item="Feb2007" value="3">
<cfchartdata item="Mar2007" value="2">
<cfchartdata item="Apr2007" value="4">
</cfchartseries>
</cfchart>
[/CODE][IMG]E:\ManRIMS\Scre enShots\BarChar t2.jpeg[/IMG]
The Barchart1 need to show TEXAS as the seriesLabel instead of that its showing the Months which are the X-axis variables.
The Barchart2 is showing properly as per the code.
I tried my best to solve it by my self but iam unable to find it. Requesting u people give me ur ideas.
I am waiting for ur Suggestions.
ThankYou,
Varma
Comment