By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,143 Members | 1,855 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,143 IT Pros & Developers. It's quick & easy.

Problem in displaying the Bar chart using coldFusion.

P: 2
Hi All,

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
  1. <cfchart format="jpg" xaxistitle="Month" yaxistitle="MonthlyTotal" seriesPlacement="stacked"    showLegend="yes" showMarkers="no" chartHeight="300" chartWidth="400" >
  2. <labelStyle orientation="Horizontal"/>
  3. <cfchartseries type="bar" seriesLabel="TEXAS"  >
  4.     <cfchartdata item="jan2007" value="1">
  5.     <cfchartdata item="Feb2007" value="3">
  6.     <cfchartdata item="Mar2007" value="2">
  7.     <cfchartdata item="Apr2007" value="4">
  8. </cfchartseries>
  9. </cfchart>
  10.  
[IMG]E:\ManRIMS\ScreenShots\BarChart1.jpeg[/IMG]
Code-2 and BarChart2 :

Expand|Select|Wrap|Line Numbers
  1. <cfchart format="jpg" xaxistitle="Month" yaxistitle="MonthlyTotal" seriesPlacement="stacked"    showLegend="yes" showMarkers="no" chartHeight="300" chartWidth="400" >
  2. <labelStyle orientation="Horizontal"/>
  3. <cfchartseries type="bar" seriesLabel="TEXAS"  >
  4.     <cfchartdata item="jan2007" value="1">
  5.     <cfchartdata item="Feb2007" value="3">
  6.     <cfchartdata item="Mar2007" value="2">
  7.     <cfchartdata item="Apr2007" value="4">
  8. </cfchartseries>
  9. <cfchartseries type="bar"  seriesLabel="DALLAS">
  10.     <cfchartdata item="jan2007" value="1">
  11.     <cfchartdata item="Feb2007" value="3">
  12.     <cfchartdata item="Mar2007" value="2">
  13.     <cfchartdata item="Apr2007" value="4">
  14. </cfchartseries>
  15. </cfchart>
  16.  
[IMG]E:\ManRIMS\ScreenShots\BarChart2.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
Attached Images
File Type: jpg BarChart1.JPG (12.4 KB, 601 views)
File Type: jpg BarChart2.JPG (12.3 KB, 662 views)
Feb 28 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Hi Varma, welcome to TSDN!

Now, I'm not sure if it's possible to change this behaviour, but you can try changing the style of the chart using XML or WebCharts - see this link for more information.

Hope this helps. Good luck.
Feb 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.