Cfchart error

hello all, i did a search on this but found nothing
i am running ubuntu 10.04
railo 3.2.3 final
tomcat
mysql
Anyway, I am trying to figure out if this is a coldfusion vs server type error
I am trying to create a line chart. I try to fill up cfchart series from some items I am pulling from my database. When I do this, the following message is shown: Band count exceeds non-unity number of constants.
When I restrict it to just one single item in the cfchartseries, it still gives the same message. How does one properly use the cfchart?

Code would help.
It almost sounds like a divide by zero??? Have you dumpded the queries
to ensure you have data for both axis'?
Lyndon Patton
iPhone

Similar Messages

  • CFCHART only works for pie, invalid attribute: autoAdjust Error for all other types

    CFCHART only works for pie, invalid attribute: autoAdjust
    Error for all other types.
    Im just trying to render a simple bar chart, and it works on
    the developer server, but not in production.
    Any tips?
    Dave

    It's 7.0.2
    But I have not tried this yet...
    ColdFusion MX 7.0.2 Cumulative Hot Fix 2
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb400996
    I'm worried that If I apply that hotfix, something else will
    break :(
    ANd I wont be able to un=do it, and I'm not able to
    re-install CF if it all goes tits up.

  • Image expired error for CFChart on clustered server

    Hello,
    I noticed the following article that responds to a problem
    we're having where our CFCharts occasionally aren't displaying due
    to our clustered server environment forgetting where the chart was
    created:
    http://www.adobeauthorizations.com/cfusion/knowledgebase/index.cfm?id=tn_19328
    Currently we're running CF 6.1. Does anyone know if an
    upgrade to CF7 will fix this issue?
    If not, can we reinstall CF with our CFIDE directory located
    underneath the load balancing system? How would that work?
    I know we can use CFFile to write the chart to another
    directory and then display from there, but for now that solution
    seems to be out, since we don't have write privileges to our
    production server.
    Anyway, I'm hoping that enabling sticky sessions on our web
    server, or an updgrade to CF7 will fix.
    Please, any comments or suggestions.
    Thanks,
    Peter

    Hi Kalshetty,
    Please check the following link for this error, it applies to CUPS 8.x
    https://supportforums.cisco.com/document/109296/error-non-defined-ims-exception-cups-8x
    HTH
    Manish

  • CF Report generation error

    Hello,
    We have a report that is working on the development and the
    production server. I just downloaded the Report Builder version
    7.0.1
    When I change the report (move a filed from one pixel left)
    and save it, the server returns an error:
    The report template D:\...\IRC_BBS_Submission.cfr appears to
    be malformed or contain errors. The error that was encountered was:
    Invalid CFML construct found on line 135 at column 236.ColdFusion
    was looking at the following text:
    The CFML compiler was processing:
    * An expression that began on line 135, column 226.
    Your expression might be missing an ending "#" (it might
    look like #expr ).
    * the tag attribute "yaxistitle", on line 135, column 214.
    * a cfchart tag beginning on line 135, column 18.
    * a cfchart tag beginning on line 135, column 18
    I am using CFMX 7.1 on Windows 2003, and have the report
    builder running on this system too.
    Thanks for your help
    Eric

    Hello,
    I found the problem.
    We are using an external query (called via CFModule) and one
    of the field name had changed.
    So the error was due to the fact the CFREPORT was not able to
    find the field on the query.

  • Cfchart and cfreport issues in 7.0.2

    I've seen a few posts on people having issues with cfchart
    and cfreport upon upgrading to 7.0.2
    The specific issue I was having were that the cfcharts no
    longer showed up and the cfreports where getting some sort of a
    null error.
    The fix:
    in the lib dirrectory of your cf install dir (for me with
    jrun it was
    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib)
    there are 2 files: commons-digester-1.3.jar and a 1.7.jar the 1.3
    version should have been deleted by the updater but was not, so
    just rename it to something like .old and then restart coldfusion.
    Everything should be working as it was before 7.0.2 now.

    You
    rock, John2!
    I recently upgraded to 7.0.2 and has the same CFCHART problem
    afterward that many other people encountered (i.e. Flash charts
    would no longer appear when viewed using Internet Explorer). Your
    recommendation worked perfectly. Thank you very much!

  • Cfchart scaleto still doesn't work in CF8?

    I saw numerous posts on here and other forums about how the
    'scaleto' attribute in cfchart doesn't work right in CF7. But, I'm
    having the same problems with CF8. It still hasn't been fixed?
    I'm following along with Ben Forta's CF8 WACK in chapter 16
    listing 16.4. The data is from his ows database. There is actually
    an error in his code, where the 'scaleto' is set to 1500000, but
    the highest value from the database goes to '800000000', so I
    changed the 'scaleto' to '1000000000'. The crazy thing is, figure
    16.4 in the book shows the upper limit at 1 billion, just like it's
    supposed to work, but it doesn't work for me.
    I saw another post that said it worked fine when they removed
    the labelformat="currency" attribute, and sure enough, when removed
    it works just fine (albeit without the proper formatting). Does
    Adobe plan on ever actually fixing cfchart in any CF release?
    I'm using: CF801 developer edition on Vista (sp1) and the CF8
    internal web server. The code is below, but I'm assuming others
    have this book and have tried it? Anyone else still having issues
    with 'scaleto' in CF8?
    <!--- This defines the size and appearance of the chart
    --->
    <cfchart chartwidth="750"
    chartheight="450"
    yaxistitle="Budget"
    <!--- 3D appearance --->
    show3d="yes"
    xoffset=".04"
    yoffset=".04"
    <!--- Fonts and colors --->
    showborder="yes"
    foregroundcolor="003366"
    backgroundcolor="99dddd"
    databackgroundcolor="66bbbb"
    tipbgcolor="ffff99"
    fontsize="11"
    fontbold="yes"
    fontitalic="yes"
    <!--- gridlines and axis labels --->
    scalefrom="0"
    scaleto="1000000000"
    gridlines="6"
    showygridlines="yes"
    labelformat="currency">
    <!--- within the chart --->
    <cfchartseries type="bar"
    seriescolor="green"
    serieslabel="Budget Details:"
    query="chartquery"
    valuecolumn="amountbudgeted"
    itemcolumn="movietitle"
    paintstyle="light">
    </cfchart>

    I appear to have solved at least part of my problem. In addition to running the application firewall that's accessible from System Preferences, I run ipfw via the WaterRoof frontend. I have my firewall rules carefully crafted to my needs, including open ports for iTunes sharing, Bonjour, etc., all according to Apple's documentation.
    However, I don't see anywhere that they've documented this. On disabling the ipfw firewall, I found AirPlay worked again. Further testing and examination of the logs revealed that the Mac had been denying inbound packets coming from the AirPort Express and destined for UDP port 6002. So far I can find no official documentation saying iTunes or AirPlay uses that port, but allowing it through the firewall seems to have worked. This wasn't necessary in earlier versions of iTunes, and I'm not sure why it has changed now.
    I haven't tested streaming to the iPhone yet.

  • CFCHART not displaying in IE

    Hi All,
    I have created chart using CFCHART. Its working fine in my local system in ALL BROWSERS. But when moved it to my staging sever the CFCHART not rendering in IE(workign in all other browsers).

    Hi Hippiex,
    I don't have accses to the
    http://yourwebsite.com /CFIDE/Scripts/ directory.
    i got an error 404 file or directory not found.
    what else i can do in order the cfchart will work in IE?
    thanks,
    yaffa.

  • Pie chart  display error

    Hi
    I created pie chart using CFCHART tag. In the chart display,
    data values overlap on one another in the display. How to rectify
    this error.
    Kindly help me in this regard.
    Advance thanks

    I am using  ColdFusion Report Builder 9 to generate a PDF, so there is no code to provide, but here is an example of my data:
    fruit
    count
    apples
    112
    oranges
    304
    bananas
    0
    pears
    0
    grapes
    16
    strawberries
    80
    plums
    48
    pineapples
    32
    blueberries
    16
    raspberries
    32
    apricots
    256
    tangerines
    705
    cherries
    1
    peaches
    0
    With 'label column: fruit' and 'value column: count', when I select 'data label: pattern', for my pie chart, the labels overlap.

  • CFChart - not displaying after 7.02 Updater

    We ran the 7.02 updated on 7/9, and ever since, cfchart no
    longer renders our flash charts - in IE. I've tried it in Firefox
    and it works fine. Any thoughts on why IE would be choking on this?
    The IE js error message is:
    Line: 125, Char: 1, Error:Object Expected, Code: 0
    Upon viewing the source, the only thing in that neighborhood
    of the line number is this code for the chart(see attached)
    Anythoughts?
    TIA!

    Me too. Seems that with 7.0.2 the CFCHART code generated for
    the browser now contains two methods.. one for NOSCRIPT (older?)
    browswers.. and a 2nd version directly under the code for
    <SCRIPT> enabled browsers.
    Dead in the water. Can not generate same (simple) CFCHARTS
    that worked before the 7.0.2 update.

  • Cfchart: 2 series, different series length

    I am plotting two lines on a cfchart:  1) a line with historical monthly averages (12 data points); 2) the actual data for the current year (which only has as many data points as there are "completed" months in the current year).
    What I want to have happen is for all 12 months of (1) to be plotted as one line and then have a second line drawn that only shws the months of the current year for which data has ben collected (say the first three months).  For the remaining periods of the second line(e.g., 9 months) I want to show nothing (no line).  In other words the second line just stops after the first 3 data points are drawn.  Both series are arrays.
    Here's what I've tried:
    When the second array contains only 3 data points (i.e., arraylen = 3), cfchart draws the 4th through 12th data point as 0 and draws the line accordingly even though I am using chartdata within a loop that only loops 3 times.  If I create an empty array of 12 items (i.e. each item is empty) and then insert data for the first three, cfchart throws an error because item 4 through 12 are not values.
    BTW I am using a custom xml style sheet that has "isInterpolated" set to "false".
    Any suggestions as to how I might get the chart drawn correctly?

    Weird. I tend to use variables. So I was about to say I could be wrong about the path. Maybe a url is expected. But it looks like you tried that already.
    Try these two examples. Both work fine for me with CF9 (and CF8). Everything except isInterpolated was excluded for brevity. So obviously most of the styling will be missing. But the lines should be correct.
    1. Use a variable
    <cfsavecontent variable="myStyle"><?xml version="1.0" encoding="UTF-8"?>
    <frameChart autoAdjust="false" is3D="false" isInterpolated="false">
    </frameChart>
    </cfsavecontent>
    <cfchart style="#myStyle#">
         <cfchartseries type="line">
             <cfloop from="1" to="12" index="x">
                 <cfchartdata item="#MonthAsString(x)#" value="#randRange(1, 100)#">
             </cfloop>
         </cfchartseries>
         <cfchartseries type="line">
             <cfloop from="1" to="4" index="x">
                 <cfchartdata item="#MonthAsString(x)#" value="#randRange(1, 100)#">
             </cfloop>
         </cfchartseries>
    </cfchart>
    2.  Save the contents of "myStyle" to a file in the same directory as your .cfm script.
    XML File: c:\coldfusion9\wwwrooot\testFolder\myStyle.xml
    CFM File:  c:\coldfusion9\wwwrooot\testFolder\myTestChart.cfm
    <cfchart style="myStyle.xml">
        <cfchartseries type="line">
            <cfloop from="1" to="12" index="x">
                <cfchartdata item="#MonthAsString(x)#" value="#randRange(1, 100)#">
            </cfloop>
        </cfchartseries>
        <cfchartseries type="line">
            <cfloop from="1" to="4" index="x">
                <cfchartdata item="#MonthAsString(x)#" value="#randRange(1, 100)#">
            </cfloop>
        </cfchartseries>
    </cfchart>

  • Problem with Multiple Series - CFCHART

    Using CF9, trying to create a simple chart with two series.  Problem is that when there are no values, CFCHART draws a line but with values of "0".
    The first series is a set of monthly values (12 values) one for each month in 2011. The second series are also monthly values, but for 2012 YTD (Jan thru May 2012).  Range for all values is between 90 and 100, so I have it set to "scale" so you can see if year-over-year is better or worse. 
    Am trying to plot Series 1 (2011) on one line, and Series 2 on a second line.  This allows comparison of year-over-year results.  Have two QofQ, one that contains the twelve 2011 values, and one that contains the five 2012 monthly values.  X-Axis values are numbers (1-12 for 2011, and 1-5 for 2012).  However, I re-format the results using "CreateDate", so CFCHART can recognize a date, and format/display only the "months" on the chart (i.e., JAN, FEB, MAR....... DEC).   This is working, since bottom of chart shows JAN thru DEC.
    The chart displays 2011 correctly with 12 points and a line.  But for 2012, it displays the 5 points (Jan-May) with their values, then displays Jun-Dec 2012 with values of ZERO.  So on the May 2012 plot, you have this big line that runs from 90% in May, down to 0% in Jun, then 0% for the rest of 2012.  I only want it to plot the 2012 line thru May.
    If you remove the 2011 series from the CFCHART, it displays correctly, and only displays the 5 months in 2012 (Jan-May).   And if you remove the 2012 series, it displays correctly, with all 12 months in 2011.
    I just need it to display exactly like that, when two CFCHARTSERIES are used.   Even if you <CFOUTPUT> the 2012 query, you get 5 items, Jan-May.  So not sure why it want to chart 12 items for 2012, with all ZEROs for June - Dec 2012.
    Appreciate any help/advise on how to get year-over-year lines, with 12 data points for 2011 and 5 for 2012. 
    Gary

    Thanks, I found the solution doing a Google search, which led me to this Adobe forum link:
    http://forums.adobe.com/message/3304324#3304324
    which is same one you mentioned.  I was so relieved it wasn't a problem with my code, I kept testing for errors, couldn't find any.
    We are in the process of upgrading from CF7 to CF9.  We are developing on CF9, but still using CF7 in production, hopefully for only a few more weeks until we get our new CF/SQL Servers, running CF9.
    Until then, have to write two versions of the .CFM file, one that runs on CF7 servers, and one for the CF9 test servers.
    Thanks again for getting back, much appreciated.
    Gary

  • Cfchart and JSON string representation

    I am trying to pass a JSON string representation for the attribute "plotarea" in this way :
    <cfchart
    chartWidth="800"
    chartHeight="600"
    showLegend="yes"
    format="png"
    title="Commandes"
    plotarea='#{"margin-top":"dynamic"}#' >
    But I got following error :
    Error casting an object of type to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
    Is there any documentation explaining how to use "JSON string representation" in cfchart attributes ?

    Code_Worm wrote:
    Is it possible for me to call my toString method of Manager class within Branch class?Sure as long as it is public. There is no magic or any difference in regards to the toString method to any other method that you create. So somewhere in your Branch class you have:
    String blah = manager.toString();

  • CF 11 Update 3 and CFCHART

    Hello,
    We just upgraded to the latest build for Coldfusion 11 and our cfcharts are failing. The build is as follows 11,0,03,292480.
    I am getting this error:
    Error casting an object of type java.lang.Boolean cannot be cast to java.lang.String to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
    java.lang.Boolean cannot be cast to java.lang.String
    The error occurred in C:/inetpub/wwwroot/cmis/e_survey/usage.cfm: line 141
    139 : <cfelseif ListFind("1,2",answers.s_qtypeid)>
    140 : <cfchart style="usage.json" format="png" chartheight="400" chartwidth="400" showborder="yes">
    141 : <cfchartseries type="pie" query="answers" itemcolumn="row_optionname" valuecolumn="total" />
    142 : </cfchart>
    143 : <cfelse>
    We have been required to put in the latest update due to the security vulnerability.
    Can someone help me on whether there is a newer version of the update or what I can do to fix this? It was working fine with Update 2.
    UPDATE:
    I have determined that the legend options in my json file for ZingCharts seems to be the problem but I do not know what.
    Thanks,
    Phil Mervis

    I believe this is a bug (Bug#3865484 - CF11 update 3 breaks chart style json that uses legend). The status shows it has been fixed by Adobe but its just waiting on testing & deployment by the looks of it.
    Probably not a lot that can be done unless you want to turn the legends off on your charts.

  • CFChart and XML string

    Hi,
    The CF7 docs say that you can pass a stylesheet to the
    WebCharts3D application by inserting either an XML string or the
    path to an XML file into the "style" attribute of the
    <cfchart> tag. I have use a file path many times, and it
    works fine.
    But I am not able to insert an XML string into the attribute
    without an error. The error is "system cannot find file specified,"
    so it appears as if the application looks for a file, rather than a
    string, regardless.
    I need to set values in the stylesheet dynamically, so I need
    to build the XML and pass it in on the fly. I have output the XML
    and it appears perfectly valid. I have read the contents of a
    working XML stylesheet file into a string and inserted that string
    into the "style" attribute. But it produces the error noted.
    Has anyone been able to pass a string to the "style"
    attribute successfully, and if so, could you pass along some tips?
    Thanks,
    Tom McNeer

    What is the DB version?

  • Cfchart not working

    Hi we recently started using our development server again and
    we noticed that cfcharting was not working. I tried applying the
    hot patch.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb400074
    I also made sure that I had a mapping in the administrator
    pointing to the CFIDE folder which is in our web site root.
    I tried placing a 0 length GraphData.cfm file. I also
    verified that the JS file is in
    CFIDE/scripts/CF_RunActiveContent.js
    None of these methods seemed to work. We were having the same
    problems on our production machine but we are running W2003 on
    producttion and W2K on development. We also get a JavaScript error
    saying object expected. It does not work in any browsers. Here is
    the link to the bad page.
    http://surveys.tms-hq.com/chart.cfm
    The Code works fine in production as you can see.
    http://www.tms-hq.com/chart.cfm
    I need to solve this. Any help would be most
    appreciated.

    I just did some experiments which is starting to shed some
    light on perhaps the cause of this cfchart problem on dev. Well, I
    copied the same file to this dev site and it works.
    http://helpdesk.tms-hq.com/lighthouse/chart.cfm
    However this dev site it does not work on
    http://dev.tms-hq.com/chart.cfm
    Nor this dev site
    http://surveys.tms-hq.com/chart.cfm
    I suspect something is going on in IIS but I am not sure how
    to correct it.

Maybe you are looking for

  • CUCM SQL to view Logged in Phones (extension mobility)

    Hi all, is there any SQL statement, showing me all Phones where people are logged in with their extension? There is a function like this on Device - Phone scrolling down to Extension Information and there is a field called "Current Device Profile", b

  • BDC for Document Clearing - FBRA

    Hi, When I use transaction FBRA and try clearing document then it populates window asking three options - 1. Only Resetting  2. Resetting and Reverse  3. Cancel.  I need to choose 1st option i.e. Only Resetting. I am trying to record the transaction

  • ODI re-ordering hierarchy when updating an attribute

    Hi, I have a daily time period custom dimension with a number of attributes on it. One of these attributes needs to be updated on a single member daily (the current day's member). I created a source with one record in it - the daily time period membe

  • Shipping point and plant assignment

    Hi, When i am maintaining enterprize structure in sd in assignment of organizational unit if i want to assign shipping point to the plant ,its not detecting plant untill i set up sales line(plant+sales organization/distribution channel) .what is the

  • Info record Prob.

    I am facing Info record creating Problem. After Filled the GENERAL data screen , i want to fill “planned delivery date” and “pricing condition” . For this I use Goto -- >Purch. Org. data1 and Extra --->Condition. Putting the values in those fields.