IChart x-axis labels

I'm having some issues with the x-axis labels on an iChart.
The data I'm trying to display returns a date column I want to use as the x-axis labels. The data returned looks similar to the following:
MY_DATE | project1 | project2 | project3 .... Where the number of project columns returned can be variable, and the column names change as well based on the project name. The one column always returned in the data is the MY_DATE column.
The issue I'm having is that it doesn't display the custom labels for the x-axis. I specify "MY_DATE" as the "X-Axis Label Columns", yet it completely ignores it. I've verified in the javascript that the MY_DATE column is specified as the label column, but it doesn't use it.
I think I discovered what is making it not work, but I cannot figure out why. I have another identical display template, one has a static set of columns returned. I can then specify the "Value Columns" in the "Data Mapping" template category of the display template, as well as the label column "MY_DATE" under the X-axis label columns. In this case it works, but when I take the Data Mapping "Value Columns" away, the dates disappear from the x-axis.
Does anyone have another way to set custom labels for the x-axis? Or any insight as to why it wouldn't work?

Austin,
What do you want the user to see initially?  An empty chart?  Please explain the initial state of the chart and how the user interacts with it.
1.  Is your query time-sensitive?  This means in the SQL Query you have designated a Date Column or used the SD and ED tokens in a filter expression.  If the query is time-sensitive, the date will automatically map as the X-Axis label.  If it is not time-sensitive, in addition to adding the My_Date to the X-Axis Label Colunms, add it to the X-Axis Value Columns.
2.  I have found that if I return all the columns in the query, then I simply have to do this to make them show upon some event triggered by the user:
// assume user chose these columns
var valCols = "ProjA,ProjB,ProjC";
var chartObj = document.AreaChart.getChartObject();
chartObj.setValueColumns(valCols);
document.AreaChart.updateChart(true);
3.  I wrote a small transaction using the same query and display template in the Chart action block configuration.  I created a transaction property for inputting the value columns (a comma-separate list) and linked this transaction property (the source property) to the Chart action's ValueColumns property (the desination property).  I then use a PDF Document action and a PDF Image action, linking the encodedImage property of the Chart to the encodedImage.  When I varied the content of the transaction input property to use differenct columns, the changes showed in the PDF Document.
Hope this is helpful.
Kind Regards,
Diana Hoppe

