CFCHART - multiple series problem

Hello, I am using CFCHART to plot a line graph with 2 series
of data (percentage for a date). The problem I'm having is that if
one of the series is missing data for a particular date, the line
breaks so I have one complete line graph, and the second is two (or
more if more than one data piece is missing) lines. Any help would
be appreciated? Thanks.
Sample
Chart

Hi Jia, thanks for the update. Unfortunately, I have to plot
every point, so that wouldn't work for me in this case, but good to
know for other situations.
As for the emailing trojnfn, I think the problem is that the
chart images are created and stored server-side. So the server
creates the chart image, and then emails the code to show it, but
is referencing something on the server that the email is not mapped
to read. I did a test and all I got was a little box with a red 'x'
symbolizing an image that it couldn't find. In the source it was
looking for the image - <IMG
SRC="/CFIDE/GraphData.cfm?graphCache=... which my computer
obviously did not have access to, so it couldn't show it.
A work around would be to write the graph to a file, and then
to email the file, either as an attachment, or just as an HTML
email referencing the image on the server through the full web
address (ie.
http://www.website.com/imagefile.jpg).
If you did it as an attachment, then you could delete the file off
the server after the email was sent, otherwise it would have to
stay there so it could be viewed in the email. Below is a link to
help with writing a chart to a file. Hope this helps.
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=ColdFusion_Documentation&file=00001436.htm

Similar Messages

  • Candlestick chart problem with multiple series

    Hello,
    I added one mx:CandlestickSeries object and couple additional
    mx:LineSeries objects to the chart. All series are represented but
    still I have one problem. More series I add - less candles are
    becoming of CandlestickSeries data. It seems that there should be
    any scaling option for all series in the chart or something like
    this, but I cannot find it. I'm still new in Flex Can anyone halp
    me with this?
    Thanx in advance
    marukas

    I've added screenshots to get better view of the problem.
    Here is chart with addtional series:
    Chart
    with multiple series
    And here nothing is changed except that additional line
    series were removed:
    Chart
    with only one CandlestickSeries
    Is it possible to get the same candles as in 2nd view with
    addiotnal series added?

  • Legend Problem in multiple series chart

    Hello,
    I am getting problem in displaying legend. I have created a chart with  multiple series and custon color. Here is my code. You can copy paste it.
    Out of 3 only one legend marker n label coming.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #FFFFFF]">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
          [Bindable]
          public var SMITH:ArrayCollection = new ArrayCollection([
            {date:"22-Aug-05", close:41.87, close2:45.23},
            {date:"23-Aug-05", close:45.74, close2:40.90},
            {date:"24-Aug-05", close:42.77, close2:46.99},
            {date:"25-Aug-05", close:48.06, close2:40.22},
         [Bindable]
          public var DECKER:ArrayCollection = new ArrayCollection([
            {date:"22-Aug-05", close:157.59},
            {date:"23-Aug-05", close:160.3},
            {date:"24-Aug-05", close:150.71},
            {date:"25-Aug-05", close:156.88},
        ]]>
    </mx:Script>
      <mx:Style>
        ColumnChart {
            paddingLeft:20;
            paddingRight:20;
            paddingBottom:10;
            paddingTop:10;
         Legend {
         paddingLeft:20;
            paddingRight:20;
            paddingBottom:20;
            paddingTop:10;
      </mx:Style>
          <mx:Stroke id="axisStroke"
            color="#000000"
            weight="2"
            alpha=".75"
            caps="round"
        />
    <mx:VBox width="500" height="500" borderColor="#000000" cornerRadius="20" themeColor="#009DFF" borderStyle="solid" borderThickness="1" horizontalAlign="center" x="246.5" y="61">
         <mx:ColumnChart id="multipleChart"  showDataTips="true" width="100%" height="100%"  seriesFilters="[]">
            <mx:horizontalAxis>
               <mx:CategoryAxis id="h1" categoryField="date"/>
            </mx:horizontalAxis>
            <mx:horizontalAxisRenderers>
                <mx:AxisRenderer placement="bottom" axis="{h1}">
                <mx:axisStroke>{axisStroke}</mx:axisStroke>
                </mx:AxisRenderer>
            </mx:horizontalAxisRenderers>
            <mx:verticalAxisRenderers>
                <mx:AxisRenderer placement="left" axis="{v1}"><mx:axisStroke>{axisStroke}</mx:axisStroke></mx:AxisRenderer>
                <mx:AxisRenderer placement="right" axis="{v2}"><mx:axisStroke>{axisStroke}</mx:axisStroke></mx:AxisRenderer>
            </mx:verticalAxisRenderers>
            <mx:series>
               <mx:ColumnSeries id="cs1" horizontalAxis="{h1}" dataProvider="{SMITH}" xField="date" yField="close" displayName="Smith" fills="#6693B0">
                    <mx:verticalAxis>
                       <mx:LinearAxis id="v1" minimum="40" maximum="50"/>
                    </mx:verticalAxis>
               </mx:ColumnSeries>
               <mx:ColumnSeries id="cs3" horizontalAxis="{h1}" dataProvider="{SMITH}" xField="date" yField="close2" displayName="Smiths" fills="#86D1E4">
               </mx:ColumnSeries>          
               <mx:LineSeries id="cs2" horizontalAxis="{h1}" dataProvider="{DECKER}" xField="date" yField="close" displayName="Decker">
                    <mx:verticalAxis>
                        <mx:LinearAxis id="v2" minimum="150" maximum="170"/>          
                    </mx:verticalAxis>
                    <mx:lineStroke>
           <mx:Stroke color="#CC3300" weight="1"/>
        </mx:lineStroke>
               </mx:LineSeries>
            </mx:series>
         </mx:ColumnChart>
         <mx:Legend dataProvider="{multipleChart}"  horizontalAlign="center" direction="horizontal"/>
    </mx:VBox>
    </mx:Application>

    I've run into this, too:
    Remove the fills property from each ColumnSeries and it'll work.
    If you want to use the fills property, you'll have to add your own custom legend code.
    From the Flex API:
    "If you specify the fills property and you want to have a Legend  control, you must manually create a Legend control and add LegendItems to it."

  • Drill Down for Multiple Series in a Line Chart

    Hello,
    I seem to have a problem with the drill-down functionality in a line chart that has multiple series.
    I have a line chart that displays the readings of a patient over a period of 1 month. For each day, there is the glucose level reading, blood pressure reading, etc... So, each reading is a different series in my line chart graph.
    The basic requirement is: With a mouse over event on the chart, I am willing to display all the data that belongs to that day. The data will be displayed at the bottom of the screen in a small panel. It is very simple to do it when the line chart has only 1 series:
    i) Enable drill down.
    ii) Choose 'Row' as insertion type.
    iii) Fill out the destination field.
    iv) Make sure your labels (at the bottom of the screen) get the data from the destination cell.
    When there is more than one series, it becomes very difficult. XCelsius will not let me use the same destination cells for different series. So, I will have to use other destination cells. In that case, I will not know on which day is the user on. Is there any way to achieve this functionality?
    Let me know if you need further information.

    This is certainly possible, but there's a bit of a trick to it (and really hard to explain without screenshots!). There's two halves to it:
    1. Write the date that has been selected to a cell (for each series).
    2. Write the name of the series that was clicked to some cell (this is the property 'Series Name Destination').
    So let's say your three series are Glucose, Blood Pressure and Temp. Have those series names in B1,C1,D1 (with your dates down in column A). Insert a row below the series names (2:2), and then set up your insertion type for the chart as 'row'. The source data (for all three series) should be your list of dates in column a. The insertion cells for the three series will be, in order, B2,C2,D2. Now, depending on which point is clicked in the chart, the selected day will be inserted into one of those three cells. Completely useless unless you know which series was clicked.
    So you need to insert the name of the series that was clicked ('Series Name Destination') into the spreadsheet, let's say in F1. The rest is just Excel formulas. The logic is, you can now tell what series was clicked, and go and look up the date that was inserted for that series, then go and look up the row that corresponds to that date. So to get the date that was just clicked, your formula (in F2) would be =HLOOKUP(F1,B1:D2,2,0).
    Then a VLOOKUP will get the results from that row of data. For example, if I inserted another row at row 3 (to show my 'result' values) the formula in B3 would be =VLOOKUP($F$2,$A$4:$D$13,2,0).
    I hope that makes sense.

  • Stacked Bar Chart with Multiple Series Sort Question

    Hi,
    Apex version 4.1.1
    I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.
    When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart  noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.
    Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.
    Incidentally, I can solve the sorting problem by combining all three series into a single query:
    select
      null as link,
      week_of as label,
      sum(customer_effort) as "Customer Effort",
      sum(project_effort) as "Project Effort",
      sum(other_effort) as "Training, Admin and Other Effort"
    from ...But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples  posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.
    Thanks,
    Mike

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • Issue with min/max when vertical axis assigned to multiple series

    Hi.
    I have some simple charting code that is dynamically adding LineSeries to a chart as the user requests them from the gui. As each series is added the vertical axis is assigned to the series and then data is requested and assigned to the dataProvider on the series. This is all working fine however I have found that if I add a sceond series after the first series is displayed and assign the same vertical axis to the second series then the vertical axis seems to set teh min/max based only on the second series added and ignores the first series. It doesnt set to the max of both series and so I get an incorrect max set. If I add a 3rd series the same happens again and the first and second series values seem to be ignored and the axis is set based on the last series to be added.
    Is this expected? Ive tried different variations of invalidating the data/series/styles to force it to refresh but I always get the same. It does refresh but based on only the values in the last added series.
    What is odd is that if I add 2 series at the same time, and assign the axis to both of them and then request data for both and update the dataProvider on both of them the axis is configured correctly based on the max value of both series.
    Any workarounds to make it do the right thing if they are added dynamically? Is this a bug or a known "feature"?
    Any light anyone can shed would be appreciated.
    I need to have the axis assigned to the series directly as I want to be able to use multiple axes. I have found that if I set the verticalaxis on the chart rather than the series then it works fine and sets the min/max based on the combined values of both series.
    The vertical axis is just a simple LinearAxis.
    Any help or suggestions would be appreciated.
    Im using Flex 4.1
    Tks
    Dan

    Adobe Flex LiveDocs seemed to indicate "Using multiple series in the same chart works best when the data points are in a similar range (such as a stock price and its moving average). When the data points are in numerically very different ranges, the chart can be difficult to understand because the data is shown on a single axis. The solution to this problem is to use multiple axes, each with its own range. You can plot each data series on its own axis within the same chart using the techniques described in Using multiple axes" and that link is here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_11.html
    I was going to tae a look at this myself, but the code posted here is quite complex, and I suspect incomplete.
    If you refer to that link and still cannot solve the issue, I would try your best to boil down your code to a more simple example still exhibiting the issue, and then post that, along with any data and the simplified main app.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • 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?

  • Multiple series on anychart line graph?

    I want to set up an anychart line graph from a query which returns a result set something like:
    PART DATE QTY
    abc 01/01 10
    abc 02/01 20
    abc 03/01 10
    cde 05/01 10
    cde 06/01 20
    So, in the above I want a series for part abc and part cde. I know I can add another series but that has two problems:
    1) The number of distict parts can vary - there might be 2, or might be 20 depending on the parameters used.
    2) Adding a new series means duplicating pretty much the same query manu times (with a restriction on part number) - this is very inefficient!
    Is it possible to add multiple series "programatically"?

    Ah, I never saw the number 10 anywhere.
    You don't need to process the NaN with mathscript. It is sufficient to add the NaN to the data going to the graph terminal. Even if mathscript gets an NaN, you can probably test how it is handled.
    What does the mathscript node actually do? If it is just doing some scaling, it probably will not matter, but if it would do e.g. a linear regression, it would probably give unexpected results.
    LabVIEW Champion . Do more with less code and in less time .

  • Plotting multiple series on an SVG Chart

    Hi,
    I am trying to plot multiple series on an SVG Chart. The moment I add a second series, I get the following error:
    "SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-0093".
    The graph fails to plot multiple series even for the same queries. The query I use is something like the following:
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    I have previously used an SVG chart to plot multiple series and have never had such problems. Any help would be greatly appreciated.
    I tried deleting and recreating the chart - doesn't help.
    Thanks,
    Aswath

    If you want to order the data do it via an in-line view:
    SELECT *
    FROM (
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    )

  • Line Chart with Multiple Series

    Post Author: JayZee
    CA Forum: Charts and Graphs
    HI
    I am trying to create a line chart with multiple series for trend analysis on CR XI but not having much luck, I thought it would be so simple to do!
    My data is provided summarized on the server and is returned as 12 rows:
    Month       Year1        Year2      Year3      Year4     Year5January      100           80          75           90          120February      85           25           40           25          80etc for the rest of the months
    My problem is that I can only get the chart to accept the values to display as a summary and not just as the data pulled back from the server.  I have read an article on the support site for Crystal 6.0  but it doesn't seem to translate well into XI.
    If necessary I could redesign the table to bring back un-summarized data but that is quite a big job.
    Any help greatly appreciated.
    Jay

    Post Author: Tim Wise
    CA Forum: Charts and Graphs
    In the chart expert, put Month in the 'On change of' box and put each year in the 'Show values' box. This puts the month on the x-axis and plots each year as a line.
    Is that what you want?
    I did this in CR 2008 using your data in an Excel sheet.

  • Flash chart performance issue with multiple series

    Hi,
    We have a problem with the performace of a line graph which has multiple series.
    I have set up an example application here:
    http://apex.oracle.com/pls/apex/f?p=37504:1
    The application contains two charts. The 'Mulltiple Series' chart has twelve series behind it and allows the user to include mutiple series data. The other chart has just one series.
    The single series chart takes only a couple of seconds to render, however the mutiple series chart takes around 10 seconds even when no additional series have been selected. Using Firebug I have observed that the apex_util.flash procedure is taking around 8 seconds to generate the XML, and it includes null data values for the series that aren't selected.
    My question is how can I make each series conditional, such that no data is included in the XML if the series returns no rows?
    Thanks,
    Andrew

    Hi Andrew
    Have you considered modifying your chart to use a series with the "Query source type" of "Function returning SQL Query"
    Have a look at
    Re: Flash chart - multiple series - no display when some series empty
    My response on that thread may help. I'd be interested to know if this approach improves the performance.
    Kind regards
    Simon Gadd

  • XY Scatter with multiple series: how to?

    Post Author: Dac
    CA Forum: Charts and Graphs
    Hi all,
    I want to represent multiple series of points in a XY chart - seems like a common thing to do - but i did not succeded in CRXI & Scatter chart.
    I've tried with these in the Data settings:
    Show value(s): put the 2 fields for X and Y axis
    Then selected 'On change of' and here was put the GroupBy field.
    The problem is that these settings summarize the X and Y values for all identical values from 'On change of' field. So i got just 1 point per seria...
    Then I saw somebody used an additional field for the 'On change of' - an unique field for every record (a formula RecordCount field) - so the grouping is done per record, then comes the CR warning that the data is not suitable for this type of chart, force and select Continue and the resutl is still not ok: it plots nothing or just 1 point. Though that user got the expected results.
    I've searched this site, googled - and found nothing that works.
    I still have hope this can be done - seems like a common thing for charting...
    Thank you

    Post Author: Dac
    CA Forum: Charts and Graphs
    thank you so much for the response and help!
    i've done the settings you said - it really makes sense what you saind in the message -  but still nothing is drawn on the chart.
    see the screen shot of all the settings and table data
    also there comes that warning CR message which i disregard and continue - but still does not work fine...
    any other suggestions? I still have hope for a solution

  • Annotating ColumnChart using CartesianDataCanvas - multiple series

    I am trying to annotate a column chart with confidence
    interval bars using the CartesianDataCanvas. The chart has multiple
    series, so for each x value there may be four or five columns. The
    chart itself offsets these columns nicely, but the x value used in
    the CartesianDataCanvas only relates to the middle of the middle
    bar. Is there any way of working out what offset to use to match an
    annotation to each individual bar when there are multiple grouped
    bars? I can't seem to find a property that has this
    information.

    This seems to work, how cool!
    <mx:SeriesSlide 
        id="slideOut" 
        duration="1000" 
        direction="left"
        effectEnd="lineSeries.visible=false"
    />
    <mx:SeriesZoom id="zoomOut" 
        duration="2000" 
        minimumElementDuration="50"
        elementOffset="50" 
        verticalFocus="top" 
        horizontalFocus="left"
        relativeTo="series"
        effectEnd="lineSeries.visible=true"
    />

  • Multiple series in a chart

    Hi
    I want to create a chart with multiple series, each serie referring to a specific country.
    The query below is not accepted:
    SELECT null url,s.date_from,s.country,sum(s.unique_players) unique_players
    FROM   my_table s ...As a workaround I changed the query to:
    SELECT null url, s.date_from,
    sum(decode(s.country, 'se', s.unique_players, 0)) sweden,
    sum(decode(s.country, 'fi', s.unique_players, 0)) finland,
    sum(decode(s.country, 'no', s.unique_players, 0)) norway ...
    FROM   my_table s ...It works well but it is not very flexible, in the case a new country has to be added.
    Is there a better way to achieve this in Apex 3?
    Thanks
    Luis

    Luis,
    You can chart a variable number of series with a query like the second one you listed, except use "Function returning query" instead of "SQL query". Then generate the column list clause dynamically, one for each series.
    There's an enhancement request logged to make this easier.
    Marco

  • 3D columns graph with multiple series

    I need to obtain a graph like below.
    I want to insert other series into Y axis. It's possible?
    thank you.
    Daniele.b75

    Hi,
    Yes, there is no build-in chart template that you want. We can only use the Gradient fill to close your request. But, it can't display the multiple series in cumulates chart.
    In my view,
    custom a chart via VBA is also a good workaround. I'm not familiar with VBA, if you have further question, I recommend you post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for