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

Similar Messages

  • Rename cursor axis label for a XY Graph

    Hello,
      I am using Labview 8.2 and would like to relabel the axis of the cursor legend for a XY graph. Presently the cursor lengend contains X (for the X axis) and Y for the (Y axis). I would like to be able to rename the labels of the X and Y axis of the cursor lengend to give the user a more accurate description of the axis labels.
    Regards,
    Kaspar
    Solved!
    Go to Solution.

    The changes that were made changed the names of the cursors, not the name of the X and Y axis. Think of it this way suppose that I have a X Y graph of Frequency (on the X axis) and Amplitude (on the Y axis). I create a cursor on the graph and move it around the waveform to examine the characterictics of the signal. When I move the cursor I would like the see the frequency and amplitude where the cursor is at on the signal. Right now the user has to remember (not to difficult) to figure out that the X axis is frequency and the Y axis is amplitude.
      So I would like to be able to rename the header of the cursor location from X to Frequency and Y to Amplitude.
    Regards,
    Kaspar

  • 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

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

  • Stacked bar chart with custom x axis labels

    Is there a way to build this simple chart in labview that I did in Excel?  I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set. 
    Attachments:
    Excel.JPG ‏33 KB

    Hi id,
    Thank you for your response. I hope you are doing well.
    There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
    How Can I Customize the X-Axis Labels On My LabVIEW Graph/Chart So They Appear Vertically?
    http://digital.ni.com/public.nsf/allkb/1F7C1B089E4​5908E86256C8C0051894A?OpenDocument
    Let me know if these examples help.
    Best regards,
    Anna L
    Applications Engineer
    National Instruments

  • Axis labels with clusters of stacked columns

    I've created a ColumnChart that contains clusters of stacked columns.  Each of the 6 clusters contains 3 stacked columns.
    The ColumnChart creates the chart nicely (thanks to the dataFunction property), but the xAxis only displays the cluster label (so, "Cluster 1", or "Cluster 2", etc.).  That means the only way to tell which data set you're looking at, you have to mouse over the data to get the datatip to show up.
    Using the labelFunction of the Category axis lets me output each of the dataset names along with the cluster set name, but I'm unable to center the dataset names below their respective datasets because the labelFunction just returns a single string for the cluster (as oppose to a string for each of the stacked columns within the cluster).
    Is there a way to get an xAxis label for each of the stacked bars?  I've included the sample code below.  The labelFunction has been removed from this sample code because it wasn't working as I had hoped.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
         <mx:Script>
              <![CDATA[
                   import mx.charts.HitData;
                   import mx.charts.series.ColumnSeries;
                   import mx.charts.ChartItem;
                   import mx.charts.chartClasses.Series;
                   import mx.messaging.AbstractConsumer;
                   import mx.collections.ArrayCollection;
                   [Bindable] private var _dataProvider:ArrayCollection = new ArrayCollection(
                                  label: 'Skill 1',
                                  fpr: {
                                       label: 'Fall progress report',
                                       E: 30,
                                       G: 40,
                                       S: 20,
                                       N: 10
                                  term1: {
                                       label: 'Term 1',
                                       E: 25,
                                       G: 35,
                                       S: 25,
                                       N: 15
                                  term2: {
                                       label: 'Term 2',
                                       E: 20,
                                       G: 45,
                                       S: 30,
                                       N: 5
                                  label: 'Skill 2',
                                  fpr: {
                                       label: 'Fall progress report',
                                       E: 30,
                                       G: 40,
                                       S: 20,
                                       N: 10
                                  term1: {
                                       label: 'Term 1',
                                       E: 25,
                                       G: 35,
                                       S: 25,
                                       N: 15
                                  term2: {
                                       label: 'Term 2',
                                       E: 20,
                                       G: 45,
                                       S: 30,
                                       N: 5
                   private function onDataTipFunction(hitData:HitData):String
                        var columnSeries:ColumnSeries = hitData.element as ColumnSeries;
                        if(columnSeries)
                             var dataTip:Array = new Array();
                             dataTip.push('<b>'+ hitData.item.label +'</b><br />');
                             dataTip.push('<b>'+ hitData.item[columnSeries.xField].label +'</b><br />');
                             dataTip.push(hitData.item[columnSeries.xField][columnSeries.yField] +'%');
                             return(dataTip.join(''));
                        return('');
                   private function onDataFunction(series:Series, item:Object, fieldName:String):Object
                        var columnSeries:ColumnSeries = series as ColumnSeries;
                        if(fieldName == 'xValue')
                             return(item.label);
                        }else if(fieldName == 'yValue')
                             return(item[columnSeries.xField][columnSeries.yField]);
                        return(null);
              ]]>
         </mx:Script>
         <mx:SolidColor id="fill1" color="0xF8B64F" />
         <mx:SolidColor id="fill2" color="0x4B9EF8" />
         <mx:SolidColor id="fill3" color="0x9ACC33" />
         <mx:SolidColor id="fill4" color="0xAD77D2" />
         <mx:Stroke id="stroke" color="0xFFFFFF" />
         <mx:ColumnChart id="columnChart" dataProvider="{_dataProvider}" dataTipFunction="onDataTipFunction" showDataTips="true">
              <mx:series>
                   <mx:ColumnSet type="clustered">
                        <mx:series>
                             <mx:ColumnSet type="100%" displayName="Fall progress report">
                                  <mx:series>
                                       <mx:ColumnSeries xField="fpr" yField="E" displayName="Excellent"
                                            dataFunction="onDataFunction"
                                            fill="{fill1}" stroke="{stroke}" />
                                       <mx:ColumnSeries xField="fpr" yField="G" displayName="Good"
                                            dataFunction="onDataFunction"
                                            fill="{fill2}" stroke="{stroke}" />
                                       <mx:ColumnSeries xField="fpr" yField="S" displayName="Satisfactory"
                                            dataFunction="onDataFunction"
                                            fill="{fill3}" stroke="{stroke}" />
                                       <mx:ColumnSeries xField="fpr" yField="N" displayName="Needs improvement"
                                            dataFunction="onDataFunction"
                                            fill="{fill4}" stroke="{stroke}" />
                                  </mx:series>
                             </mx:ColumnSet>
                             <mx:ColumnSet type="100%" displayName="Term 1">
                                  <mx:ColumnSeries xField="term1" yField="E" displayName="Excellent"
                                       dataFunction="onDataFunction"
                                       fill="{fill1}" stroke="{stroke}" />
                                  <mx:ColumnSeries xField="term1" yField="G" displayName="Good"
                                       dataFunction="onDataFunction"
                                       fill="{fill2}" stroke="{stroke}" />
                                  <mx:ColumnSeries xField="term1" yField="S" displayName="Satisfactory"
                                       dataFunction="onDataFunction"
                                       fill="{fill3}" stroke="{stroke}" />
                                  <mx:ColumnSeries xField="term1" yField="N" displayName="Needs improvement"
                                       dataFunction="onDataFunction"
                                       fill="{fill4}" stroke="{stroke}" />
                             </mx:ColumnSet>
                             <mx:ColumnSet type="100%" displayName="Term 2">
                                  <mx:ColumnSeries xField="term2" yField="E" displayName="Excellent"
                                       dataFunction="onDataFunction"
                                       fill="{fill1}" stroke="{stroke}" />
                                  <mx:ColumnSeries xField="term2" yField="G" displayName="Good"
                                       dataFunction="onDataFunction"
                                       fill="{fill2}" stroke="{stroke}" />
                                  <mx:ColumnSeries xField="term2" yField="S" displayName="Satisfactory"
                                       dataFunction="onDataFunction"
                                       fill="{fill3}" stroke="{stroke}" />
                                  <mx:ColumnSeries xField="term2" yField="N" displayName="Needs improvement"
                                       dataFunction="onDataFunction"
                                       fill="{fill4}" stroke="{stroke}" />
                             </mx:ColumnSet>
                        </mx:series>
                   </mx:ColumnSet>
              </mx:series>
              <mx:horizontalAxis>
                   <mx:CategoryAxis categoryField="label" />
              </mx:horizontalAxis>
         </mx:ColumnChart>
         <mx:HBox width="100%" horizontalAlign="center">
              <mx:Legend dataProvider="{columnChart}" direction="horizontal" width="500" height="30" />
         </mx:HBox>
    </mx:Application>

    Hi id,
    Thank you for your response. I hope you are doing well.
    There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
    How Can I Customize the X-Axis Labels On My LabVIEW Graph/Chart So They Appear Vertically?
    http://digital.ni.com/public.nsf/allkb/1F7C1B089E4​5908E86256C8C0051894A?OpenDocument
    Let me know if these examples help.
    Best regards,
    Anna L
    Applications Engineer
    National Instruments

  • Does not display axis label in graph when exported to excel

    I have a wierd issue.I have a report with graph with coloum chart and axis labels description on x axis.WHen i export the report to PDF everything looks OK.But when i export it to excel few axis labels disapper.Out of 12 labels only 2 apper when exported to excel.Has anyone encountered this issue.
    If so is there a way to fix this.
    PS: I am using BO XI 3.1 Webi.
    Thank you,
    Sanjeev

    hi,
    I have tried this out with a sample.
    In WEBI preview mode and PDF, all axis labels will appear fine.
    But when exported to excel, some labels will disappear.
    Workaround: We have to increase the chart size in Excel till all axis labels appear clearly.
    Regards,
    Vamsee

  • 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

  • Graph X-Axis Labels are appearing in middle for negative y-axis values

    Hi,
    In my Graph Output, the X-Axis Labels are appearing in the middle (where zero is appearing) if the Y-Axis values are negative.
    It's a Line-Graph.
    Can anyone let me know how to move the X-Axis Labels to down?
    I'm using a custom Function module same as 'GFW_PRES_SHOW_MULT' wherein I'm modifying the line colors and appearance. I have to edit in this Function Module to make the X-Axis Labels appear correctly (below) even when there are negative values.
    Please let me know which Parameter of the Class CL_CU_AXIS I've to use.
    Here's the piece of code:
    CALL METHOD graphic_proxy-ref->add_cu_bundle
                EXPORTING
                  port   = if_graphic_proxy=>co_port_chart_y_prim_axis
                  bundle = bundle_axis
                IMPORTING
                  retval = local_retval.
    Thanks & Regards,
    Sowmya

    Hi Sowmya,
    Im Lakshmi working as an ABAP Developer. I have seen your profile in SCN. I saw  your postings about OLE charts.
    I have a requirement to
    1) Output data from an internal table into excel, and
    2) Create a chart from the data in excel
    So far I have been able to export the data using OLE calls, created a chart object,.
    My question:
    1. How to put Data Lables
    2. How to put Data Table under the Chart
    3. How to rename the series names.
    Below is the recorded Macro. I don't know how to convert it to ABAP.
    Sub Macro1()
    ActiveSheet.Shapes.AddChart.Select
    ActiveChart.ChartType = xlColumnClustered
    Application.CutCopyMode = False
    ActiveChart.SetSourceData Source:=Range("B1:E4")
    ActiveChart.SeriesCollection(1).Name = "=Sheet2!$A$2"
    ActiveChart.SeriesCollection(2).Name = "=Sheet2!$A$3"
    ActeChart.SeriesCollection(3).Name = "=Sheet2!$A$4"
    ActiveChart.SetElement (msoElementDataLabelOutSideEnd)
    ActiveChart.SetElement (msoElementDataTableWithLegendKeys)
    End Sub
    I have attached the current output and expected output.
    I have searched about this in google but i could not find any solution for this.
    Your help is greatly appreciated.
    Thanks,
    Lakshmi.

  • Graph axis labels

    How do I change the graph y-axis to display the values 0 - 100% of my data?
    I've have some 2D arrays each containing sets of data which I'd like to plot against a % label (not % of the data!). The data within each array are all the same length (because I have re-sampled the data within the array), but no 2 arrays are the same length. The first element represents 0% and the last 100%.  
    Thanks

    Hi Graham,
    - you can change the Y-axis label to whatever you like, "Amplitude [%]" would be possible...
    - you can switch off autoscaling and set your own scale range from 0 to 100
    Easy as it is.
    Do you want something else? Could you show a small example?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Labview Intensity Graph Vertical Axis Label

    When I change the font of the vertical axis label of a Labview intensity graph, the label disappears. Is this a Labview bug or is there a way to correct the problem?

    Here are those screenshots... I was a little quick to submit
    - JLS
    PS - of course, when you're editing the free label, it doesn't have those nasty affects, and if you group the objects (see the Free Label and Grouping screenshot) it behaves (at least cosmetically) much like a native graph label
    Best,
    JLS
    Sixclear
    Attachments:
    Free Label and Grouping.JPG ‏81 KB
    While Typing.JPG ‏66 KB
    After Typing and Clicking Off the Graph.JPG ‏67 KB

  • Graph Data does not align with the axis label

    Hi,
    The graph data does not align with the axis label when
    datetimeaxis is used.
    http://livedocs.adobe.com/labs/flex3/html/help.html?content=charts_displayingdata_04.html
    (in the using parseFunction property example) when you hover on the
    line graph the values do not align on the labels. Is this a bug?
    Can somebody help me with this.
    Thank you,
    Gautam.

    Hi All
    Thanks for looking into it.
    Actually we have just added a field GJAHR (was missing in the extractor) so that it takes data accoring to fiscal yr. Actually we had a issue that the Business area for a particular vendor 'X' and doc no 'Y' was showing incorrectly (similar to that of yr 2008) but it changed this yr and the extractor was still picking Business Area for yr 2008.
    So we added GJAHR field so that it takes correct Business Area. we have checked in R/3 Extractor checker and it shows correctly.
    But that change has not reflected in BW yet even after replicating datasource.
    I hope i have made you all understand the situation.
    Thanks for your help
    Ishi

  • Can I align the orientatio​n of axis labels in a graph generated with the report generation toolkit (Word)?

    I was wondering how to align the axis labels, i.e. 90 degree or such when creating a graph with the report generation toolkit in word.
    I can do it after the document is created through Format axis title -> alignment but is there a way out of LabVIEW?
    I'd especially like to rotate the y-axis label by 90 degrees.
    Thanks a lot,
    Juergen

    I think he means he can modify it by hand after the report has been generated... But what I want to do is generate the word graph out of labview already with the rotated axis label...
    After I posted this I found out that we can do this with a macro and use it from labview, but unfortunately I don't know VB, or VBA...
    Like this:

  • How to avoid repeatition of axis labels in Graphs in WebI 4.0??

    Hello All,
    I am working with graphs in WebI 4.0. In category axis, the labels are being repeated thrice ,twice and so on based on the filter which I have placed according to my requirement.. I need them to be displayed only once. I have used axis label delete factor from Format chart. But then it solved only partial problem. Appreciate your help.
    Regards,
    Anila.

    plz
    try this
    create a one more vertical table
    and check that location-text and location-key are some .
    we think it would be like this
    location-text     location-key
    can                          01
    cbg                          02
    det                           03
    txc                           04
    txc                           05
    bec of different key and some description the axis is getting repeating.

  • How to insert the value axis in a EXCEL graph

    Hello,
    how can I do to insert the value axis (name) and graph tilte in a EXCEL graph using report generation in LabVIEW??
    I'm using excel specific functions, but I don't find it anywhere.
    THANKS.

    Hi,
    the function Excel Set Graph Font.vi has an input parameter called Title that corresponds to the name of the axis selected through Axis Type parameter.
    And the funtion Excel Insert Graph.vi has an input parameter called Graph Title.
    You can see an example called Column Graph (Excel).vi in Find Examples>Toolkits and Modules>Report Generation.

Maybe you are looking for

  • MacBook Air has a dark screen and works very slowly - what is happening?

    I have a MacBook Air since July '10, and until a few weeks ago, it seemed to be working fine. A couple of weeks ago I wanted to update iTunes and GarageBand, but since I couldn't find my charger and I really needed to update my iTunes, I just let it

  • Path to com.sap.aii.adapter.lib.sda: PI 7.1

    Hi all, I understand that this topic has been brought up many a times. I am posting my own as I din't find any proper answers. We are to include a 3rd party JDBC Database driver for PI 7.1. We find a Path to com.sap.aii.adapter.lib at the as /usr/sap

  • Help with stored function

    Hi...I was wondering if I could get help with this function. How do i write a function to return hours between a begin date and an end date for an employee. Thanks so much

  • NEW TO SAP  -  WHERE TO START

    Hi all I am hoping you are able to advise. I am looking to change my career a little , from being a project manager to getting into SAP. However, as you all know its quite vast and varied. My background is Business Information Systems, so I know abou

  • Issues with cs2

    why is photoshop cs2 not being allowed to update.  errodr message reads  adobe updater could  not be starated. nplease reinstall applications and components