473,839 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem in displaying the Bar chart using coldFusion.

2 New Member
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 :
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\Scre enShots\BarChar t1.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\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
Attached Images
File Type: jpg BarChart1.JPG (12.4 KB, 658 views)
File Type: jpg BarChart2.JPG (12.3 KB, 746 views)
Feb 28 '08 #1
1 4092
acoder
16,027 Recognized Expert Moderator MVP
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
13879
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 save it to a jpeg and then display it in the page. Is there anyway to create an Image from a JPanel without actually displaying it in a JFrame first? Can anyone suggest a better way to create a chart image for servlet/jsp?
0
3857
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 = Clipboard.GetData() I having problems doing this in VB.net? I tried the code shown below, but it does not work. Its a modified version
3
3441
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 working on. I am working with MS Access 2002. And I am having a problem with one of my charts. I will explain how everything is laid out then go into details.
2
3409
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 cheaper way to do this. Please post any code or links. You help is greatly appreciated! Thanks,
0
869
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 controls in the page like Text Controls which do not get displayed if I select Response.ContentType = 'Image/jpeg" I want to dispaly Text controls in a form as well as this Pie chart. What should I do to overcome this? Thanks
4
2926
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 goes into the database. I've managed to use ColdFusion to display a list of all members. But I want to refine this list, to only show members who joined this year. How do I do this? Becuase I've tried everything I can think of. Here's my current...
8
13632
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
4196
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 in the data table continues to display a number with several decimal places showing (i.e., 7.120000054). The query field that provides the number displays the number with 1 decimal place (i.e., 7.1), which is what I'm trying to get the data table to...
14
4594
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 another group member at that time, but it's hardly ideal. MS should really look at this and fix it. When a form containing a chart is opened the chart object is visible, but no chart data is visible. If any other form is opened over the top...
0
9856
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10910
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10589
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7833
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7021
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5683
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4493
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4066
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.