Anychart 5 pointClick problem

Hi all,
I am creating a graph manually using following code :
<div id="DynamicaBarGraphGauge"></div>
<script type="text/javascript" language="javascript">
function DynamicaBarGraph2()
var DynamicaBarGraph3 = new AnyChart('/i/flashchart/anychart_5/swf/OracleAnyChart.swf');
    DynamicaBarGraph3.width = "150";
    DynamicaBarGraph3.height = "150";
DynamicaBarGraph3.addEventListener('pointClick', onDynamicaBarGraphClick2);
    var DynamicaBarGraphData2 = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=gauge01',0);
    gReturn = DynamicaBarGraphData2.get();
alert(gReturn);
    DynamicaBarGraph3.setData(gReturn);
    DynamicaBarGraph3.write("DynamicaBarGraphGauge");
function onDynamicaBarGraphClick2(e)
// Read point name
     name=e.data.Name;
// Read point value
     value=e.data.YValue;
// You can add onclick even here using the values name and value
//alert(DynamicaBarGraph3);
alert(e.data);
alert(value);
alert(name);
DynamicaBarGraph2();
</script> alert(e.data) returns object object so it is <> null
alert(value) and alert(name) return undefined
so how can I get the value and name : the chart is a gauge circular chart
this is the code for my page process :
CREATE OR REPLACE PROCEDURE gauge01 IS
BEGIN                                             
OWA_UTIL.mime_header ('text/xml', FALSE);                                             
OWA_UTIL.http_header_close;                                             
htp.p('    <anychart>');                               
htp.p('        <margin all="0"/>');                           
htp.p('        <gauges>');                           
htp.p('            <gauge>');                       
htp.p('                <chart_settings>');                   
htp.p('                    <title><text>MPH Speedometer</text></title>');               
htp.p('                    <chart_background enabled="true">');
htp.p('                      <fill enabled="true" type="Solid" color="gray" opacity="0" />');
htp.p('                          <corners type="Rounded"/>');               
htp.p('                    </chart_background>');               
htp.p('                </chart_settings>');                   
htp.p('                <circular>');                   
htp.p('                    <axis radius="50" start_angle="90" sweep_angle="180" >');               
htp.p('                        <scale minimum="0" maximum="120" major_interval="20" minor_interval="5"/>');           
htp.p('                        <scale_bar enabled="false"/>');           
htp.p('                        <labels enabled="true">');           
htp.p('                            <font bold="true" />');       
htp.p('                            <format>{%Value}{numDecimals:0}</format>');       
htp.p('                        </labels>');           
htp.p('                        <minor_tickmark enabled="false" />');           
htp.p('                        <color_ranges>');           
htp.p('                            <color_range start="0" end="40" color="Green"/>');       
htp.p('                            <color_range start="40" end="80" color="Orange"/>');       
htp.p('                            <color_range start="80" end="120" color="Red"/>');       
htp.p('                        </color_ranges>');           
htp.p('                    </axis>');               
htp.p('                    <pointers>');
htp.p('                        <pointer type="needle" value="80" color="#B32424" name="eyscma">');
htp.p('                          <label enabled="true" align="Outside" text_align="Near" >');
htp.p('                            <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>');
htp.p('                            <font family="Tahoma" size="10" color="0x000000" />');
htp.p('                            <position anchor="CenterTop" />');
htp.p('                            <background enabled="true">');
htp.p('                              <border enabled="false" />');
htp.p('                              <fill enabled="true" type="Solid" opacity="0" color="gray"/>'); 
htp.p('                            </background>');
htp.p('                          </label>');
htp.p('                        </pointer>');            
htp.p('                    </pointers>');               
htp.p('                </circular>');                   
htp.p('            </gauge>');                       
htp.p('        </gauges>');                           
htp.p('    </anychart>');
   EXCEPTION
     WHEN OTHERS THEN
       htp.p(sqlerrm);
END gauge01;at the top of my page I have : (any other does not work)
<script src="/i/flashchart/js/AnyChart.js"  type="text/javascript" > </script>

