Flex charting with Coldfusion data

Can anyone tell me if there is a way to do charting with data
coming from Coldfusion? I'm not a newbie, but not quite there yet
with coding yet either so an example might be helpful. I was
looking at converting a cfc. file to as. but started doubting if
that can actually be done (just a stab in the dark on my
part)

Should have spotted this last time. Try using
event.lastResult.getCDDDataResult.
I am presuming that updateCDDChart is being called as the
result of an HTTPService.
EDIT: No, that won't work. You use lastResult when using
HTTPService a different way. Not entirely sure what your problem is
at the moment. I'll maybe get a chance to look more closely this
evening.

Similar Messages

  • Charts with Multiple Data Series in One Color

    I am trying to create a pie chart to reflect the different areas of my budget in four categories. However, my budget is divided into several smaller categories across several columns and I can only get the cells in the first column to register even though the additional cells show up in the Inspector as part of the series.

    Jerry,
    Thanks for the info. I'll give that a read when I get home today. In a roundabout way I tried part of that. I created my chart with my data for Mammallia and the time periods. Then I selected the occurrences for Synapsids and dropped them in, but it added them to the first data set in the chart? I'm guessing I was doing something wrong, but I'm unsure of what. Numbers/Excel has never been a strong subject for me, but I'll try your advice and see what I come up with.
    Reading your post again, the last way seems the most simple and I feel a little foolish for not thinking of that myself. Oh well, that's how we learn right? Thanks for your help!! You saved me a lot of hassle.
    Best regards,
    Mitch

  • Column chart with null data items

    I have a Column Chart with an ArrayCollection data provider.
    The data will sometimes have missing items in some "rows'. For
    example, it might look like this where the second object has no
    "Male" property:
    public var myData:ArrayCollection = new ArrayCollection([
    {School: "Priorford", All: 95, Male: 92, Female: 98},
    {School: "Giffnock", All: 87, Female: 89},
    {School: "Hastings", All: 80, Male: 78, Female: 82}
    Sometimes I get the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object
    reference.
    at mx.charts.chartClasses::NumericAxis/mapCache()
    I'm assuming the error is because of missing data items, but
    I'm not 100% sure. Some data sets with missing items will display
    with no error. I can't see a pattern to those that don't.
    -- I can't produce the error when using a "static" data
    source set in the Flex app itself (such as the example above).
    These always display correctly, even with missing items.
    -- In the problem case, the source data comes from a MySQL
    database through a PHP script that is called with a Flex
    httpService. The returned data is parsed in Flex, and put into the
    ArrayCollection. I was suspecting that the returned data was flawed
    in some way, but the same ArrayCollection displays correctly in a
    DataGrid. The problem is only with the Chart.
    -- I can work round the problem by adding the missing
    properties and setting them to an empty value. But I don't think I
    should have to do this.
    Has anyone seen this problem, or know of any obvious thing I
    might be doing wrong.

    Thanks Arthur.
    Your first suggestion is effectively what I'm doing as a
    workaround. But it is a bit of a pain to have to account for this
    each time when displaying a chart. It's a particular problem when
    you don't know in advance what "categories" might be returned by
    the data and that have to be charted.
    My biggest concern is that this looks like a bug, and the
    fact that it seems to occur intermittently is a bit worrying. (I
    also know that eight out of ten reported "bugs" are user error,
    which is why I was wondering if anyone else had experienced this.)
    About your second suggestion, I think the interpolateValues
    property only applies to lineSeries.

  • Flex chart x-axis data spacing

    hello
    i am using flex chart line series and column series. i want
    to display 100 data points, with different dates along the x-axis,
    but i don't want all 100 points to be displayed at the same time as
    the x-axis dates will not be readable. i want to have a fixed space
    between each x-axis point and the user then scrolls along the
    chart.
    i read the API but do not see any way to add the x-axis
    spacing?
    also how i do put more data information, with each data point
    if a mouse if placed over it, not just the X & Y data points.
    thank you for any assistance.
    Tony

    thanks so much,
    The tip data solved my 2nd problem.
    Thanks for your suggestions to"
    i am using flex chart line series and column series. i want
    to display 100 data points, with different dates along the x-axis,
    but i don't want all 100 points to be displayed at the same time as
    the x-axis dates will not be readable. i want to have a fixed space
    between each x-axis point and the user then scrolls along the
    chart.
    i read the API but do not see any way to add the x-axis
    spacing?
    you mentioned about using min/max values on the x-axis. That
    is a good solution except i would then need to add buttons to say
    ,show the next 30 days.
    I really want to to show 90days of data data, with say 30
    days appearing at once, and the user just scrolls to see the rest
    of the days data without having to press buttons for more data. Any
    idea how i can do this?
    thanks
    Anthony

  • Plotting multiple graphs on one waveform chart with dynamic data types

    I'm trying to put multiple graphs on one waveform chart and having data agreement errors. I'm wondering if it has anything to do with the fact that dynamic data is being used (I've had no problems with other datatypes in the past). Does anyone know how to correct this problem? I've attached the following .VI. There will be plenty of .VIs on the bottom that won't load, but they are not consequential for this problem.
    Thanks!
    Brian
    Solved!
    Go to Solution.
    Attachments:
    Stiffness Control V1.vi ‏119 KB

    you could use stacked plots by right clicking on the chart and clicking on the stacked plots and than on the front panek you can put a bundle function on the FP and hook your signals up
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    multiplotwaveform.JPG ‏138 KB

  • Charts with missing data / time data

    Hello,
    is there a possibility to let crystal draw charts with (for example) all days of a weeks, even if there is data missing for one day in the database?
    Is there also a way to have a fixed timeline in the chart and let the values from the database be drawed to a specific timestamp and all this in minute resolution?
    Thanks
    Soeren

    Search forums, I believe this has been answered

  • X-y Scatter chart with multiple data series

    Hi,
    How do I create an x-y scatter chart with more than 1 data series?  For example:
    Series 1
    x__y
    1__0
    2__5
    3__9
    4__7
    5__2
    Series 2
    x_____y
    0.5___0
    1.3___4.8
    2.6___12.3
    4.1___8.4
    4.9___3.2
    I can do this with 2 seperate graphs but I need them on the same graph.
    Is there a limit on the number of series that can be placed on a single x-y scatter graph?
    Many thanks.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Problem creating line chart with character data

    Post Author: burkartt
    CA Forum: Charts and Graphs
    CR Developer v. 11.5.0.313
    I want to create a line chart with data from a SQL2K table to show how much server time each application uses per day. All data is defined a character.
    HWA,4/24/2007,01:44.6HWA,4/25/2007,12.28HWB,4/24/2007,4.6HWC,4/24/2007,55.55HWC,4/25/2007,01:22.3HWE,4/24/2007,01:16.1HWE,4/25/2007,0.59
    I want one horizontal line per application where the X-axis represents the date and the Y-axis represents the server time. I have tried all column combinations for "On Change Of" and "Show Value(s)". What confuses me is why are Count and Discount the only Summary Options for the "Show Value(s)" data?
    Thank you,
    tim

    Post Author: V361
    CA Forum: Charts and Graphs
    I created a group based on date, day, then created the chart and put it in the group footer, on change of server, show sum of time, you will get a seperate chart for each day.  I am not sure if this will help, or will just do.  Since you have CR XI, you may want to look at the gauge chart also....

  • Creating a multi series line chart with different data providers

    I have 3 data providers of the same structure i.e ArrayCollection of DataElement and want to use them to create a multiseries line chart. I do not have just 1 dataProvider that can be used but 3 different data providers of the same structure that i want to use each for different series.
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>
    Please help!

    Sorry for the confusion. Actually I must be doing some thing wrong like using ColumnChart to display a line chart or something like that.
    I have now realized that a multi series line chart can be built by having a different data provider for each of the LineSeries object.
    So the code below would create a multi series line graph :
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>

  • Want to create Monthly chart with weekly data.

    Hi all.  I'd like to create a chart that graphs data over the course of a month similar to this:
    but where the data for the chart is only gathered once a week.  I know from reading in the forums (and trying myself) that if you have missing data fields in your table, you end up with individual points that aren't connected to each other.  So I assume that the solution has something to do with how the chart is labeled?
    Can someone clue me in on how to build a chart that shows each day (as above), but connects weekly data fields (as below):
    Thanks.
    Andy

    Hi Barry.
    It looks like what you're describing is what I've already managed to figure out.  The problem I'm having is that I want the bottom row of numbers (currently 3, 10, 17, 24) to be the days of an entire month (ie: March 1-31).  Then have the values in the chart correspond to the proper day (3, 10, 17, 24).
    Here's what happens if I create a table with all the days of the month, but only weekly fields filled in:
    I realize that Numbers doesn't automatically connect the dots when there are empty fields in a table.  But I can't seem to get to a point where I can have the graph show the entire month, but with a line connecting each of the weekly values.
    I thought that I could do it by creating a custom label for the X axis.  Here's what I tried:
    But of course that didn't work, because the chart still only shows 4 labels (due to the table only having 4 categories).  It just renamed the first four labels.

  • From chart with no data available to chart with data problem

    Hi all,
    If in my application I set a filter (through a dropdown or any other component) to a datasource and this retrive no data in the chart area appears this standard image:
    But if in the next step I change again the filter to a dimension member where there is data, this appears:
    It's obviously wrong and in order to fix the chart I have to change again the filter:
    So basically every time the chart retrive no data I have to switch 2 times any filter in order to get the correct appearance.
    Why this kind of behaviour?
    Thanks,
    Michele

    Hello Michele,
    Today we found a work around for this issue .
    In my scenario , when ever I unchecked a check box, my two chart which is under a panel is displaying this "No data available" message.
    So what we did is first I hide my panel and re sized the Panel right margin, in the next line I enable the Panel of two charts and re sized to original size .Now no data available issue is not displaying.
    Sample  script
    PANEL_1.setVisible(false);
    PANEL_1_.setRightMargin (15);
    PANEL_1_.setVisible(true);
    PANEL_1.setRightMargin (0);
    Imp: This script I given inside a button so when ever no data available message shows then click on this button and inside that button we given the above code.
    Note: What I observed that this issue is occurring because of the chart component is not refreshing.So with the above option , the chart is refreshing and solving the issue .
    Please try this logic in your scenario and let us know if it helps !!
    I will work and update you if this code can be given inside a component so that user, no need to click on the Button to remove this error screen.
    Regards
    Arjun KT

  • Multiple series chart with differing dates

    Is there a way to display multiple series on a chart when the
    data for the horizontal axis doesn't match up? For example:
    if data1 (val, date) is (10, 01/05/2008) (15, 02/08/2008)
    (20, 03/01/2008)
    and data2 (val, date) is (8, 01/12/2008) (25, 02/10/2008)
    (30, 03/14/2008)
    how would I get the data to display on a multiple series
    chart. Right now, I am using a CategoryAxis for the horizontal
    axis. If I do something like this:
    hAxis.dataProvider = data1;
    hAxis.categoryField = "date";
    it will show only the series for data1, but not data2.

    Thanks for the reply.
    That link tells you how to add multiple axis to a chart which
    is what I'm doing, but unless you want to have two horizontal axis
    on the bottom (which looks terrible) or put one on the top and one
    on the bottom (which looks awkward), this solution is not very
    good.
    The problem is that the data ranges for the horizontal are
    the same, but the individual timestamps are slightly different,
    sometimes off by only a few hundredths of a second.
    To attempt to work around this, I merged the two arrays, but
    that seemed to mess up the display of the data.
    Is there not a way to just draw the second series on top of
    the first without having to lock it to the axis? It seems like the
    answer is no when using the standard packages. But is there a way
    to override this and get it to draw properly?

  • Help: Chart with multiple data points

    I would like to create a chart which has 2 data points. The way I know it works, each metric has only one data point. If I want the metric history chart shows 2 data points (y axis) over the same period of time (x axis). Is it possible to do such metric?
    Thanks for the help.

    Don't believe you can have 2 data points as you are suggesting. Oracle is working on enhancing the reporting framework for EM, but not sure when BI will be there. You can send data from the OMR to an existing BI infrastructure and report from there.
    Sorry...
    Have a good day.

  • Bar chart with current date in X axis

    Hello
    I have attached a vi that I hoipe somebody can help with.
    If you look at the vi, there are two bars showing.
    1.How can I attach the current date to the X axis.
    For instance.....suppose the first bar (far left) was produced with data from yesterday...then the X axis would indicate yesterdays date.
    The next bar was produced from data obtained today, so would show todays date.....etc
    An array of dates is not suitable, as no prior date knowledge is assumed......just the current date when the bar was graphed.
    2. Can the date be vertical....or even fancier....on a 45 degree slope, upwards and to the right
    Thank you and best regards
    Ray
    Solved!
    Go to Solution.
    Attachments:
    Bar chart.vi ‏16 KB

    Hi, this will plot what ever data you got with the current date on the X Axis. But remember that since this is a graph, any new value plotted will erase the previous one. Dont have LabVIEW 9 otherwise would have checked your VI out. This plots each value with the current date.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    Date Plot.png ‏16 KB

  • Color Highlights not working in bar chart with two data points

    Iu2019m using Crystal Reports 2011.  I have created a bar graph using two data fields in the Chart Expert.  I have set the colors for the bars in the Color Highlights tab, but the colors that I have defined have not been applied to the graph.  
    I have tried changing the colors numerous times and have done it in both design and preview modes.  It seems to be somethign with having two data points because I don't have this problem when using just one data point.  Please help!

    is the colour mode Color by group or color by series

Maybe you are looking for

  • Internal SATA drives on G5 Dual 2ghz?

    Is there any difference at all between drive bay "A" and bay "B?" I know that we can make boot drives for either, but is there any advantage to having the primary drive be in bay "A" -vs- "B?" Additionally, if both are loaded with bootable systems, c

  • Pur value key & shipping instruction in material master.

    I have maintained shipping instructions in SPRO for a particular purchase value key. Now created material master with this purchase value key, shipping instruction is reflecting. But it is coming as display field. Some time this shipping instruction

  • Phone calls causing disruption

    Whenever I receive or make a phone call, the Can't Connect to Broadband BT screen appears on my lap top - wireless connection.  The Homehub however shows broadband connection is fine.  Clicking on through the Can't connect screen quickly solves the p

  • Can't Burn Photo Titles

    Under the information for each photo, I put a photo name. However, when I burn the photos to disk, the captions don't show up. The photos only have numbers not the names I gave them. I then clicked on "View" and then "Titles" so I see the photo capti

  • Crystal Reports XI R2, VB6 & Windows 7

    I have a working VB6 application using CR XI R2 components deployed with CR merge modules. On Windows 7 there is a problem with Run-time error 429 "ActiveX component can't create object". Is there a solution for 64 bit platform, (new version of CR ma