Dynamic X axis in line chart

Hi All,
I'm making a line chart in Webi in which different lines represent different products.  On the Y axis I have a measure (no problems here) and on the X axis I have months.  Naturally, different products enter the chart at different points along the X axis because they didn't all enter the portfolio at the same time as you can see in the print screen.  My problem is though, that I want the start point for all of the lines in the chart to be at the X-Y intersect, not the month that they actually started.  The values for the X axis should then be 1 - 24 or something similar to cover a 2 year period. Newer products would then have a line that stopped at some point in the middle of the chart, rather than one that started in the middle.
I've been trying to create a new variable where min([Month]) is equal to 1 and then each month after that would be +1, but I'm not having any luck.
Thanks in advance for any suggestions.

Hi Jeremy,
Thanks for your tip.  I've created a new variable to calculate the months between the very first date and the product specific dates, and then subtracted the difference so that all products start at the same date in the new variable.  But it still leaves me with the same problem as I had with the count variable earlier. When I place the new variable on the chart it returns a multivalue error.  Any idea on how I could get around this? In table format it looks like this:
Table 1 with original month and new variable
Table 2 with only new variable
Table 3 desired outcome
Product
Month
*Adjusted Month
Rate
Product
*Adjusted Month
Rate
Product
*Adjusted Month
Rate
Product 1
201205
201203
Product 1
#MULTIVALUE
1.61%
Product 1
201203
Product 1
201206
201204
0.05%
Product 2
#MULTIVALUE
2.12%
Product 1
201204
0.05%
Product 1
201207
201205
0.07%
Product 1
201205
0.07%
Product 1
201208
201206
0.39%
Product 1
201206
0.39%
Product 1
201209
201207
0.65%
Product 1
201207
0.65%
Product 1
201210
201208
0.94%
Product 1
201208
0.94%
Product 1
201211
201209
1.18%
Product 1
201209
1.18%
Product 1
201212
201210
1.16%
Product 1
201210
1.16%
Product 1
201301
201211
1.61%
Product 1
201211
1.61%
Product 2
201205
201203
Product 2
201203
Product 2
201206
201204
0.02%
Product 2
201204
0.02%
Product 2
201207
201205
0.29%
Product 2
201205
0.29%
Product 2
201208
201206
0.74%
Product 2
201206
0.74%
Product 2
201209
201207
0.95%
Product 2
201207
0.95%
Product 2
201210
201208
1.37%
Product 2
201208
1.37%
Product 2
201211
201209
1.77%
Product 2
201209
1.77%
Product 2
201212
201210
2.12%
Product 2
201210
2.12%

