473,289 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Problem in displaying the Bar chart using coldFusion.

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, 656 views)
File Type: jpg BarChart2.JPG (12.3 KB, 744 views)
Feb 28 '08 #1
1 4069
acoder
16,027 Expert Mod 8TB
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

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

Similar topics

3
by: Moth | last post by:
I have a PlotPanel class that extends JPanel which I have used previously to display charts in swing guis. I now want to display a graph in a jsp page so I was going to generate the graph and then...
0
by: Stan | last post by:
In the old days of VB6, an Excel chart image could be pasted into a picture box with Clipboard using the following commands. xlApp.ActiveChart.ChartArea.Copy Picture1.Picture =...
3
by: StBond | last post by:
Hi everyone, I am new to Access and Visual Basic so things my be getting across a bit cloudy. I only started using VB for one week. I am having a little problem with the database that I am...
2
by: mrwoopey | last post by:
Hi, I have a web based OLAP cube (based on the SQL 2000 resource kit version) and I need to know how to display it in a chart (web based). I know that there are 3rd party tools but I need a...
0
by: Panther240 | last post by:
I am displaying a Pie Chart in a browser.I am coding using C# in ASP.net.I am using System.Drawing and System.Drawing.Imaging. I had selected Response.ContentType = 'Image/jpeg" I have other...
4
by: James890 | last post by:
Hi, could someone please help me? I am a novice so please try to be patient. I've created a database to hold members who join my website. I've created the form to enable them to join and their data...
8
by: jesmi | last post by:
my code is: addRecord.cfm <cfinclude template="head.cfm"> <p> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td> <div align="center">
1
by: drwigginton | last post by:
I have created several bar charts in MS Access using query results to provide the data for the chart. I added data tables to the charts to show the actual values. My problem is that one of the fields...
14
by: Wayne | last post by:
I posted about this problem over 12 months ago and even after Vista SP1 the problem still exists when running an Access database (A2003 and A2007 tested) under Vista. A workaround was suggested by...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.