Similar Messages

  • 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

  • X-axis labels on iChart

    I have a query that returns a count and a day. I am plotting the count on the y-axis and want to show the day on the x-axis. I want the label for the day to appear every 7 days or so so the labels do not overlap.
    I have tried every combination of ticks, labels per tick, and column mappings and can't seem to accomplish this.
    I get the tick marks every 7 days but, I get every label for every day all bunched up at the bottom of the x-axis.
    I know this is an junior level question but I am really stuck.
    Thanks in advance.

    My assumption is that you are using xMII 12.0.  My testing is on 12.0.4, so if you don't get similar results, please let me know what service release (or build number) you are using.
    This is going to be a bit odd and I am not sure why it works this way, but here you go:
    Create a new iChart, change the type to custom.
    Map your data field to Value column in Data Mapping
    Go to Data Series Details and change the type to bar for data series 1
    Go to X-Axis and add your date field to X-Axis Label Columns, set Date format to mm/dd/yy, leave Time format blank, make sure label depth is 1, uncheck Show Labels and Show 3-D Tick Marks, check Show Tick Marks, set Major Ticks to 10, Minor Ticks to 3, and Ticks per Label to 3.
    Save and run.
    Good luck,
    Mike

  • 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

  • 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

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

  • Showing one data point on a line chart - X-axis label placed away from its actual position

    Hi Guys,
         In line chart, i used CircleItemRenderer to show single data point. It shows correctly if it is single data point. But the x-axis label placed away from its actual position. Right now it displayed left most position where the line chart starts. I need to move that label straight of that datapoint where it plotted.  Please see the screen shot attached with this post.
    In screen shot, x-axis label "Jan" displayed in left most position.
         And how can we show the datatip for single datapoint. At present, we can't able to see the datatips also with single datapoint.
         Can any body help me to fix those two issues.

    I figured out a way to customize a single datapoint in a line series.  The solution is at this link:
    http://www.flexdeveloper.eu/forums/flex-charting/customize-a-datapoint-in-a-line-series/

  • 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

  • Display Column Chart Y Axis Labels in Kilo(K), Million(M)...

    Hi Folks,
    I would like to display the Y-axis labels of a column chart in Kilo, Millions etc. I used the below mentioned formula in excel for that set of data. Here is the formula [>=1000000]0,,"M";[>=1000]0,"K";0
    Though in embedded excel it displays the values as desired, when I assign them to the column chart in Xcelsius the Y axis labels are not as expected. For Kilo it works fine but when it comes to millions it is not displaying accordingly. Any help is appreciated.
    Thanks,
    Sukumar

    Hi Sukumar,
           If You want to display the Y Axis Labels like Kilo(k),Million(M),Billions(B)...etc.Do the following things ,
            goto column chart properties->behaviour->scale in that Enable the Fixed Label size checkbox.
    Regards,
    Ramana

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

  • 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

  • How to display axis labels on both x and y-axis of a column chart

    hi,
     i have an urgent requirement of having axis labels on both x and y axis
    In x-axis i got it by sorting order also but in y-axis i'm unable to do
    i need in y-axis ,my column values are L1,L2,L3,----L10these shuold display in y-axis in sorting order and 0 in axis should remain as it is ..........how to take the interval ....? as of now i'm using Auto
    my y-axis values shud look like 0,L1,L2,L3,L4,----L10can anyone get perfect solution
    thanx in advance
    lucky

    Hi Lucky,
    Per my understanding that you want to display the values(Column1) like  "L1,L2,L3....L10" which comes from the "Series group" in the Y-Axis label and keep the row group in "Category group" to
    display in the x-axis and Numric column(1,2,3,4) in the "Value", right?
    Gernerally the lable display in the y-axis is automatically based on the value of the Numric column in the "Value" and it default is numbric labels.
    I have tested on my local environment and in your scenario, i suggest to hide the axis lable of the y-axis and create an tablix to only show the one column contains the values (L1,L2,L3,L3) to display in the place of the hidden y-axis label.
    Detais information about to design an new y-axis label ae below for your reference:
    Create an tablix to display only the row group of the "Column1" ( for the
    Column1 may have duplicate values, you can create parent row group for this column and hide the detail column by setting the "Column Visibility").
    Right click the y-axis to select the "Vertical Axis Properties" and select the "Labels" on the left pane to check the "Hide Axis labels"
    Select the Chart Area and in the properties set value of left=0 under the CustomPosition:
    Set the border style=None for both the Chart and Column1's row group
    Drag the tablix at the position near the hidden y-axis and set the size of both the chart and the tablix to make the value in the tablix row group(Column1) to be align with the y-axis label:
    Right click the "Chart legend" to delete or hide the legend
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How do I rotate chart axis labels?

    Trying to rotaet chart axis labels for the x-axis, but would like to know the same for the y-axis too. Know the solution for a text box, but doesn't seem to work for the axis labels.

    Hi Martin,
    The solution is the same for X and Y labels. Select the labels and then set the rotation angle, either in the Format Bar or in the Metrics Inspector.
    Jerry

  • Flex Mobile Charts -- Less Than Symbol in Axis labels

    Hi,
       I am creating a Mobile Project and want to display a column chart. My problem is I want to display "<" in  Axis label of charts.But somehow its not working.I have tried using "&lt;" and is working fine in Web and Desktop project.But somehow it is not working in Flex mobile project. I have attached the source code for the same please help me to resolve this issue.
    Thanks & Regards
        Vishal Lad

    No attachment option found so pasting my mobile project code.I am doing same thing in Web and destop project this is working fine.But for mobile project somehow I am getting blank label.
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
    {Month:"&lt;200", Profit:2000, Expenses:1500},
    {Month:"200-400", Profit:1000, Expenses:200},
    {Month:">400", Profit:1500, Expenses:500}
    ]]>
    </fx:Script>
    <mx:ColumnChart id="myChart" dataProvider="{expenses}" showDataTips="true">
    <mx:horizontalAxis>
    <mx:CategoryAxis
    dataProvider="{expenses}"
    categoryField="Month"
    />
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries
    xField="Month"
    yField="Profit"
    displayName="Profit"
    />
    <mx:ColumnSeries
    xField="Month"
    yField="Expenses"
    displayName="Expenses"
    />
    </mx:series>
    </mx:ColumnChart>
    </s:View>

  • How to display an image and add axis labels

    Hey everyone,
    I just had a really quick question on a program I created. It uses the vision module to open a file in a new display window, and I would like to add axis to the image simlilar to the picture below (With both the x and y axis labels as pixel, and a cursor which displays the pixel value or intensity). I have attached the simple program, as well as an example of the type of image I would like to open. Thank you for the help! =]
    Attachments:
    TEST1.zip ‏2223 KB

    I've updated the open_img.vi file so that it works with the generic sample picture provided, but the program does not work with the image within the ZIP file from the previous post.
    Or if anyone has any other ideas how to add axis labels to an image, I am by all means open to suggestion. Thanks
    Attachments:
    open_img.vi ‏47 KB
    Water lilies.jpg ‏82 KB

Maybe you are looking for

  • 'phantom' fields appearing several edits down the line...

    I've been transferring stuff from PAL composite video via a Canopus ADVC300: http://desktop.grassvalley.com/products/ADVC300/index.php It creates huge AVI files which I then convert to a size I want to work with. I've been working on something that w

  • Reg: Smart forms and print programs

    Hi I would like to locate the print programs and the corresponding smart forms. say for invoice we have a smart form available and how to track the print program for it. pls advise. thkx Prabhu

  • Using a PowerBook on a cruise ship

    Hi everyone, I'm currently on board Royal Caribbean's Mariner of the Seas and frustrated because I can't use my PowerBook to connect to its WIFI service. I've found other frustrated PowerBook and iBook owners with the same problem and the help desk k

  • Hello:I forget my security questions and answers  .I do not know how to correct this problem.Thx a lot.

    Hello:I forget my security questions and answers.I do not know how to correct is.Can you help me to slove this problem.Thx a lot. best!!!!!!!!!!!!!!!!!!!!!!!!

  • Harmonizing the Chart Of Accounts

    Hi Every Body, I have a slightly different question from one on my clients. They are interested in harmonizing the Chart of accounts. I have good idea , what should be done while harmonizing COA. But if some body can give me some inputs on Benchmarki