Changing Axis Labels

Hi,
Is there any way to change the Axis labels on runtime? Becuase we have designed a chart page where SQL statements can be created dynamically. Therefore Axis labels should also be changed. But i couldnt figure it out how to do...
Thanks,
Osman...

Hi,
You can create hidden item that value you set dynamically.
Then use item like below on Chart attributes Axes Settings
&Px_MY_ITEM.Hope this helps and was what you looking for
Br, Jari

Similar Messages

  • How do i change axis label object type from label to text? (to allow wrapping)

    In the example of a barChart, how does one change the LABEL type from "Label" to "Text"?
    I am trying to allow for long labels to wrap (ie. multi-line labels), but the default object type of labels is "Label" (which are single-line only).
    I have been researching this issue all day, and have enountered a similar situation for changing the Legend component labels where a method override is implemented in a custom itemRenderer.
    But I have not been able to figure out how to do this for an Axis label.
    Any help would be greatly appreciated!  
    J

    Yes, thank you.  I am aware of the AxisRenderer.... but I'm not sure how to implement it to change the label type from "Label" to "Text" to allow for wrapping.
    I guess what I'm looking for is a good example....  

  • Changing axis labels on Excel XY Graph

    Hello,
    I'm trying to generate a report using the Report Generation Tollkit, i was following the steps indicated in the NI report tutorial that helped me a lot.
    The problem is that i could not change the scaling of the X axis which is giving me always numbers from 1 to 11 then zeros after while these numbers need to be under date format (ex 10/04/2013), i'll appreciate the help if someone knows how to fix this.
    Thank you,
    MGarry
    Attachments:
    Graph.PNG ‏8 KB
    diagram.PNG ‏13 KB

    Hi MGarry,
    It seems that excel has a special way of representing the date/time format. See this: http://digital.ni.com/public.nsf/allkb/7AAFFD177BBB33CC86256E91000B1E32
    So we know how it is represented in Excel, but the issue is telling excel that those numbers are meant to be interpreted as date/time format not regular decimal numbers. Have you managed to do this in excel manually? (without using the report generation toolkit). If so you might be able to make a skeleton of the graph and then update it using the following excel update graph VI (http://zone.ni.com/reference/en-XX/help/370274E-01/lvoffice/excel_update_graph/). You can also add row headers and column headers. I would check to see if its possible manually first and we can go from there.
    Regards,
    Basil
    Applications Engineering
    National Instruments

  • PowerView; - How do I change the name of the Axis Labels please

    Hi,
    I am preparing a demonstration of PowerView. How do I change the layout of the PowerView report please, e.g. change the name of the Axis Labels.
    Thanks in advance,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Go to the "Sharing" Preference Pane in "System Preferences" and there is teh field at the top where you can enter/change your computer name.

  • How do I change time axis labels?

    I have a few data plots that show some parameter on the y-axis versus time on the x-axis.  The data spans several months (sometimes years).  Currently my x-axis shows date labels for the left and right side of the plot and one value inbetween (happens to be 12-31-09).  How can I set the axis format to show a label for each month or each major grid interval?  Anything would be an improvement over just one date label.
    Thanks

    Try right-clicking directly on the axis label and select your desired style.  You must click right on the label text or you will not get the correct pop-up menu.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

  • Changing legend labels in Oracle Graphics 6

    Hello,
    i am currently using Oracle Graphics to create barcharts for my reports. My problem is, that i want to change the label used for the shown bars via a parameter. Changing the labels of the X- and Y- axis is no problem with PL/SQL but it seems that the only way to change the legend labels is by using "AS" in the query (e.g. select a_column as LABEL from ...). I really need to change it by parameter.
    thx for any help.

    Post Author: jsanzone
    CA Forum: Publishing
    Nym,
    The only way that I've been able to control the name of a label in regards to graphing is to use the Variable Editor and create a variable off of the column, for instance:
    The name of the column from the database is call "Black_Catalog". so I create a variable called "The Black Catalog" and in the formula: =[Black_Catalog]
    Then in the graph I replace the field that is called =[Black_Catalog] with my new field.  When the legen displays it will show "The Black Catalog".

  • Y Axis label color inherits Pen color and not the default Label color.

    Hi,
    How do I enforce my Y Axis Label to taken the default color specified in the iChart Y-Axis Label Color property instead of picking it from the Pen color selected from the legend? I have a Y-Axis Label called "Total Stock", I can very well change the Label text using method
    document.TestChart.getChartObject().setYAxisLabel("Label from code");
    But when I use a similar
    document.TestChart.getChartObject().setYAxisLabelColor(Color);
    property, I dont see the color change on the screen. But when I get the color using a getYAxisLabelColor() method , the specified input Color is set. My Label in the Y-Axis, always inherits the Pen color of the selected Legend Item, by default the first Item color on Page Load.
    Settings done in the iChart:
    Use Selected Pen for label : Unchecked
    Y Axis Label Color: #000000
    Y Axis Label : Total Stock
    Show Y Axis Label: Checked.
    I appreciate your help,
    Ajitha

    Jeremy,
    I tried the method you mentioned...
    document.TestChart.getChartObject().setYAxisLabelColor(document.TestChart.createColor("#000000"));
    But I still dont see a change in the Label color.
    Another finding is, when I try to alert the Label color on load of the page or during the creation of the applet, I see the label color on the alert is not the pen1color but the default Label color that is set in the display template. I assume that the legend's default selection, overwrites the Label color with the first pen color, but I could not get it with the getYAxisLabelColor() method, even though I see it on the screen.
    Thanks!
    Ajitha

  • Duplicate y-axis labels on charts for small data values -- is this a bug?

    Hi,
    I have several charts where the data values are small (1,2,3). The y-axis labels are duplicated for these charts. For example, if the data value was 2 the y-axis labels display as 0 1 1 1 2 2 2. I know that I can manually set the maximum y-axis value and also set the segments on the chart to eliminate the duplicate values. My issue is that I have over 100 charts in my dashboard and I have to manually set the values each month, and then in the next month when the data values are larger I have to remove the maximum y-axis value so the y-axis value is dynamically created. Is this a known bug within the software? Is there any fix for this besides what I'm already doing?
    Please let me know if anyone else has seen this issue and if this is a bug, or if this has been corrected in any fix packs.
    Thanks!!

    Hi Jim,
    I have data for three months in the data range A1 to B3 as given below -
    Jan - 1
    Feb - 2
    Mar - 3
    In Cell D1 write a formula =MAX(B1:B3)+1 (This will give you value 4)
    Go to Chart property -> Behavior -> Scale -> Manual (Y) Axis ->  Minimum 0 and Maximum will be pointing to cell D1.
    Go to Chart property -> Behavior -> Scale -> Division -> Size of Division 1 and Minor Divisions 1
    This will give you Y Axis values as 0,1,2,3,4
    Now change value of any month to 5.  Now value in D1 would become 6 and Y-Axis would change to 0,2,4,6.
    Hope this helps.
    Rashmi
    Edited by: RashmiG on Jan 8, 2010 4:45 PM

  • Keynote 3.0: axis labels fixed?

    I'm thinking whether or not to upgrade to Keynote 3.0. Can anyone tell me if the problem with axes on graphs has been fixed. In v1.0 and v2.0 Apple seemed to think that graphs don't need labels on axes and that automatic axes are cool - when in fact it means you look pretty amateur in front of any audience who actually worry about accuracy of data.
    Specifically, when creating a graph, can you:
    a. specify axis labels (eg. "Income per capita"
    b. Manually set how many value labels appear and in what range -- in previous versions, without a lot of tweaking, you get value labels as 10.1213129874876 or something ridiculous for automatically created graphs.
    Can anyone tell me if this has changed at all in v3.0?

    Sorry no, this isn't it. If you set the min & max for value labels, Keynote simply divides the number by the number of labels and then produces labels with x number of decimal places -- which looks (and is) pretty stupid (or I do if there's something I'm missing). Keynote assumes that all axes will be a nice round number like 100, and cannot cope with maximum numbers like 0.65 or somehing. In these cases. You have to then adjust the number of labels and/or min max to get it to work -- very, very, very inflexible.
    Also, adding axis labels by hand, as I said above, is a pain.
    As for vertical (Japanese) text, I find it easier in Keynote 2 than in Powerpoint -- you simply drag a text box until it's only 1 charcter wide. But, I agree, it isn't elegant. I also understand the need for occasional furigana, but I find this is better in notes and forces me to use my kanji!
    Do you use Keynote in a Japanese system environment (with Japanese menus?). I buy my software in Japan, but always have it set to English. Is there any difference do you know?
    I cannot tell whether it has changed, as I never used
    this functionality in KN 2, but currently you can for
    each graph set "Value Axis Format": Minimum, Maximum
    and Step, and that seems to be what you ask for.
    When it comes to axis labels, I don't think it can be
    automatic, but you can always add a separate Text Box
    with the text you want.
    (As you are in Japan, I should perhaps add that you
    still cannot use vertical script or add furigana to
    text. We were many who thought that was an obvious
    thing for a new version, but it did not come true.)

  • X axis labels. How to reduce information.

    Im having trouble finding how to reduce the number of x axis labels, (time), My graph is of temperature every 4 minutes over about 10 hours. I would like to have the x axis in hours, but Numbers seems to insist on labeling all 250 points. Is there a way to get Numbers to place x axis data labels only at every 25 data points? The Numbers Users Guide does not seem to address the problem.

    If the intervals between x-values are the same, then a line graph will plot the data in the same fashion with correct distance between values. If the x-values have inconsistent intervals, then a line plot will not display the data properly.
    But it appears that I did not look at the graphs close enough as X-Y Plots can set various intervals between x-axis values while Line Plots cannot change the x-axis intervals (but can change the y-axis interval.)
    Here's a screen shot:
    Regards,

  • Flex Column Chart X-axis Label position

    Hello,
    I have a Column Chart and am wanting to align the X-axis labels on top of each Column. Is there a way to achieve this?
    Can we change the  label's default position? I know there is a "rotation" property which rotates the labels but i want to change the label postion.
    Any help/pointers is highly appreciated.
    Thanks.

    Been diging throught he charts source to figure out if there is a way of doing what I wanted, and appartntly there is (well - for the most part). For anyone else interested there is a property called alignLabelsToInterval for the LinearAxis class. This is not documented but it is a public variable - in the code ( http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/charts/src/m x/charts/LinearAxis.as ):
    * @private
    public function get alignLabelsToInterval():Boolean
    return _alignLabelsToInterval;
    * @private
    public function set alignLabelsToInterval(value:Boolean):void
    if (value != _alignLabelsToInterval)
    _alignLabelsToInterval = value;
    invalidateCache();
    dispatchEvent(new Event("mappingChange"));
    dispatchEvent(new Event("axisChange"));
    Setting this parameter to false allows the base label to stay on the origin of the chart. Then you need to compute a suitable interval for the axis to get the labels you want.
    Phew!
    Allan

  • Pivot chart vertical axis label show percentage

    Hi All,
    I have a pivot chart showing percentage of the row. the vertical axis label can only show 0, 1, 2; I change it to specify value with 'Minimum' 0 and 'Maximum' 1.
    Wondering how to show vertical axis label with minimum 0% and maximum 100%, instead of 0 and 1.
    Thank you,
    Ling

    Hi lets try once like this,
    In Pivot table go to edit view-Position-Graph only-Edit graph properties-click on scale tab-Axis Limits-in drop down list select specify. Here u can select minimum and maximum scale.
    Please mark if it help you.....

  • Chart Axis: Label Renderer pixel width

    Am using custom label renderer for Chart Axis labels.
    CustomLabelRenderer extends label
    override   public function set data(value:Object):void
     if(value is AxisLabel){
    dataValue = String(value.text);
    else{
    dataValue = String(value);
    I would like to get the Width of the Label component in PIXELS on runtime.
    Can you please tell me how I can get the pixel width of the labels that gets updated when user changes the screen resolution.
    Please let me know ASAP.
    Thanks

    See this example and the related thread:
    http://apex.oracle.com/pls/otn/f?p=31517:222
    Basically, you need to customize the chart XML. That is quite easy to do.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Axis label, Legend and Title

    Hi,
    I am new to DIAdem, I have been struggling for too long so I have decided to ask for some help, I hope someone can help me.
    I am writing a script to plot a graph and add axis labels, Legend and Title.
    So far I have just been able to draw the graph but no success with the rest. I have found a few answers to my question but none of them work, I don't know why. I am using Diadem 2012 and this is my code:
    Can someone tell me how I make the changes I need?
    Thanks 
    Call PicDelete() 'Deletes all objects. Without this I won't show the curve but with it it deletes the Picloaded previously
    Call GraphObjNew("2D-Axis","New_2DAxis") 'Creates a new 2D axis system
    Call GraphObjOpen("New_2DAxis") 'Opens the axis object
    D2AxisTop =25 'Sets the position
    D2AxisBottom =30
    D2AxisLeft =20
    D2AxisRight =30
    Call GraphObjNew("2D-Curve","New_Curve") 'Creates a new curve
    Call GraphObjOpen("New_Curve") 'Opens the curve object
    D2CCHNX ="Y_Accel" 'Defines the x-channel
    D2CCHNY ="Strg_Angle" 'Defines the y-channel
    D2CurveColor ="red" 'Defines the curve color
    Call GraphObjClose("New_Curve") 'Closes the curve object
    Call GraphObjClose("New_2DAxis") 'Closes the axis object
    Call Picupdate

    Hi Leillo
    If you are using DIAdem 2012 you should use the new API. To get a starting point create the layout as you like and then open the corresponding dialog box and press CTRL-Shift-C. Then you have a lot of code in your clipboard, which you can past in you script editor and edit. The contents of the clipboard depends of the dialog box you opened.
    You can also select an object in Report and press CTRL-Shift-C
    For the new API you will also find tons of small scripts in the help, which shows you how to create labels, legend and titles:
    http://zone.ni.com/reference/en-XX/help/370858K-01/reportapi/objects/report_objects_irepaxislabelint...
    http://zone.ni.com/reference/en-XX/help/370858K-01/reportapi/objects/report_objects_irepcurvelegendi...
    Hope this helps
    Winfried

Maybe you are looking for

  • HT1977 How many times can you download an app?

    I have purchased an app from itunes store, my family has alot of devices and i want that app on all of them. we upgrade alot so how many times can you upload an app? Unlimited?

  • Applescript to add +1 to USA phone numbers?

    Can some force for good help me out with an Applescript or another solution to my phone number problem? When I use my phone abroad, my USA numbers don't work because they need to be expressed as +1 ### ###-#### to be dialed properly. I'm lousy at App

  • Adf swing form login problem (Frank, look at this please)

    Hi All. I'm using JDeveloper 10.1.3 Can anybody please give me a clue on how to create a simple stand alone adf swing form with a login dialog and the oracle jaas authentication? For me this kind af appllications works well only in design time :(. Wh

  • What's with the imac wireless keyboard?? New batteries won't work!

    What's with the imac wireless keyboard?? New batteries won't work!

  • Multi planning area

    Hi Gurus, I have no access to the system at the moment. Can I create a new multiplanning area using an existing cube used in another multiplanning area already ? Please advise. Thanks Sanjay