How to use custom function for formatting the Line Chart Axes?

Hi...
I'm using a Line chart who's y axis value range from 0 to 50000. This is a number which it gets from it's dataProvider. I want to format this and show it as
$50,000
$40,000
$30,000
$20,000
$10,000
$0
instead of
50000
40000
30000
20000
10000
0
Here's my linechart code:
<mx:LineChart id="revTimeLineChart"
            width="100%" height="100%"
            showDataTips="true" >
            <mx:horizontalAxis>
               <mx:CategoryAxis id="lcCatAxis" categoryField="name"/>
            </mx:horizontalAxis>
            <mx:series>
               <mx:LineSeries id="ls" yField="revenue" displayName="Revenue" showDataEffect="{slideIn}"/>      (yField is what I want to format....)
            </mx:series>
</mx:LineChart>
Can you please let me know how can this be achieved?
Cheers!
Deepak

Hi,
You could do something like this,
http://www.codersrevolution.com/index.cfm/2008/10/14/Flex-Charting-Format-your-X-and-Y-Axi s
hope it helps!
Regards ,
Bhavika

Similar Messages

  • How to use custome tag lib in the JSP page?

    How to use custome tag lib in the JSP page?...with JDeveloper

    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/

  • Any one know how to use "custom" option present under the data access tab in XLS file format of Data Services

    Hi Experts,
            Any one know how to use or what is the purpose of "custom" option present under the data access tab in Excel workbook file format of Data Services
    Thanks in Advance,
    Rajesh.

    Rajesh, what is the Custom Protocol you are trying to use? It should be  something like PSFTP, etc.,
    Cheers
    Ganesh Sampath

  • How to use Pivot function for group range in oracle SQL

    Hi,
    Good Morning !!!
    I need to show the data in the below format. There is 2 columns 1 is State and another one is rate.
    State     <100     100-199     200-299     300-399     400-499     500-599     600-699     700-799     800-899     900-999     >=1000     Total
    AK     1     2     0     4     1     4     4     35     35     4     1     25
    AL     0     0     2     27     10     17     35     2     2     35     0     103
    AR     0     0     1     0     0     2     2     13     13     2     0     6
    AZ     0     1     2     14     2     14     13     3     3     13     0     57
    CA     0     0     1     6     2     7     3     4     4     3     0     34
    Developed the below query but unable to use the range on pivot function . Please help on this.
    (select      (SELECT SHORT_DESCRIPTION
         FROM CODE_VALUES
         WHERE CODE_TYPE_CODE = ad.STATE_TYPE_IND_CODE
         AND VALUE = ad.STATE_CODE
         ) STATE,
    nr.rate
         FROM neutrals n,
         contacts c,
         addresses ad,
         xref_contacts_addresses xca,
         neutral_rates nr
                        where n.contact_id=c.contact_id
                        and n.address_id = ad.address_id
                        and xca.address_id=ad.address_id
                        and xca.contact_id=c.contact_id
                        and nr.contact_id = n.contact_id
                        and nr.rate_frequency='HOUR' )

    user8564931 wrote:
    This solutions is useful and Thanks for your reply.
    How can i get the Min value and Max value for each row ?
    State     <100     100-199     200-299     300-399     400-499     500-599     600-699     700-799     800-899     900-999     >=1000     Total     Min     Max
    IL     0     0     1     5     1     5     40     1     1     40     0     53     $10     $2,500
    IN     0     0     0     0     0     0     1     49     49     1     0     3     $70     $1,500This?
    WITH t AS
            (SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 67 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 23 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 78 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 34 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 4 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 15 VALUE FROM DUAL
             UNION ALL
             SELECT 'AZ' state, 6 VALUE FROM DUAL
             UNION ALL
             SELECT 'AZ' state, 123 VALUE FROM DUAL
             UNION ALL
             SELECT 'AZ' state, 123 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 23 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 120 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 456 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 11 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 24 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 34 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 87 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 23 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 234 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 789 VALUE FROM DUAL
             UNION ALL
             SELECT 'MH' state, 54321 VALUE FROM DUAL),
         -- End of test data
         t1 AS
            (  SELECT state,
                      NVL (COUNT (DECODE (VALUE, 0, 0)), 0) "<100",
                      NVL (COUNT (DECODE (VALUE, 1, 1)), 0) "100-199",
                      NVL (COUNT (DECODE (VALUE, 2, 2)), 0) "200-299",
                      NVL (COUNT (DECODE (VALUE, 3, 3)), 0) "300-399",
                      NVL (COUNT (DECODE (VALUE, 4, 4)), 0) "400-499",
                      NVL (COUNT (DECODE (VALUE, 5, 5)), 0) "500-599",
                      NVL (COUNT (DECODE (VALUE, 6, 6)), 0) "600-699",
                      NVL (COUNT (DECODE (VALUE, 7, 7)), 0) "700-799",
                      NVL (COUNT (DECODE (VALUE, 8, 8)), 0) "800-899",
                      NVL (COUNT (DECODE (VALUE, 9, 9)), 0) "900-999",
                      NVL (COUNT (DECODE (VALUE, 10, 10)), 0) ">=1000"
                 FROM (SELECT state,
                              CASE
                                 WHEN VALUE < 100 THEN 0
                                 WHEN VALUE BETWEEN 100 AND 199 THEN 1
                                 WHEN VALUE BETWEEN 200 AND 299 THEN 2
                                 WHEN VALUE BETWEEN 300 AND 399 THEN 3
                                 WHEN VALUE BETWEEN 400 AND 499 THEN 4
                                 WHEN VALUE BETWEEN 500 AND 599 THEN 5
                                 WHEN VALUE BETWEEN 600 AND 699 THEN 6
                                 WHEN VALUE BETWEEN 700 AND 799 THEN 7
                                 WHEN VALUE BETWEEN 800 AND 899 THEN 8
                                 WHEN VALUE BETWEEN 900 AND 999 THEN 9
                                 WHEN VALUE >= 1000 THEN 10
                              END
                                 VALUE
                         FROM t)
             GROUP BY state)
    SELECT STATE,
           "<100",
           "100-199",
           "200-299",
           "300-399",
           "400-499",
           "500-599",
           "600-699",
           "700-799",
           "800-899",
           "900-999",
           ">=1000",
             "<100"
           + "100-199"
           + "200-299"
           + "300-399"
           + "400-499"
           + "500-599"
           + "600-699"
           + "700-799"
           + "800-899"
           + "900-999"
           + ">=1000"
              total,
         least("<100",
           "100-199",
           "200-299",
           "300-399",
           "400-499",
           "500-599",
           "600-699",
           "700-799",
           "800-899",
           "900-999",
           ">=1000") min_val,
          greatest("<100",
           "100-199",
           "200-299",
           "300-399",
           "400-499",
           "500-599",
           "600-699",
           "700-799",
           "800-899",
           "900-999",
           ">=1000") max_val
      FROM t1
    /

  • How to use customer exit variable in the report

    Dear All,
    i want to use a standard customer exit variable in the report properties.
    In the Bex Query Designer right hand bottom you will find two buttons "Properties" and "Task". Click on task you will get different option. Choose properties from there and then select "variable sequence tab".
    I need to add a standard variable there. How can i achieve it?
    Appreciate your early help.

    You need to add variable to corresponding charctertic then you can get that varaible for sorting the sequence....
    If 0CUST is the varaible then you need to assign it 0CUSTOMER then 0CUST will be available for the sequence.
    Edited by: shanthi bhaskar on Apr 2, 2009 5:41 PM

  • How to use destination function for javascript

    Hi,
    I used javascript:var a = window.open('OA.jsp?page=/oracle/apps/cdar/admin/brandupload/webui/SupportPG&retainAM=Y&OARF=printable', 'a','height=500,width=900,menubar=yes,toolbar=yes,location=yes'); a.focus(); in destination URL property, it can work to popup another window.
    But I want to setup a Oracle function for this javascript, and use Destination FUNC property on the button to popup window. But it can not work after I setup a SSWA jsp function with WEB HTML.
    Could some one help this?
    Thanks,
    Eileen

    Eileen,
    How are you adding the OA function ? I have also tried destination url property but not the destination function.Probably you should do sth like this :
    In ProcessRequest :-
    <OABean> <var name> = (<OABean>)webBean.findChildRecursive("<Bean Id>");
    <var name>.setOnClick("javascript:window.open ('OA.jsp?OAFunc=<funcName>','new','height=550,width=850,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no' );
    OABean is the bean on click of which the page should open like a hyperlink or sth like that.
    Hope this helps.

  • How to use evaluate function for sql server function

    Hi Team,
    We have imported a column(date dtat type) from SQL server cube . By default it imported as varchar,. We have three option in physical layer for this column(Varchar,Intiger,unknown)
    So we want to convert this column into date.can we use evaluate or there is any option to do that.?

    Hi,
    I am not sure your requirement. But how pass evaluate function obiee?
    syntax:- EVAULATE('your db function(%1,%2)', parameter list)
    here %1 and %2 are the no.of parameters (columns or may constant values) to be passed for the db-function
    if you have 3 parameters then you need to use %3 also.. means the columns to be passed.
    following exapmples are for ORACLE db,
    ex1: EVALUATE('upper(%1)', 'satya ranki reddy') gives the result as -> SATYA RANKI REDDY
    ex2: EVALUATE('upper(%1)', 'Markets.Region') here Markets.Region is column.
    you also can call the user-defined functions through evaulate
    EVALUATE('functioname(%1,%2), column1, column2)
    the above function has 2 parameters to be inputted
    Hope this help's
    Thanks
    Satya

  • How to use custom calendar for scheduling other than owb's default calendar

    Hi All,
    Can anyone please tell me, is there any possibility of using a custom calendar in place of owb default calendar calendar during scheduling. Because, in my case, the month start date and end date are not 1st and 31st that changes according to the financial calendar that is defined.
    I want to schedule mappings on month end date of financial calendar. How can this be done?
    Thanks in advance
    Joshna

    Hi,
    The only possibility is to configure more than one schedule using the complex by month, by_ configuration. I don't know if this will work for you. Or you must use another job control system.
    Can u just brief how to use it. Any other possible way of achieving my task?
    Thanks
    Joshna

  • How to use custom tags for integrating FCK Editor?

    Hi All,
    I am looking for the integrating the FCK Editor in my jsp page. any one can please provide the procedure of How to create fckeditor in jsp?
    I have the jar file of fck editor but i am confusing while creating the custom tag for that editor.
    I want like this:
    <FCKeditor:fck ?> like this
    Regards,
    Sateesh

    google answers it all..
    [http://www.jroller.com/coreteam/entry/using_fckeditor_in_jsp_web]
    [http://java.fckeditor.net/properties.html]
    [http://java.fckeditor.net/java-core/tagreference.html]

  • How to use Mail functionality OPTT in the Schema

    Dear All,
        We have a requirement where we need to send a mail to the Time Administrator if Time Evalution ends in Error.  We have implemented the functionality OPTT MAIL option in the schema, but it is not sending the mail to Time Administrator. We have maintained the Time Administrator table T526 with the SAP ID.
    Could anybody tell us, we have to do anyother configuration to enable the mail function
    Thanks in Advance
    Rajesh.S

    Hello Folks,
        Can anyone please let me know How to send a mail notification to the Time Administrator.
    In the Schema, OPTT MAIL 1 has declared.
    The Time Administrator is maintained in T526 table.
    Do we need to do other than above to send mail.
    Kindly let me know.
    Note. The COLER function is not used in the Schema.

  • How to use custom function.

    i write a custom funciton contain a sql sentence like this:
    SELECT sum(QTY) INTO SUM_OUTPUTQTY FROM V_DW_SALE_INVOICE
    WHERE V_DW_SALE_INVOICE.INVOICEDATE LIKE 'aaa%' AND
    P2=MENUFACTURER_ID AND P3=METERIELNAME AND P4 =SPEC AND
    P5=ORG_ID;
    the table V_DW_SALE_INVOICE is in the source database.
    when i deploy the function,it response table or view is not exist.
    how to deploy the function?
    thx

    How did you create your custom function? The step-by-step instructions are in the User Guide here http://download.oracle.com/docs/html/B12146_01/maptransf.htm#i1149862 Note you can also import existing PL/SQL packages as described there.
    Minor comment: INTO [variable] is a PL/SQL element, not SQL.
    Nikolai Rochnik

  • How to use CHANGEDOCU functions for audit trail?

    Hi,
    I have a report screen that requires audit trails on the changes made to the data dic fields on the screen.
    Which CHANGEDOCU functions should I use for audit trail? And where should I implement the functions? In the 'save' subrountine that I create?
    Any samples? Thanks.

    Hi Kian,
               You should wtite the change docu functions in the "SAVE" subroutine. The following changedocu functions should be used. I am attaching an example if it below.
    CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
        EXPORTING
          OBJECTCLASS             = 'ZSCHEMES'
          OBJECTID                = OBJECTID
          PLANNED_CHANGE_NUMBER   = PLANNED_CHANGE_NUMBER
          PLANNED_OR_REAL_CHANGES = PLANNED_OR_REAL_CHANGES
        EXCEPTIONS
          SEQUENCE_INVALID        = 1
          OTHERS                  = 2.
      CASE SY-SUBRC.
        WHEN 0.                                   "OK.
        WHEN 1. MESSAGE A600 WITH 'SEQUENCE INVALID'.
        WHEN 2. MESSAGE A600 WITH 'OPEN ERROR'.
      ENDCASE.
      IF UPD_ZIRD_P_SCHEMES NE SPACE.
        CALL FUNCTION 'CHANGEDOCUMENT_SINGLE_CASE'
          EXPORTING
            TABLENAME              = 'ZIRD_P_SCHEMES'
            WORKAREA_OLD           = O_ZIRD_P_SCHEMES
            WORKAREA_NEW           = N_ZIRD_P_SCHEMES
            CHANGE_INDICATOR       = UPD_ZIRD_P_SCHEMES
            DOCU_DELETE            = 'X'
          EXCEPTIONS
            NAMETAB_ERROR          = 1
            OPEN_MISSING           = 2
            POSITION_INSERT_FAILED = 3
            OTHERS                 = 4.
        CASE SY-SUBRC.
          WHEN 0.                                "OK.
          WHEN 1. MESSAGE A600 WITH 'NAMETAB-ERROR'.
          WHEN 2. MESSAGE A600 WITH 'OPEN MISSING'.
          WHEN 3. MESSAGE A600 WITH 'INSERT ERROR'.
          WHEN 4. MESSAGE A600 WITH 'SINGLE ERROR'.
        ENDCASE.
      ENDIF.
      CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
        EXPORTING
          OBJECTCLASS             = 'ZSCHEMES'
          OBJECTID                = OBJECTID
          DATE_OF_CHANGE          = UDATE
          TIME_OF_CHANGE          = UTIME
          TCODE                   = TCODE
          USERNAME                = USERNAME
          OBJECT_CHANGE_INDICATOR = OBJECT_CHANGE_INDICATOR
          NO_CHANGE_POINTERS      = NO_CHANGE_POINTERS
        EXCEPTIONS
          HEADER_INSERT_FAILED    = 1
          OBJECT_INVALID          = 2
          OPEN_MISSING            = 3
          NO_POSITION_INSERTED    = 4
          OTHERS                  = 5.
      CASE SY-SUBRC.
        WHEN 0.                                   "OK.
        WHEN 1. MESSAGE A600 WITH 'INSERT HEADER FAILED'.
        WHEN 2. MESSAGE A600 WITH 'OBJECT INVALID'.
        WHEN 3. MESSAGE A600 WITH 'OPEN MISSING'.
       WHEN 4. MESSAGE A600 WITH 'NO_POSITION_INSERTED'.
    do not abort, if positions are not inserted!!!
        WHEN 5. MESSAGE A600 WITH 'CLOSE ERROR'.
      ENDCASE.
    Reward me points if you found it useful.
    Thanks
    Abhishek Raj.

  • How to use Custom Tags for Theme and Base Map Definitions

    In Mapviewer documentation I've found the following new feature:
    The XML definition of a theme or base map now supports application-specific
    attribute tags. You can use the Custom Tags option in the theme definition in Map
    Builder to specify tags and their values, which can be interpreted by your application
    but are ignored by MapViewer itself.
    I'm able to define a custom tag in Mapbuilder, but how can I use it in my Application?
    Thanks.

    As he said, you have to use as Platform service to create adapter in OIM.
    tcUserOperationsIntf service = Platform.getService(Thor.API.Operations.tcUserOperationsIntf.class);
    HashMap<String,String> searchmap=new HashMap<String,String>();
    searchmap.put("Users.User ID", userID);
    tcResultSet searchset=service.findAllUsers(searchmap);

  • How to use custom thumbnail for video

    Hi guys,
    Wonder if there is a way to embed a custom picture file to become the thumbnail of your video but not be part of the video when it's playing.
    Just a picture with whatever text you want on it?
    thanks.

    Adobe's dvd maker program Encore allows you to choose a poster frame for their video buttons that display in your Encore menus
    maybe that is what you are thinking of?
    and yes, I would like to choose the custom thumbnail for video as you too

  • How to use bluetooth function for the Mega player(522BT)

    Hello all!!!!!
        Pls ,help me!
    I am from Myanmar.I can't use Mega player(522BT)for PC to the bluetooth function of this device.
    That is ,we can only use the phone to this device.
    I want to know.   Pls,help me.
                             With Regards,
                                    Thwe Thwe(Myanmar)

    Hi,
    You could do something like this,
    http://www.codersrevolution.com/index.cfm/2008/10/14/Flex-Charting-Format-your-X-and-Y-Axi s
    hope it helps!
    Regards ,
    Bhavika

Maybe you are looking for

  • MacBook Air 11-inch, Mid 2013 won't boot with external USB keyboard

    Hello, Just bought a MacBook Air 11-inch, Mid 2013 (8GB, i7, 512GB SSD) today. All available software updates are installed (OS X 10.8.4 (12E3067)). Also have a Macbook Pro Retina. If I connect a external USB keyboard (Kinesis Advantage Pro USB) to t

  • Wasn't there an option to convert songs to 128kbs for shuffles?

    I must be losing my mind! Wasn't there an option to convert songs to 128kbs for shuffles in earlier versions of itunes? Before 7.x?

  • Deleted preferred networks reappear

    Upon installing Mavericks, and turning on iCloud keychain, I noticed that all wifi networks I had ever connected to appeared in the preferred network list on my Macbook. There were quite a few I naturally wanted to delete, so I removed them. Also my

  • 4520s Won't Open 3TB Seagate External Hard Drive

    I think I have a Hardware Issue:  I have a HP Probook 4520s laptop running windows 7 Prof. 32Bit and a Seagate 3TB external hard drive. When I plug in the Seagate, my laptop auto detects it and it shows up in device manager under disk drives named "S

  • Ipad-mini shows activation error

    Yesterday my ipad-mini shows activation error and it says that my device is not activated and i have to activate it on ipad-mini developer forum. Whats does that mean and how i resolve it