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

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."

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

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • Problem with multiple versions of documents being published with 001, 002, etc.

    I am using Contribute CS3. I am having a problem with multiple versions of documents being published on the sever with 001, 002, etc in the name. So that I end up with 2 or 3 versions of a document on the server. Does anyone know why / how Contribute  is doing this? Thanks for any help you can give.

    Your Web site administrator will need to update your key to allow you to delete files you are able to edit.

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Problem with multiple forms and subview

    I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).
    1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.
    2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.
    3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.
    4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.
    It seems to be a problem with multiple forms on a page and the subview.
    Do I use these JSF components incorrectly? Any advice?
    Thanks

    The forms are not nested.
    hello.jsp
    <webuijsf:body ...>
    <!-- BEGIN: include header -->
    <div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">
    <jsp:directive.include file="Header.jspf"/>
    </div>
    <!-- END: include header -->
    <webuijsf:form ...>
    From above fragment, you can see the header.jspf is outside of the form element.

  • LOV Problem with multiple values

    HI All,
    I have a problem with LOV .When ever i click LOV after search button all values are displaying fine.
    But when i get so many values i want to select only one vlaue that is not cmng to the main page ....Cursor is in running state always after that time out error is coming in my application .
    This problem is coming with with only single value selection in lOV only problem with Multiple values retrival that time only...
    (Iam using 11.1.1.3 Jdeveloper.)
    Thanx in advance...

    duplicate of {thread:id=2286814}

  • 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

  • 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

  • HT6065 I installed this update.  I have never had problems with "multiple prompts to unlock "Local items" keychain" until after I installed this update.  Now, I can't get it to STOP prompting me.

    So how do I fix this?  How do I get this to go away?  It's prompting me for a password that I haven't ever set up!

    I have the same problem with three pop-up prompts:
    (1) com.apple.iCloudHelper wants to use the "login" keychain. Please enter the keychain password.
    (2) CalendarAgent wants to use the "login" keychain. Please enter the keychain password.
    (3) AddressBookSourceSync wants to use the "login" keychain. Please enter the keychain password.
    I can enter my login password and the prompt goes away for a little while, but eventually returns.  Or I can click on "Cancel" many multiple times and it goes away for a little while, but returns again.
    I want a solution too and hope this additional information will help.

  • Problem with multiple client numbers from a view

    Hi Gurus,
    I have a problem with a view
    Creates a view with a UNION ALL stmt
    =====================================
    Create view vw_benifits
    as
    SELECT
         Client_num, -- can have multiple values like 200,201,250
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
         COB_MNTH_AMT
    FROM
         STG_SAP_PA9211_TB
    UNION ALL
    SELECT
         null, -- no client number for legacy data
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
    COB_MNTH_AMT
    from
         LEG_STG_SAP_PA9211_TB;
    ==============================
    The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
    Now if the users qery the view they will only get that clients data.
    eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
    I don't want to propose
    selet * from vw_benifits where client_num in (250,NULL) since the users will be confused.
    Is there any other way to do this . my requirement is like
    If they query
    select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that.
    Appreciate your help
    Deepak

    Hi Thanks for the suggestion.
    But I am not sure this may work for me. Here my users may not be able to use that since they don't know Oracle.
    I want to hide that details from them
    They may just issue a statement like this
    select * from vw_benifits where client_num =250
    Or
    select * from vw_benifits where client_num =400 . But both times I need to show them the data from the legacy table.
    Deepak

  • Problems with Multiple Photo Galleries

    Hey all, I am having issues with multiple photo galleries. The problem is, iWeb will randomly delete old photo libraries when new ones are made.
    My workflow is each blog entry has its own Photo Library attached to it, so i really would love to be able to keep this functionality.
    Does anyone have any clues as to why they are getting deleted? They literally just vanish from the entries in iWeb...
    Many thanks, Matt

    mattperrott wrote:
    Each blog entry has a iweb photo gallery attached to it. I create these by duplicating a previous blog entry, and changing the details as well as the photos contained inside.
    Matt ~ Even without adding such complexity, many people have problems with their iWeb blog. So even if someone helps you to solve this problem, you may then be back with a different iWeb blog problem: Lost all your blog entries or all your comments or unable to publish, etc.
    mattperrott wrote:
    Any thoughts on why this might happen?
    The simple answer is that Apple's implementation of iWeb's blog appears to be buggy. Every day on these forums you'll likely see a couple of problems with iWeb's blog, often "solved" like this: +"I deleted my blog page, and was able to successfully publish the site"+. Also, if you ever have to re-publish everything (say, after upgrading iWeb) you'll wish you had a web-based blog.
    mattperrott wrote:
    This isnt a problem currently but if i ever need to republish my entire site it is a potential killer, especially as it grows...
    The person who posted the following thread had similar concerns saying: +"...I get the feeling when this gets bigger, it'll outgrow iWeb's capability."+ Read his solution here:
    _To blog or not to blog_
    And to link to an external blog from iWeb's navbar:
    Create a blank internal page titled "Blog" (Actually you can name the page whatever you want.) Then in that Blog page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourblogname.com"; // change this to your own URL
    </script>
    ...Once published, clicking on "Blog" in the navbar will immediately redirect to your external Blog page. (Thanks to Cyclosaurus for the code).
    By the way, rather than posting your URL in these forums like this:
    www.local-hero.com.au
    ...include the prefix to make it conveniently clickable:
    http://www.local-hero.com.au

Maybe you are looking for

  • Problems Emailing to Web Gallery From Camera Phone

    I have a Sony Ericcson camera phone that has a mail client which I have set up to use GMail for both incoming and outgoing mail. I can't seem to get Web Gallery to accept the picture emails I send from the phone. The only thing I can conclude is that

  • How can I convert all of my iTunes files into mp3.format?

    These are songs that I downloaded from my cds, but I want to be able to put them back on my desktop in MP3 format to put on a non-itunes compatible portable music player. Thanks!

  • How do i password protect a pages document?

    i have a document that i created in pages.  it is a worksheet for brides (we are wedding photographers).  i use to have the document set up so when i email the document to a client, they can read the questions/timeline but cannot edit my text.  i hav

  • Linking between views!!

    Hi I'm new to EP, I have an application which on clicking of links in one iView, different iViews should be opened in Content Area. I have created the links iView containing: 1.open PDF file. 2.open iView (which is webpage containing some images and

  • Acrobat X Standard Printing/Converting Web Page Issues

    Running Chrome 17.0.963.46 beta-m.  Acrobat is not printing/converting pages correctly. See screeen capture below: