Iam facing a problem with bar chart using coldFusion.
if there is only one <cfchartseries> tag then the seriesLabel attribute is not displaying instead of that the items of the cfchartdata are displaying.
if there are more then one <cfchartseries> then the seriesLabel specified is displaying properly.
Please look at the code and its corresponding bar chart attached .
Code -1 and BarChart1 :
Expand|Select|Wrap|Line Numbers
- <cfchart format="jpg" xaxistitle="Month" yaxistitle="MonthlyTotal" seriesPlacement="stacked" showLegend="yes" showMarkers="no" chartHeight="300" chartWidth="400" >
- <labelStyle orientation="Horizontal"/>
- <cfchartseries type="bar" seriesLabel="TEXAS" >
- <cfchartdata item="jan2007" value="1">
- <cfchartdata item="Feb2007" value="3">
- <cfchartdata item="Mar2007" value="2">
- <cfchartdata item="Apr2007" value="4">
- </cfchartseries>
- </cfchart>
Code-2 and BarChart2 :
Expand|Select|Wrap|Line Numbers
- <cfchart format="jpg" xaxistitle="Month" yaxistitle="MonthlyTotal" seriesPlacement="stacked" showLegend="yes" showMarkers="no" chartHeight="300" chartWidth="400" >
- <labelStyle orientation="Horizontal"/>
- <cfchartseries type="bar" seriesLabel="TEXAS" >
- <cfchartdata item="jan2007" value="1">
- <cfchartdata item="Feb2007" value="3">
- <cfchartdata item="Mar2007" value="2">
- <cfchartdata item="Apr2007" value="4">
- </cfchartseries>
- <cfchartseries type="bar" seriesLabel="DALLAS">
- <cfchartdata item="jan2007" value="1">
- <cfchartdata item="Feb2007" value="3">
- <cfchartdata item="Mar2007" value="2">
- <cfchartdata item="Apr2007" value="4">
- </cfchartseries>
- </cfchart>
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