Similar Messages

  • How to adjust x axis of line chart for dynamic values from universe

    Dear All,
    I am new to SAP Dashboard. I got one requirment that, user will pass single value to universe using prompt in Dashboard. Based on that prompt value / input parameter, universe will deliver data to plot line chart in my canvas. But, on every request i will get different count from universe. Like for request A = 30 records, request B = 56 records, request C = 2 records and so on.
    Based on the count, i want to display line chart in my canvas which will auto fit the screen. (Auto adjustment of X axis e.g For A, last record on x axis should be 30, for B = 56 and for C =2). Please let me know, how can i achive this task?.
    Note : i know, how to plot simple line chat with fix count.

    This is based on the output you get for the selection, get in touch with the functional team and get an idea about maximum no of result set will appear on various selection options. Say example if the functional guy says around 100 then go ahead and map 100 cells for the series.
    Then as arijit said you can use the ignore blank cell option to eliminate the blank rows in the selection.
    Note: Eliminating blank cells will always work at the end of the rows, not in the middle of the rows.

  • Scale on Y-axis of line chart is not correct

    I have a simple line chart that has the values of 150, 0, 122, 0, 0 and 0 that is charting fine.  However, the scale on the Y-axis is not starting at 0.  It starts at 100, giving the impression my 0's are 100's.  I have other charts, with other values, that are doing the same thing.  My chart set to ignore cells at end of range.  The scale setting is set to Auto (Y) Axis, Y axis scale is linear.
    I'll admit I'm pretty new with this software, but I'm not seeing any setting that I have wrong.

    Hi Gregory,
    unfortunately, it's a bug. I filed it (ADAPT01136251) and we will fix it ASAP. For now I can suggest only to switch to manual scale or to set one of your zero values to be something like 0.000000001 instead.
    Sorry about the bug,
    Margaret

  • Using Repeater to generate dynamic line charts

    I have a call to a webservice that returns an array of
    arrays. The outside array relates to the "YEAR", and the inside
    arrays have 1 element for each "MONTH". I want to create a line
    chart that has a line for each year, with the x-axis having months
    across the bottom.
    I can create this just fine by coding the appropriate number
    of mx:LineSeries tags in my code.
    However, I have a case where the data that I get back from
    the webservice could have up to 5 years (I'm only coding for 3).
    So, I'd like to find a way to dynamically generate an mx:LineSeries
    instance for each one of these years. I can't seem to get this to
    work with using a Repeater.
    This code isn't mine (got it from the docs), but it matches
    with what i'm trying to do exactly:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script><![CDATA[
    import mx.charts.events.ChartItemEvent;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses_2005:ArrayCollection = new
    ArrayCollection([
    {Year: 2005, Expense: "Taxes", Amount: 2000},
    {Year: 2005, Expense: "Gas", Amount: 100},
    {Year: 2005, Expense: "Food", Amount: 200}
    [Bindable]
    public var expenses_2006:ArrayCollection = new
    ArrayCollection([
    {Year: 2006, Expense: "Taxes", Amount: 2500},
    {Year: 2006, Expense: "Gas", Amount: 400},
    {Year: 2006, Expense: "Food", Amount: 300}
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
    expenses_2005,
    expenses_2006
    ]]></mx:Script>
    <mx:LineChart dataProvider="{expenses}"
    showDataTips="true">
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="{expenses.getItemAt(0)}"
    categoryField="Expense" title="Expense"/>
    </mx:horizontalAxis>
    <mx:verticalAxis>
    <mx:LinearAxis displayName="Amount"/>
    </mx:verticalAxis>
    <mx:series>
    <mx:LineSeries xField="Expense" yField="Amount"
    displayName="2005" dataProvider="{expenses.getItemAt(0)}"/>
    <mx:LineSeries xField="Expense" yField="Amount"
    displayName="2006" dataProvider="{expenses.getItemAt(1)}"/>
    </mx:series>
    </mx:LineChart>
    </mx:Application>
    How can I now change this to dynamically build the necessary
    numbers of LineSeries?

    Hi jsevlie,
    What I usually do in this case is to create multiple
    LineSeries objects in ActionScript as soon as I get in the data.
    Here is some code to get you started:
    private var theChart:ColumnChart = new ColumnChart;
    function drawGraph(){
    this.theChart.dataProvider = this.theData;
    var ctgAxis:CategoryAxis = new CategoryAxis();
    ctgAxis.dataProvider = this.theData;
    ctgAxis.categoryField = "0";
    this.theChart.horizontalAxis = ctgAxis;
    var series:Array = new Array();
    for(var i:int=0; i < this.columnSpan; i++){
    var colSeries:ColumnSeries = new ColumnSeries();
    colSeries.yField = String(i+1);
    if(i==0){
    colSeries.displayName = "Revenue";
    colorSrs(colSeries, 0x3F48F3);
    else if(i==1){
    colSeries.displayName = "Profit";
    colorSrs(colSeries, 0xE9C836);
    else{
    colSeries.displayName = "Cost";
    colorSrs(colSeries, 0x6FB35F);
    series
    = colSeries;
    this.theChart.series = series;

  • Line Chart does not display grid lines for x-axis (apex 2.0 / 3.0)

    Hello,
    is there an option to display x-axis grid lines?
    I set up an SVG chart (Line) but only IE displays y-axis grid-lines. I set the "Show Grid Line" - value to "enable"
    Does any body has an idea how I told apex to display x-axis grid lines also.
    Btw: only MS Internet Explorer displays the grid lines, I use firefos 1.5.0.10 -> no grid lines are displayed.
    The table how I create the chart are as follows
    select null link, label, value
    from
    SELECT 1 Value , 1 label FROM dual
    UNION
    SELECT 3 Value , 2 label FROM dual
    UNION
    SELECT 5 Value , 3 label FROM dual
    UNION
    SELECT 2 Value , 4 label FROM dual
    Thank you for helping me !!
    Message was edited by:
    athor

    I changed this and put usage of UTL_FILE into a dynamic PL/SQL. The package will
    compile and work unless you want to create debug information. If yes, then it will raise an
    error message. So, you don't need UTL_FILE execution priviledge from your DBA.
    I opened the package and you may modify it the way that you don't need any public
    synonyms and no UTL_FILE to run it.
    There are so many questions in this forum related to "What is my DBA going to say?" or
    "How is he going to react?". Even for some minor issues. I have myself also seen some
    of similar situations and the only thing I can sey is:
    You got to use that powerfull tool Oracle Database instead of hiding it away from your
    users and developers. Learn how to control it instead of prohibiting access to it! Otherwise,
    it's just a waste of money.
    Denes Kubicek

  • Show Timestamp on Y axis in a SSRS line chart.

     I have a column with datatype as timestamp. And i want to show that column on Y axis in a line chart. two sample values from that column are 03/01/2014 11:30 PM and 03/02/2014 12:10 AM. In this case the data point for first value should be less compare
    to the second one, i.e. the series should consider the complete timestamp. Is there a way in SSRS to achieve it.
    If I only take the time value from timestamp on Y axis and plot the chart then the data point for 12:10 AM is less than the 11:30 PM, which is not true in this case.
    ApoorvaW

    Hi ApoorvaW,
    In Reporting Services, if we directly add the Timestamp field to Y Axis, it displays the count values in the line chart. When we modify the expression of the value to [Timestamp], it displays the date value in the Y Axis. Though it displays date type as
    the axis label, it represent the complete timestamp.
    So in my environment, the timestamp display very well in the line chart. If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How do I get more than 10 Y axis chart labels on a line chart

    I cannot find a way to get more than 10 y axis labels on a line chart. In AppleWorks you set your step size so a size of "10" which in my case equates to labels of 10, 20, 30, ..., 80, 90 and so on up to the MAX value. I would often have 20 or more labels. In iWork the size is the number of labels and the maximum size (number of labels) I can display is 10. With a min value of 30 and a max value of 330 each label jumps 30 points which doesn't give the resolution I need to see...and....when showing the data point values on the page in iWork they overlap each other and are unreadable even when stretched out on legal paper.

    What I am calling the X axis (horizontal) you are calling the Y axis. I need more than 10 labels on the vertical axis. Space for text is not a problem. I already have done exactly what you suggest for the horizontal axis. What I need is to get 30 value labels on the vertical axis (You show 5 in your example) along with the many more than 10 I have on the horizontal axis. The 10 through 300 value labels run vertically, and roughly 90 data points, one per day covering 3 months runs horizontally with a date label every 7 days. This graph represents values recorded daily at the same time each day.

  • Line chart cuts off x-Axis value

    Hi All,
    Have created a display to display an x-Axis value versus a Y-Axis value using a Line Chart. We want to maximize the chart space so we have removed the Legend from the display, problem is doing this cuts of part of the final x-Axis label and part of the final data point on the graph ? Why - can we move the borders out ?
    Emmett

    Emmett,
    You can "Fake" some extra space out of the right side of the chart by setting the legend colors to blend into the background of the chart.  This includes unchecking the "Use Pen Color?" box and setting the labels in the legend to match as well.  Then simply set the legend to be whatever additional width you need.  Other than this there's not really any other way that I can think of.  Hope this helps.
    Sam

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

  • Webi Line Chart to Start from Axis Origin

    Hi,
    Need a quick help in BI4.0 webi line chart formatting.
    I have datetime on x-axis and cash flow on Y-axis.
    Say my cash flow starts at 9am on a day with $100 , my line chart starts the plot from 9am i.e. (9am,$100)
    instead I want the line plot to always start from (0,0)
    This is probably a chart option, but i dont find it.

    Hi Thangaraj,
    I have a similar requirement for a line chart to start from 0,0. while its min value is greater than 0.
    We are on BO 4.1 SP4  and there is no direct chart option for this.
    I would like to know whether you were able to achieve this in web intelligence.
    I really appreciate your reply.
    Thanks,
    Sri

  • How to dynamically add new line series to the line chart in flex?

    i need to add line series dynamically..and each line  series should have a different data provider...

    A chart can have only 1 dataProvider which in my case is an ArrayCollection.
    The chart will update every time the dataProvider changes if you use binding.
    So you have to write a function that periodically populates the ArrayCollection with data from the server and the chart will update automatically.
    'Using line charts' tutorial from Adobe: http://livedocs.adobe.com/flex/3/html/charts_types_08.html#243339

  • How to add line series dynamically to a line chart in flex?

    hi..i need to add line series dynamically to a line chart..depending on an array..the application is this..i have an array which stores the details of the users connected to an fmi server..the chart should display the bandwidth of each client..so the users should be added and removed from the chart dynamically...

    Hi
    1.I am giving you solution for dynamically adding values to the dropdown
    public void addValue( )  //Method Name in Component controller
        //@@begin addValue()
              IWDNodeInfo nodeinfo = wdContext.nodeNodeTestData().getNodeInfo();// Node should be map to the view's Node
              IWDAttributeInfo att = nodeinfo.getAttribute("VechileTypes");// Attribute by which dropdown in bound//
              IModifiableSimpleValueSet svSet = att.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
              svSet.put(wdContext.currentNodeTestDataElement().getInpAtt(),wdContext.currentNodeTestDataElement().getInpAtt());
        //@@end
    2.   wdThis.wdGetLangCompController().addValue(); // call this method in the point where u want to add values to the dropdown.

  • Line Chart Problem, multiple point in X axis

    I need to create a line chart , with many data points between two points in the X-Axis.
    For example,
    for month january my reading is 4,3,5,2,8
    for month feb my reading is 1,5,3,5,2
    I need only two points in X axis, which are january and feb and all the reading should come in gaph.
    I am attaching a picture of the graph i required. Can any one help me how should i fill the arraycollection or XML in order to get the graph.

    Here is a script which will illustrate how to conditionally display the X-axis label on a line chart:
    DROP TABLE tmp_test_data;
    CREATE TABLE tmp_test_data
    (date_stamp DATE,
      value      NUMBER);
    BEGIN
      dbms_random.seed(1234535678);
      FOR i IN 1 .. 233 LOOP
        -- get a random integer between 1 and 100
        INSERT INTO tmp_test_data
         (date_stamp, value)
        VALUES (TRUNC(SYSDATE)-i, dbms_random.VALUE(1,100));
      END LOOP;
    END;
    SELECT NULL link, CASE WHEN MOD(day,7) = 0 THEN day ELSE NULL END label, value
      FROM (SELECT date_stamp, value, ROW_NUMBER() OVER (ORDER BY date_stamp) day
             FROM tmp_test_data a
             WHERE date_stamp >= TRUNC(SYSDATE)-90
             ORDER BY date_stamp) b
    ;There may be a better way to do this. I know this will work.
    Mike

  • Line Chart X Axis Not Sorted Correctly

    I have created a line chart where the x axis is date closed and the y axis is number of days to close. This chart is placed within a group called priority.
    When the chart is created the close dates are not on the x axis in ascending order. I'm expecting it to be 10/1, 10/2, 10/3, etc. but instead I'm getting 10/6, 10/31, 10/28, etc. from left to right.
    I've got the Record Sort set to closed date ascending and if I place the records into the report they sort correctly. It's just the chart that sorts incorrectly.
    What am I missing here?

    Hi Jason,
      here is the steps you should follow in order ro set the sorting for barchart.
    1. go to chart expert
    2. click on data tab
    3. select the field in the selected list of report columns on which you have to sort, then the order button will be enabled
    4. click on the order button
    5 it will open new window by name "chart sort order", where you can set the sorting order(ascending order, descending order, specified order or the original order) for the selected report column.
    I hope this will help you..
    Regards
    Deepa

  • Line Charts - X-axis Labels as function of X-axis value

    Hi,
    1) Is there a way to put X-Axis labels in line chart as function of X-axis values ?
    For instance, X-axis values are in minutes and I need to show those as Hours.
    I'm having Hours as separate column as well, but when its selected as X-axis value column, the line graph is disturbed.
    2) Also, how to specify the length/range of X-axis ?
    For instance, in dataset if I've x-axis values from 0 to 5 hours but still want to show on graph the X-axis till 8 hours.
    Thanks for your help in advance.
    Regards,
    Sumit

    Hi Sumit,
    I have tried following things with proper datetime format may be help you.
    1> in your applet code you can add below param
    <PARAM NAME="XAxisDateFormat" VALUE="H">
    it will display your levels in hours for more details please refer Date and Time Format under query template in MII help.
    2>In your Query template under date range you can select duration and duration unit.
    for 8 hour span you can select Duration = 8 and in duration unit = H
    I have tested it for a tag query, may be i did not understand your issue properly but hope it helps you!!!
    Regards,
    Manoj Bilthare

Maybe you are looking for

  • How to print selected wells only?

    This is a real pain for me- does anyone know how to do this?

  • Lenovo s890 displaying white lines blur screen everywhere

    I have s890 with me for more than 1 year now. Yesterday suddenly Mobile screen started to blur and showing vertical lines all over . font started to blur and showing double letters. One thing surprise me that top section where sim signals and battery

  • JScrollPane scroll bar trouble on rebuild

    I've been working on this for hours (about 4 hours now) without finding the right solution, so maybe someone can help. I searched through a few pages of the forum but didn't see this exact issue. And the tutorial online doesn't help much. I have a JP

  • The icon on the display when i turn up or down or off the sound it doesn't show up

      I don't know if this is the right topic for my problem... I have a pavilion dv6-3299en Rossignol. I uninstalled some extra features and then i had a very small problem.  It;s not much but  I'd like it to be solved. When i turn up or down the sound

  • Edit on second monitor

    Hi all How can I click edit in main iPhoto window, and open photo up on a second monitor for editing, At the moment I am dragging the photo across. Mike