thx to firebug I fixed the problem

Similar Messages

  • Text comments on line chart

    Hi,
    I have a single series flash chart displaying dates on X axis and some values on Y axis. The data comes from a table defined as
    Week_Start DATE;
    Production_Level NUMBER;
    Txt_Comment VARCHAR2(255);
    Some data points have textual comments attached to them (e.g. explanations for unusually high/low production levels) and I wouold like to display them beside the associated points.
    Any ideas on how this can be done would be welcome...
    I use APEX 3.0 with AnyChart 5.1.2 and Oracle 10g
    Many thanks,
    Constantine

    Hi Sergio,
    Thank you for your help.
    This looks promising, except I can't get it to work - would you please take a look at the code I have and let me know what I am doing wrong?
    Here is what my PL/SQL returns and this gets assigned to a hidden page item called P1_TMP_CHART_DATA:
    <data>
    <series name="Series 1">
    <point name="Jan 01" y="0">
    <attributes>
    <attribute name="comment"><!CDATA[NONE]]></attribute>
    </attributes>
    </point>
    <point name="Jan 08" y="96">
    <attributes>
    <attribute name="comment"><!CDATA[NONE]]></attribute>
    </attributes>
    </point>
    </series>
    </data>and here is the XML I have for my chart:
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <anychart>
    <margin all="1"/>
    <settings>
    <animation enabled="false"/>
    </settings>
    <charts>
    <chart use_anychart3_data_model="true" use_sets_colors="false">
    <chart_settings>
    <title align_by="Chart" padding="0"><text>Cumulative Net Production</text></title>
    <axes>
      <y_axis>
      <title padding="0">
        <text>boe/d</text>
      </title>
      <major_tickmark inside="True" outside="False" />
      <minor_tickmark inside="False" outside="False" />
      <minor_grid enabled="False" />
      <labels>
        <format>{%Value}{numDecimals:0}</format>
        <font size="10"/>
      </labels>
    </y_axis>
    <x_axis tickmarks_placement="Center">
      <title><text></text></title>
      <major_tickmark inside="False" outside="True" />
      <major_grid enabled="False" />
      <minor_grid enabled="False" />
      <labels rotation="90" padding="0">
        <font size="10"/>
      </labels>
      <scale major_interval="1"/>
    </x_axis>
    <extra>
      <y_axis name="y2" enabled="false">
        <scale minimum="0" maximum="1"/>
      </y_axis>
    </extra>
    </axes>
    <chart_background>
      <inside_margin bottom="0" left="3" right="3" top="6" />
    </chart_background>
    </chart_settings>
    <data_plot_settings default_series_type="Line">
    <interactivity hoverable="False" allow_select="False" use_hand_cursor="False"/>
    <line_series>
      <tooltip_settings enabled="true">
        <format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
        <font family="Tahoma" size="10" color="0x"/>
        <position anchor="Float" valign="Top" padding="10" />
      </tooltip_settings>
      <label_settings enabled="true" mode="Outside" multi_line_align="Center">
        <format><![CDATA[{%comment} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
        <background enabled="false"/>
        <font family="Tahoma" size="10" color="0x"/>
      </label_settings>
      <line_style>
        <line enabled="true" thickness="1" opacity="1" />
      </line_style>
      <marker_settings enabled="True" >
        <marker type="Circle" />
      </marker_settings>
    </line_series>
    </data_plot_settings>
    &P1_TMP_CHART_DATA.
    </chart>
    </charts>
    </anychart>Now, the problem is that when I run my page, I get the chart container with a message saying "XML parser failure: The element type must be terminated by the matching end-tag."
    If I replace &P1_TMP_CHART_DATA. in my XML with #DATA# I get to see the chart with some sample data points, so I am guessing the XML itself (axes, title, etc) is probably OK and I messed something up in the definition of &P1_TMP_CHART_DATA.
    Your help would be most appreciated.
    Thanks,
    Constantine
    Edited by: Constantine on Jun 22, 2011 2:42 PM

  • AnyChart - Parse XML as a String Problem

    Hey guys
    I am able to parse an XML file to AnyChart within APEX - the gantt chart displays fine. Though, I do want the process to be more dynamic. Basically I have created a PLSQL function to generate the XML - returns the XML as a CLOB. The function is called as a Before Header process and sets the value of a Hidden variable. I then parse the value of the hidden variable to the AnyChart routine setData() - see below:
    var chart = new AnyChart('issuesChart', #IMAGE_PREFIX#AnyChart/swf/GanttChart.swf');
    chart.width = 700;
    chart.height = 300;
    var data = document.getElementById('P29_XML_SOURCE').value;
    chart.setData(data);
    chart.write();
    The problem is no chart is displayed. The XML generated by the PLSQL function is the same as the XML in the file I parsed to begin with. Any ideas where I am going wrong?
    Cheers
    Jamie Crosby

    Have you found a solution to the using a procedure/function to generate the xml for the gantt chart ? If so can you post details on how you got this working , query examples would also be helpful. I am trying to generate a schedule of projects for a given year and displaying via a gantt chart.
    Thanks,
    Nancy

  • Problems with apex and anychart (using reverse proxy)

    Hi,
    Im using 2 Servers. The first with Apache2 and the /i/ directory and the second with a Oracle XE Database.
    The imagedirectory is at the first server.
    Heres my Apache Setup:
    <Location /apex>
    Options None
    Order allow,deny
    allow from all
    ProxyPass http://..(remote_ip)..:8080/apex
    ProxyPassReverse http://..(remote_ip)..:8080/apex
    </Location>
    Alias /i/ /var/i/
    <Directory "/var/i/">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    if I open a page with a anychart chart I get this error:
    "Flash Security Error
    Anychart can not be launched due to Flash Security Settings violation.
    Please refer to Security error Article in Anychart Documentation..."
    http://www.anychart.com/products/anychart/docs/users-guide/index.html?security-error.html
    I think I have to place a crossdomain.xml
    Placing the crossdomain.xml in example.com/ root-directory doesn't work?
    thanks for any help

    Hi Christoph,
    Yes, the APEX Listener works with Oracle XE. The APEX Listener is currently an Early Adopters release, and is available for download from here: http://www.oracle.com/technology/products/database/application_express/html/apex_listener_download.html. I would recommend reviewing the accompanying Installation Guide before proceeding. There's an 'APEX Listener Feedback' thread - APEX Listener Feedback - which may also proof useful to you. There's also another related thread on this topic: Re: #HOST# Substituin incorrect for charts via Reverse Proxy which discusses the replacement of the #HOST# substitution string.
    Regards,
    Hilary

  • APEX 3.0  - AnyChart - Legend problems

    The legend in this version seems to be throughly uncooperative... Currently, I'm trying to get the symbol used for a line to show up in the legend instead of (or in addition to) the line color. Any ideas?
    Thanks!

    I'm not sure if that is possible, but maybe someone else has done it.
    Since you have the images that you're using for the data points, one possible alternative is to create the legend as an HTML table beside or below the actual chart. Then you can put whatever images/text you want in it.
    Marco

  • Gantt Chart Related Problem

    Project Link:
    PPPM
    How to solve these problems.
    Problem 1:
    I have to scroll both the Gantt Chart and Task List scroll
    simultaneously. When i scroll Gantt Chart , then at the same time
    Task List and vice versa.
    Problem 2:
    How to stop Gantt Chart header movement stop when scroll the
    Gantt Chart.
    Problem 3:
    In the Gantt Chart Node, there are 2 section. One is dark
    section and other is lite section. I have to slide these scctions
    like like HDevidedBox effect.
    Please help me out from these problems.

    Hi Vedant,
    values are displayed in pie chart their label is not display.
    So you're able to view the value and label information when you hover over a slice i.e. viewing the tooltip, but you can't see the actual label for each slice of the pie. If you're not seeing all of the labels for the slices of the Pie chart, then this could due to a couple of reasons:
    1) the length of the label
    2) the position of the label
    3) the size of the chart
    Keep in mind that displaying all 41 labels on the chart could result in an extremely cluttered looking chart. AnyChart controls the visibility of the labels, depending on the above factors. So if your labels are quite lengthy, for example, and they are positioned to be displayed outside the chart, then AnyChart will display what labels it can for the given chart size. To work around this, having tooltips enabled is a good starting point. Alternatively, you could look at decreasing the length of the label text, changing the label position or even increasing the size of the chart. For further information on the label formatting, I would recommend reviewing AnyChart's online documentation, here: http://anychart.com/products/anychart/docs/users-guide/label-text-formatting.html?fromtree.
    Regards,
    Hilary

  • Anychart save as pdf/image not working

    A while ago I posed this question when the right click, save as stopped working on my APEX charts
    Apex charts - right click, save as image (not responding)
    The problem resolved when anychart.com was back up, but the problem is occurring again and I wonder if they've moved their php files.  Not even in Hilary's sample app is working. We think this happened within the last month.
    After choosing save as image and a location, the "saving" just keeps spinning.
    Most anychart google results at the moment seem to revert to the same landing page, and webcached copies refer to locations that no longer exist.
    I wonder with post anychart7 cleanup, have they moved the supporting php files? For instance, this location no longer exists
    http://www.anychart.com/products/anychart/saveas/pdf/PDFSaver.php
    A workaround is to use a local copy of the php file with custom XML
      <settings>
        <pdf_export file_name="mychart.pdf" use_title_as_file_name="true" url="/i/AnyChart4_SaveAsPDF_php4/PDFSaver.php" image_type="jpg" />
    But I only have the PDFSaver, not the AnyChartPNGSaver.php
    This file no longer exists either:
    http://anychart.com/products/anychart/docs/users-guide/export_image_scripts/php.zip
    Does anyone know where I can source the png saver php, or suggest another workaround? Or have any other information on this issue.
    An email to [email protected] back in 2013 got no reply.
    APEX 4.2.0
    Scott.

    Hi Scott,
    So, if i understand properly, making this change
    <settings><pdf_export file_name="mychart.pdf" use_title_as_file_name="true" url="/i/AnyChart4_SaveAsPDF_php4/PDFSaver.php" image_type="jpg" />
    will avoid atleast PDF issue? And as i dont have privileges to install or deinstall anything on /i/ folder, still this will work and URL path will remain same for each installation?
    Adding another question, as you said "it sends base64 information when converting to PDF", does it mean i will not be able to convert to PDF, if i am using intranet and PC's not accessible to internet?
    Thanks
    Sunil Bhatia

  • AnyChart Category Sum

    Hi everybody,
    I've been searching around for quite some time, but didn't find a simple solution to my problem.
    I've a stacked bar chart with multiple categories. There I need to place the sum of all categories above the bar.
    An example can be found here: http://anychart.com/products/anychart/gallery/samples/Multi-Series-2D-Column-Stacked-Chart.html
    As in the example stated out, I need to attach the following within the last series.
    <extra_labels>
         <label enabled="true">
              <format><![CDATA[{%CategoryYSum}{numDecimals:0}]]></format>
              <font size="10" color="Black" />
         </label>
    </extra_labels>The Custom XML option to generate the XML is not an option, because I'm retrieving the SQL dynamically by "Function Returning SQL Query".
    Is there any way to approach this?
    Thanks & Regards
    Michael
    P.S.: APEX 4.0.2.00.06, AnyChart 5.1.3

    I assume that you have not found a solution yet. I have the same problem and the only solution is to overwrite the data in # DATA #. My workaround is to add the axis labels sums so in your example P1 -> P1 (198).
    Any other solution ?
    Cheers.
    UPDATE: Realized that {%CategoryYSum} is created for data so my workaround is bad...
    UPDATE2: What about creating xml data on your own look at this http://apex.oracle.com/pls/apex/f?p=36648:60:2007207572745902:::::&tz=1:00 this is gant of course but you can successfully replace #DATA# with xmltype substitution ?
    Edited by: jareeq on 2011-12-06 03:49
    Edited by: jareeq on 2011-12-06 04:41

  • Security warning https setup IE 8.0 with Anychart 5 in APEX 4.0

    Hi
    We use Oracle Http server , the https setup is handled in the firewall setup, we use Apex 4.0
    We try to use IE 8.0 with APEX 4.0 and using anychart in a report portal like application. We are using https protocol and this runs just fine in Firefox and Chrome, but when running IE 8.0 we run into the problem with displaying the content. We get the Security Warning message box asking if we want to display only the content that was delivered securly. We have traced the problem down to that the problem is because of using Anychart charts. When we remove the anychart regions the security problem is removed.
    We have tried with setup of #HOST_PROTOCOL# to https which apex 4.0 have made available for anychart codebase, but this does not help, link to Anychart websiste
    http://www.anychart.com/products/anychart/docs/users-guide/index.html?security-error.html is talking about setup of crossdomain.xml on the root catalog on the webserver.
    Using Anychart 5.0 and APEX 4.0 with https in IE gives popup of Security Warning message box, any idea how we could solve this problem?
    Edited by: user9252117 on Aug 25, 2010 3:13 AM

    Hi Patric
    Tis is realy interesting,
    BTW: the select owa_util.get_cgi_env('REQUEST_PROTOCOL') from dual; returns http.
    I changed the #HOST_PROTOCOL# in the region source, and then it worked well for the first time, if i took a refresh on the page the message box popped up again, going back to the region source the https was replaced with #HOST_PROTOCOL# again overwriting the changes i had made, it looks like the code is updated when the page is executed, sounds strange to me, so then i am back where i started.
    The switch to https protocol was made by setting PlsqlCGIEnvironmentList REQUEST_PROTOCOL=https in dads.conf, BUT then we got back to the stage where the charts was not displaying at all and we have tride to setup crossdomain.xml and put at document root at apache but we have not been able to make this working.
    We have a situation where it works and that is when https is put into region source code but this is overwritten.
    The apache webserver is running on port 7777 and the https is handled in the firwall setup so i guess we have a reverse proxy setup or something like that.
    Any idea why the #HOST_PROTOCOL# is overwritten?
    kind regards
    jon

  • Gantt Chart: Problems with more than 39 elements

    Hi all,
    I have a problem with Gantt Project Chart.
    Please have a look at http://tryapexnow.com/apex/f?p=2141:2 (credentials: demo/demo)
    If you limit to 39 rows this works fine, but with 40 rows or more the timeline is not in line with the datagrid.
    Strange thing is that as soon as you collapse all tasks the timeline is correct.
    Uncollapsing brings back wrong display.
    Has anybody seen this behaviour before and can help me out on that?
    Thanks for help,
    Moritz
    Edited by: commi235 on 31.05.2011 13:23

    Hello Moritz,
    the "Maximum Rows"-option is as default set to 40.
    if you created the chart by "Create Region => Chart => Flash Chart => ..." you can change this value in tab "Chart Series", below the "Build Query"-button.
    But I don't know how to change the maximum number of rows, when the chart is created via
    "var chart = new AnyChart(''#IMAGE_PREFIX#flashchart/anygantt_4/swf/AnyGantt.swf''); " in a HTML-region.
    I'm very interested in finding a solution.
    Kirsten

  • BUG Apex4.0 AnyChart: apex_util.flash  - returning zero rather than null

    [Line chart screen capture|http://www.anaruk.com/linechart.jpg]
    The chart image I linked to above is a year over year sales chart. The first series returns 2009 Sales. The second returns year to date 2010. The problem is that even though the query returns no data for August through December of 2010 - because they haven't happened yet - the XML returned by the apex_util.flash proc returns those months with a zero value causing the chart to plot that data.
    2009 query result set:
    LINK MONTH SALES
    - Jan 250
    - Feb 230
    - Mar 360
    - Apr 130
    - May 120
    - Jun 180
    - Jul 130
    - Aug 280
    - Sep 270
    - Oct 250
    - Nov 360
    - Dec 410
    2010 query result set:
    LINK MONTH SALES
    - Jan 130
    - Feb 970
    - Mar 170
    - Apr 140
    - May 110
    - Jun 230
    - Jul 440
    XML for 2010 comes back:
    <series name="YTD 2010" type="Line" color="0x1D8BD1">
    <point name="Jan" y="130">
    </point>
    <point name="Feb" y="970">
    </point>
    <point name="Mar" y="170">
    </point>
    <point name="Apr" y="140">
    </point>
    <point name="May" y="110">
    </point>
    <point name="Jun" y="230">
    </point>
    <point name="Jul" y="440">
    </point>
    <point name="Aug" y="0">
    </point>
    <point name="Sep" y="0">
    </point>
    <point name="Oct" y="0">
    </point>
    <point name="Nov" y="0">
    </point>
    <point name="Dec" y="0">
    </point>
    </series>
    IF I modify and load the following, AnyChart correctly does not plot the last four months:
    <series name="YTD 2010" type="Line" color="0x1D8BD1">
    <point name="Jan" y="130">
    </point>
    <point name="Feb" y="970">
    </point>
    <point name="Mar" y="170">
    </point>
    <point name="Apr" y="140">
    </point>
    <point name="May" y="110">
    </point>
    <point name="Jun" y="230">
    </point>
    <point name="Jul" y="440">
    </point>
    <point name="Aug" y="">
    </point>
    <point name="Sep" y="">
    </point>
    <point name="Oct" y="">
    </point>
    <point name="Nov" y="">
    </point>
    <point name="Dec" y="">
    </point>
    </series>
    Thanks for any feedback.
    Walter
    Edited by: WannaRock on Jul 23, 2010 2:17 PM
    - made Subject more descriptive
    - fixed three typos

    Hi Walter,
    Thanks for bringing this to our attention. The behaviour you have reported is the current default behaviour for handling null values on the Line chart, where they are represented as zero in the series data. I appreciate this handling is not what you would expect, particularly in your scenario, where you do not wish to represent certain points on the chart (AUG - DEC 2010), so I will revise this behaviour and include a fix for this in our upcoming patch release 4.0.1. I've logged bug 9945462 to track this issue.
    Regards,
    Hilary

  • Printing of charts generated by anychart and using Chrome

    Hi All,
    I have decided to use Anychart to print the charts in my report. The problem is that in google chrome when I go to print the report, only the text shows up in the print preview. As a result I cannot print the charts (generated by anychart)...only the text print.
    Please see a small demo that I created here - http://apex.oracle.com/pls/apex/f?p=57229:1:14503394258567 (login itproguys/itpro230). USE GOOGLE CHROME.....
    When you right click on the text or anywhere except the image, you get the Print option. Click on this to launch the chrome print utility. You will see the text showing up and no images on the preview section.
    Any help is highly appreciated
    Edited by: rhans on Oct 9, 2012 2:07 PM

    Yes these parameters that you can input in RSA3 will be provided by BW call
    Take attention to the selection fields, transfered in first call and not in following call. so move those to STATICS field at first call, and don't touch them after. Use these to build the CURSOR FOR SELECT statement. (moving to field ranges or building a WHERE clause)
    In case of DELTA via DATE or such field, you will get this selection in these selection fields.
      IF i_initflag = sbiwa_c_flag_on.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
        s_s_if-requnr = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize = i_maxsize DIV 3.
        s_updmode = i_updmode.
      ELSE.
        IF s_counter_datapakid = 0.
          REFRESH s-gjahr.
          LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'FISCPER'.
              MOVE-CORRESPONDING l_s_select TO s-gjahr.
              s-gjahr-low = l_s_select-low(4).
              s-gjahr-high = l_s_select-high(4).
              APPEND s-gjahr.
            ENDIF.
          ENDLOOP.
          OPEN CURSOR WITH HOLD s_cursor FOR
          SELECT * FROM pmco
            WHERE versn IN s-versn
              AND objnr IN s-objnr
              AND gjahr IN s-gjahr.
    Regards

  • Does any one tried anychart to save a chart as jpg in a blob for reports

    Hi does any body used anychart through plsql to save a chart as jpg in a blob in a table to display it in oracle reports, or for another use.
    Thank you :)

    Hi,
    Have you solved this?
    I have the same problem.

  • Combined date sorting with anychart (mm.yyyy)

    Hi there
    [apex 4.2, Oracle 11g]
    I have a table in which I extract the year and the month and both in combination (from a date type). This is needed to summarize for example the year in a chart.
    I need the combination of month and year because people could do a query which switches through years. For expample: From 02.2012 to 03.2013.
    My problem is I dont know how to tell anychart to sort the dates.
    I have already tried:
    to_number(to_char(testdate,'YYYY')) as Year,
    to_number(to_char(testdate,'YYYY'))||to_number(to_char(testdate,'MM')) as MonthyearApex now sorts:
    20121,201212,20122
    I would like that apex realizes to order:
    1.2012,2.2012,3.2012 .........01.2013,02.2013.03.2013
    The report itself has now four date relating collums:
    1) Date (Type Date)
    2) Year (Type Number)
    3) Month (Type Number)
    4) Monthyear (Type varchar)
    Hope you can help.

    Hi Thorsten,
    You might find it useful to refer to the 'Sample Database Application', which gets installed in your workspace as part of a workspace provisioning. Edit the application, and view the chart series query for the 'Sales by Category/Month' chart on pg 5, where you'll see how the representation of the DATE information has been handled, which uses the following query:
    select null,
           to_char(o.order_timestamp, 'MON RRRR') label,
           sum (decode(p.category,'Accessories',oi.quantity * oi.unit_price,0)) "Accessories"
    from demo_product_info p, demo_order_items oi, demo_orders o
    where oi.product_id = p.product_id
    and o.order_id = oi.order_id
    group by to_char(o.order_timestamp, 'MON RRRR'), to_char(o.order_timestamp, 'RRRR MM')
    order by to_char(o.order_timestamp, 'RRRR MM')You may want to try something similar in your query. Try it out in SQL Developer or SQL Workshop first, to verify the order of results.
    BTW is it safe to assume that your other open thread has now been answered: Re: Select x-axis into chart ?
    Regards,
    Hilary

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

