Changing tick labels

I have a slider with the initial major tick value as 50. I change the major ticks during runtime, but the label still remain as the default itself(that is 0.50,100). For eg, if i change the major tick to 20, i want the labels to change to 0,20,40..100. how can i do this?

Hi Doug,
For point 1, see this post:
PIE CHART Label
For point 2 - well, I don't think it is possible. Legend can only have column names, and it is not possible to change / assign the column names dynamically. Though it is possible to have dynamic parameters at other places in the graph, eg, the title, footnote, etc, but since the legend comes from column names in the data model, I don't think this is possible, unless you find a way to change the column names dynamically.
Navneet.

Similar Messages

  • JSlider: how to change tick label font?

    Hi,
    does anyone know how to change the tick labels font of a jSlider?
    Thanks for your help,
    Elke

    Just made this up, seems to work    Dictionary d = mySlider.getLabelTable();
        Enumeration e = d.elements();
        while (e.hasMoreElements()) {
          Object o = e.nextElement();
          if (o instanceof JComponent) ((JComponent)o).setFont(new Font("Dialog", 0, 9));
        }

  • Tick labels format in a dynamicaly generated graphic

    Hello all,
    I have a form in which the user select some parameters for the graphics.
    I have a grafic.ogd file which has 4 templates, parameters and procedures.
    Dependending on the selection in the form i drow the graphic dynamicaly with
    the following procedure:
    default_format='999,999,999,999';
    the_template := og_get_template(:template);
    qtype := OG_Sql_Qtype;
    qsource := :sqlquery;
    the_query := OG_Make_Query(Qtype, qsource);
    OG_Set_Name(the_query, 'q');
    --OG_Execute_Query(Query);
    /* set the name of the chart */
    emp_chart.chart_caob.name := 'achart';
    /* set the size of the plot frame */
    emp_chart.chart_caoc.frame.x := 1*OG_INCH;
    emp_chart.chart_caoc.frame.y := .4*OG_INCH;
    emp_chart.chart_caoc.frame.height := 3*OG_INCH;
    emp_chart.chart_caoc.frame.width := 3*OG_INCH;
    /* set the template and query to use */
    emp_chart.chart_caoc.template := the_template;
    emp_chart.chart_caoc.query := the_query;
    /* set the masks for all the above */
    emp_chart.chart_caob.mask := OG_NAME_GENERICA;
    emp_chart.chart_caog.mask := OG_NONE_GROUPA;
    emp_chart.chart_caoc.mask := OG_ALL_CHARTA;
    -- emp_chart.chart_caoc.mask := OG_TITLE_CHARTA;
    --emp_chart.chart_caoc.title := 'bla bla blA';
    /* make the chart */
    the_chart := og_make(emp_chart);
    indep_field.field_type := OG_INDEPENDENT;
    indep_field.colname := returnalias(1,:coloane);
    indep_field.ftname := 'field_tmp';
    /* insert it into the chart in the 0th position */
    og_insert_field(the_chart, indep_field, 0);
    i:=2;
    while i<=:nrcol loop
    dep_field.field_type := OG_DEPENDENT;
    dep_field.colname := returnalias(i,:coloane);
    dep_field.ftname := 'field_tmp';
    /* insert it into the chart in the last position */
    og_insert_field(the_chart, dep_field, OG_LAST);
    i:=i+1;
    end loop;
    /* execute the query for the first time */
    og_execute_query(the_query);
    settitle(:titlu);
    if length(:axaox) <> 0 then
    setxlabel(:axaox);
    end if;
    if length(:axaoy) <> 0 then
    setylabel(:axaoy);
    end if;
    if to_number(:maxs) <> 0 or to_number(:step) <> 0 then
    setscale(to_number(:mins), to_number(:step), to_number(:maxs));
    end if;
    /*acilea stabilim formatul de ticklabel*/
    axis_y := og_get_axis(the_template, og_y1_axis);
    axis_x := og_get_axis(the_template, og_x_axis);
    og_set_disc_numfmt(axis_y, default_format);
    og_set_disc_numfmt(axis_x, default_format);
    /* update the chart so the new field and query
    ** information will take effect */
    og_update_chart(the_chart, OG_ALL_CHUPDA);
    On the axis i have 500,000 and 1,000,000 tick labels. 500,000 is shown ok
    but 1,000,000 is something like that ########.
    It looks like og_set_disc_numfmt is not executed.
    If someone knows what's wrong please tell me!
    Thanx
    Costel Cirnmaru
    3S Computers & Communication

    Hello David,
    The reason for this problem is probably related to the FlateDecode compression described  in SAP Note 843480 (PDF conversion: Compression of bitmaps and TrueType fonts).
    Try switching off the usage of FlateDecode compression again via report RSTXPDF3 as described in Note #843480.
    It is a little confusing. The option 'FLATE_COMPR_OFF' needs to be set to 'On' to turn off the FlateDecode compression.
    To set this run as follows:
       se38 -> RSTXPDF3 -> enter 'FLATE_COMPR_OFF' in the 'Name' field
             -> Select 'Change Settings' radio button
    You will get a pop-up 'Do not use flat compression'.
    Select the 'on' button.
    After this create a new PDF and check if the problem is resovled.
    Regards,
    Aidan

  • Changing tick colour on JSliders. any clues?

    Hi there,
    Is there a way to change the colour of the tick labels or colours on a JSlider?
    Cheers,
    Hugh

    Sorry, I thought you were referring to just the basic JLabel. But wait a minute -- the slider labels are JLabels:
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    public class SliderTest {
        public static void main(String[] args) {
            JSlider s = new JSlider();
            s.setMajorTickSpacing(10);
            s.setPaintTicks(true);
            s.setPaintLabels(true);
            Random rnd = new Random();
            Dictionary labs = s.getLabelTable();
            for (Enumeration keys = labs.keys(); keys.hasMoreElements(); ) {
                Color clr = new Color(rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));
                Object key = keys.nextElement();
                ((Component) labs.get(key)).setForeground(clr);
            JFrame f = new JFrame("SliderTest");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(s);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }By the way, I have poked around in the source code for javax.swing.plaf.basic.basicSliderUI, like its
    paintLabels method, and no joy -- there doesn't seem to be a UIManager key involved.

  • Resizing tick labels on a lineChart?

    I have an application that makes heavy use of lineCharts. It would nice if, when expanding the JavaFX scene window, the ticklabels on my chart also expanded - they don't. I don't see any way in the documentation of making this happen - or am I missing something?
    edited to add -
    and failing that, is there a way to tell when my lineChart - or it's stage - is resized? I could use that information to achieve my desired result.
    Edited by: 953258 on Sep 27, 2012 2:41 PM

    Listen to the charts layoutBounds property and size the tick label font when the bounds change.
    http://docs.oracle.com/javafx/2/api/javafx/scene/chart/Axis.html#tickLabelFontProperty
    http://docs.oracle.com/javafx/2/api/javafx/scene/Node.html#layoutBoundsProperty

  • Dynamic action to change item label

    Hi All,
    How can I use dynamic action to change item label?
    thanks.

    Hi,
    fac586 wrote:
    Why and when do you want to dynamically change a label? This would have a detrimental effect on usability and accessibility.
    Consider a visually impaired user of your app using a screen reader. The screen reader identifies a checkbox labelled "Free Cake". They like the sound of that, so navigate to the checkbox to tick it. Your dynamic action fires when it gets focus and changes the label to "Give all my money to Fadi".I think this would confuse even a sighted user! I don't know the OP full requirements or constraints but I can bet the OP does not want to change the item label when the user navigates to it.
    I have to say that I don't like forms that change as the user enters data. I think that enabling and disabling fields is OK, but not hiding or showing or changing labels or field types.
    In any case, if you have to do it, an alternative to changing an item label is to have 2 separate items: one hidden and one shown. Then, using some triggering event, you can hide one and show the other.
    Because there are built-in dynamic actions to hide and show items but not to change item labels, one might thing that one approach is more acceptable than the other. However, if those 2 separate items occupy the same spot in the page, from a user point of view (or screen reader for that matter) I don't see any difference between those two approaches (in my view, both bad practices.)
    And because of its lots of nested tables, lack of headings etc, apex pages are not screen-reader friendly anyway... This is an interesting plugin for firefox that shows how your page would be read by a screen reader:
    http://www.standards-schmandards.com/projects/fangs/
    fac586 wrote:
    You can use an "execute javascript" dynamic action type to do it.Yes, you can. But should you?I don't know. As I mentioned above, I don't like the idea. However, as I also mentioned above, I don't know anything about the OP constraints or requirements.

  • Changing the label of TOC to another language in Captivate 7

    I am using Captivate 7 and created a number of English Projects.  I have translated these English files to French (by exporting/importing captions), changed the voices, etc, etc.  All is now in French in the project except the title of the Table of Contents when enabled.  I have already changed the labels in the table of contents for things such as Slide Title, Duration, etc by creating the TOCStrings.ini file and copying it to my root folder - that works as described in other posts/blogs. However, I am unable to change the Heading/Label of "Table of Contents" to French. 
    Is the TOCStrings.ini file the place to change the label of Table of Contents to French?  If so, what string would I add to the file to make this change happen?
    Can someone please let me know where the change can be made (if not in the TOCStrings.ini) or if the change is even possible? 
    Thank you!

    If you enter data in the Info fields of the TOC, the indicator 'Table of Contents' will automatically be replaced by the Title field.

  • Changing the label of a field in SAP GUI

    Hello SAP Guys,
    I would like to change the label of a field in SAP GUI.
    I already did it internally because for that field the Shor Text of the label changed:
    I went to SE11, and wrote down the appropriate data element, through Translation I changed the entries of SCRTEXT_L, SCRTEXT_M and SCRTEXT_S and activated this change after saving.
    It is very strange that after making sure that the
    Short Text of that field was changed, I went to trx BP and I could see that the label didn´t change.
    I´ll appreciate any help you can give me,
    Regards,
    Efrain

    Hi Efrain,
    Can you tell me in which screen did you make the screen.
    Moreover the changes are not reflected immediately.
    What you can try is to create a new record of the transaction in which you changed the label and save the recore. After this try to close the session and reopen the transaction and this should work.
    The reason is the label on the screen are not picked up from the data element everytime but from buffer. So when you create a record this updates the database table entry and can also refresh the buffer.
    I had the same problem in BP transaction and the above solution worked.
    Let me know if this helps.
    Jash.

  • How to change the label of a total column in pivot view

    Hi
    Is there a way to change the label of the column created by analytics when calculated row based totals? Currently, it is same as the measure label to be summed.
    Thanks

    Hi
    Thanks for your help, actually that option works for the total displayed as the latest row, I mean the label for the total row. However, for the total column, the name stays as the same as the measure label.
    Can you further help me on the issue?
    Thanks

  • When printing mailing labels from Contacts how do I change the label size?

    I want to print mutliple labels from a group in Contacts. I can print 20 labels per page but I want to print 14. I have tried every option in the pop up window but nothing lets me change the label size, 

    Hi 786menzies,
    Welcome to the HP Support forums.  I understand that your print jobs from Photosmart 5520 seems very small.
    The font size is controlled by the software program that the document was created in, for example any Microsoft Word document that you send to the printer the font size would have been chosen in Microsoft Word.  I've included two different documents on how to change the print settings; one for Mac and one for Windows 8.  These documents will show you the process on changing print settings if not the actual steps as you may not be using one of the operating systems mentioned.
    Changing Print Settings in Mac OS X
    Changing Print Settings in Windows 8
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How to change a labels text which created at runtime?

    hi,
    i am creating label controls in runtime dynamically and adding them to a group component. this group component is in another custom component and i have lots of custom comp. in my app.
    my question is how can access (via id) and change a labels text whict created at runtime?
    i can change like this but i am setting id's and want to reach via id.
    var lbl:mx.controls.Label = mx.controls.Label(subMenu5.group_subMenu5.getElementAt(1));
    lbl.text = "good job";
    thank you, have a good day.

    First off, if you are already using a Spark Group, I would suggest you use a Spark Label instead of an MX Label. If you want to reference the Labels from the group, loop through the group's elements and check the if the element id matches the Label you want to assign text to.
    var lbl:Label;
    var n:int = myGroup.numElements;
    for (var i:int = 0; i < n; i++)
         lbl = myGroup.getElementAt(i) as Label;
         if (lbl && lbl.id == "myLabel")
              lbl.text = "newText";

  • How can I change the label of iCloud mail in Mail?

    I have an iPhone, where the iCloud account in mail is shown as "Name @ iCloud". I've just been setting up a new iPad Air 2 and there in Mail the label shows just as "iCloud". How can I change that label? I've been digging around but haven't found a way.

    Most of us just use names for the folders which seems to work fine unless you're not alphabetically inclined.
    It really doesn't make much difference who else may want a feature like that, it still isn't going to magically appear. If you wish to submit it as a feature request you can do so here: Feedback.
    There aqre third-party programs that may provide a similar function although not colors: DockStar and Mail Badger.

  • How to Change the label names in crmd_order

    HI Experts
    in CRMD_order transaction i want to change the lable names to the following Standard labels is it possible?..
    the standard label names are
    Standard Label name proposed label name
    Sold to Party = XXXXXXXX
    Requester = YYYYYYY
    Change Manager = AAAAAA
    Change Advisory Board= BBBBBBB
    I have found one link in sdn,To change the label Names But I am not able to find data element name.
    Kindly provide me  your valuable guidance on the above issue.
    Thanks in advance
    Thanks & Regards
    Anand

    Hi,
    it looks like you want to change the names of the partner functions.
    You can do this in the customizing, for example using SPROScenario Specific SettingsService Desk-Service Desk--Partner Determination Procedure (This one works for both ChaRM & Service Desk).
    The standard procedure in your case would be SDCR0001.
    The recommended way is to define your own Z partner functions and assign them to your own Z Partner Determination Procedure, which you have to replace in the configuration of your transaction type.
    Regards,
    Christoph

  • Views in MM03, how can I add fields and changes fields labels

    Hi !!
      I need to change some labels that appear on Sales: Sales Org  2 (view on MM03, MM02..MM01)...
       Im not sure what I can do this.. Im an ABAP Programmer(beginner) and I know how I can change labels of fields in programs(reports) that I did...but in This case. I don't know what I can do...
       example: when I enter on MM03..I select differents views(including Sales: Sales Org  2), later I specify  sales Org and distribution Channel (I need to specify this information for see these fields on this TAB Sales: Sales Org  2).
      When I access in tab: Sales: Sales Org  2, I can see one Group that it's called
    Material Groups that contain two fields called MVKE.MVGR1 AND MVKE.MVGR5... I saw in the screen these fields with the description from each field..example:  Material Group 1 (MVKE.MVGR1 )... I would like to know :
    1.- How Can I change the description Material Group 1 (in this screen) by other description (example: material test)...
    2.- How can I add more fields in this group...example..If I need to add MVKE.MVGR2 ..??
      I will appreciate your help!!! 
      I will give you points for your answer
    Alice

    Hi Alice,
    And do I need to change in this section too.... SPRO -> SAP Reference IMG -> Logistics general -> Material master -> configuring the material master -> ...
    If I need to add some values???
    After you made label changes on custom screen then you need to go configuration (Define Structure of Data Screens for Each Screen Sequence) to replace the standard SAP screen with custom screen. You can also do testing for custom subscreen as well.  Give it try.
    And how about If I move this screen??...is it dangerous??...or how can I know if this screen affect other section of programs?
    I do not understand your questions. Can you elaborate more?
    Regards,
    Ferry Lianto

  • How to change a label of User Type in OIM 11g

    How to change a label of User Type in OIM 11g. If we have to change label of First Name or Last name then we can change in User.xml and some in resource properties file but what is the procedure to change for User Type.

    Follow this: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/uicust.htm#BABDEGFE
    i .Copy the $OIM_ORACLE_HOME/server/apps/oim.ear/admin.war/WEB-INF/lib/IdentityTaskFlow.jar to a local work directory, unzip it and locate UserAttributes.properties at /oracle/iam/resources/IdentityTaskFlow.
    ii. Update the userAttributes.properties file in the IdentityTaskFlow.jar/oracle/iam/resources/IdentityTaskFlow and create a new IdentityTaskFlow.jar
    iii. Copy the updated IdentityTaskFlow.jar to $OIM_ORACLE_HOME/ server/apps/oim.ear/admin.war/WEB-INF/lib/
    For "User Type", try putting the property name as "user_type" or try "role". One should work.
    HTH,
    BB

Maybe you are looking for

  • ATG 10.1.2, Endeca guided search: Implementing search field

    My team is working on implementing an application with ATG Commerce 10.1.2 and Endeca Guided Search 3.1.1, but no Endeca Experience Manager. We understand that in a keyword search HTTP request that gets sent from ATG to Endeca, the following URI para

  • Transaction Codes used for clearing Open Items

    Hi Gurus, I want to know all the T.Codes used for clearing normal transactions and Open Items. Please tell me when to use which code (viz., while clearing vendors, customers, WH Tax, etc) Your earliest reply will be of great help. and naturally i wil

  • Using Macbook On 1080p TV

    I am getting a Sharp 42" 1080p Television. I bought a mini-dvi to dvi adapter. I am about to buy a dvi to hdmi cable. Will the quality be amazing with this combination with true 1080p HD?

  • Mini DVR Records in .AVI and .MOV Format-white screen

    I am a private investigator, and have used a mac for years. I purchased my new MacBook 2 weeks ago for the purpose of uploading the video to my mac, and burning the video to DVD for my clients. I just purchased a JS208 Mini DVR and Mini Spy Button Ca

  • Daily per diem handling

    Hi friends, My per diem requirements are as below: Example scenario: Travel from Singapore >Bangkok>Japan>Singapore Employee travels from Singapore on 17.12.2009 and arrives in Bangkok on the same day. Flies from Bangkok on 18.12.2009 and arrives in