Maybe you are looking for

  • Thinking about switching to Windows

    This is not meant to be a Os X vs Windows thread. I dont think one platform is better than the other, but they have different strengths and weaknesses. What I want to hear is what kind of pitfalls I can expect in regards to live video performance if

  • Reading list doesn't work

    Hi, I add some articles on my mac to the reading list, then I try to access them offline (they appear in safari) from my iPhone, but they are available only when online. How can I read articles while offline? Thanks for your help and support.

  • An order paid with Reward Certificate was never fulfilled. Do I lose my points?

    Hello, I placed an order on May, 22.  Total for this order was $17.92 (paid with credit card) + $20 (using reward certificate).  I received an e-mail confirmation saying that my order was shipped a day after that.  I waited two weeks for my order to

  • No aparece nada en la pantalla ACTUALIZAR del app store en mi iphone 5 !!!! ???

    No aparece nada en la pantalla ACTUALIZAR del app store en mi iphone 5 ... Tiene supuestamente 8 apps para actualizar pero cuando entro no puedo ver cuales apps hay que actualizar ... ¿alguna idea de que pasa? Saludos, Eduardo

  • Need help can't open existing itunes

    Today I had to completely restore my pc to it's original settings. I have an itunes account but now I cannot get any of the music or audio books that I had in there. Is there a way to get my stuff back or am I out of luck?