Legend with a line chart

I am working on a line chart and want to add a legend to it.
For the purpose I am using
<mx:Legend dataProvider="{bigChart}"/>
Now the y-axis in the chart can display different properties
based on the items clicked before rendering. It can be profitAmount
or it could be goodsSold. So the yAxis attribute keeps on changing.
What happens with this legend is that the bos appears but
with no text. Is there a way I can force some text to
appear?

nevermind I was missing displayName tag

Similar Messages

  • Display column values as a series/legend on a line chart where one column value can be more than one category

    Hi Everyone
    I don't know if this is possible or not, so I will describe it. I have a column in a table called Filing. There are currently three values in it ("Abuse", "Neglect", "Voluntary") and each record has this populated. I also have
    the below slicer for the column also.
    I would like to add a fourth value called "Abuse/Neglect" that would identify instances where both an Abuse and Neglect petition was filed, which is a subset of the Abuse and Neglect records in the Filing column.
    My question is, is it possible to create a line chart that has the 4 Filing possibilities: "Abuse", "Neglect", "Voluntary", "Abuse/Neglect" as the Series/Legend in the line chart?
    The problem is that there are records that are more than one category: Abuse or Neglect records can also be Abuse/Neglect.
    Paul

    Hi Paul,
    According to your description, there is a column with the values ("Abuse", "Neglect", "Voluntary") in your table, now what you need to is that add another value "Abuse/Neglect" in this column, and then use it
    as Series/Legend in the line chart, right?
    In this case, you can add calculated column to your table based on your logic. A calculated column is a column that you add to an existing PowerPivot table. Instead of pasting or importing values in the column, you create a DAX formula that defines
    the column values. The calculated column can be used in a PivotTable, PivotChart, or Power View report as you would any other data column. Please refer to the link below to see the details.
    https://msdn.microsoft.com/en-us/library/gg413492%28v=sql.110%29.aspx?f=255&MSPPError=-2147217396
    Regards,
    Charlie Liao
    TechNet Community Support

  • Legend for a line chart displaying incorrectly

    Hi All,
    I am working with a line chart in webi XI R2. for example conssider the island resort marketing universe. we have 3 resort names like bahamas,US,France and the corresponding "revenue"  for year 1999,2000,2001. Now i want a line chart for each resort and another line for sum of all the revenue.
    So my final line chart contains 4 lines, one each for bahamas,US,France for 1999,2000,2001. and 4 line is sum of all revenues (for all resorts) in 1999,2000,2001.
    I have used a "vertical line mixed" chart for this. All the graph lines are displaying correctly but the legend is displaying wrongly.
    Please advise.

    Hi Raveendra,
    I guess its the 4th line i.e. sum af all revenue that you have added in the same chart is causing the problem.
    My solution is why dont you try and put the sum of all revenue in other chart on the same report.
    May this would help resolve your legend problem.
    If you can give the exact details like what attributes you have selected while running the query and how did you added the sum of all revenue in your chart being more specific, would rather help a bit better in solving the problem.
    Thanks,
    Chirag Desai.

  • Problem in editing legend label of line chart

    Hi,
    I am using crystal 2008 and deploying reports in Java appilication.
    I have a report with line chart in group header. I am using formulae for 'Show value' field. So legend shows it as @formula1
    I couldnt change this is design mode, so i went to preview mode and used 'edit axis label' for each of the chart.
    Now i can see proper legend labels in my crystal 2008. But when i deploy the report in java application, chart still shows @formula1 .... any idea on why my changes are not displayed in crystalviewer?
    Thanks

    This is tricky... and somehow you won't find it in manual.
    After the change of Axis Label, right click on Chart Area. You will see new option "Apply Changes to All Charts". Choose this option and voila - You owe me a bottle

  • Help with Bar & Line Chart on dual Axes

    I'm attempting to build a chart with 2 series
    Series 1 is a total
    Series 2 is a percent value
    I want Series 1 to be a column and series 2 to be a line
    Here is what I tried
    right click on the Bar that Iwant to display as line.
    Select the series option and then select "Line" from the drop down.
    But when I do this both series change even though they on different Axes.
    What did I miss?
    Thanks
    Steve

    you should first create a line chart, then click the series and turn to 'riser'.
    Thx, Hao

  • Problems with the line chart - dashboard

    I have a problem in the line chart in the dashboard SP4.
    Clicking on the legend of the graphic , the serie (line) disappears. Clicking again in the legend, the line appears but the markers don’t.
    Someone knows how to solve this problem?
    Follow the examples.
    Thanks.

    Hi Jane,
    This is definitely the tool problem.
    Might be you can try restarting xcelsius or your computer (sometimes it works, really !)
    Just out of curiosity, why do you want to clink on legends.

  • Problems with SVG line charts based on PL/SQL returning SQL

    Dear all - I wonder if anyone can tell me whether this problem is likely to be fixed at some point?
    It relates to the fact that you can't get more than one series on a chart where the SQL is returned from PL/SQL.
    It is a huge issue for us when trying to create complex, dynamic charts, which are simple enough in PL/SQL, but end up quite nightmarish in pure SQL.
    Although we have implemented Maani SWF (Flash) charts as a workaround, users don't like them as there's no 'save as...' or copy+paste and they seem to print very badly indeed.
    Here's part of a post from last May with more detail:
    "If I take a really simple table like this:
    CREATE TABLE "CHART_TEST"
    ( "X" DATE NOT NULL ENABLE,
    "Y" NUMBER(5,0) NOT NULL ENABLE,
    CONSTRAINT "CHART_TEST_PK" PRIMARY KEY ("X") ENABLE
    and populate it with:
    X Y
    2006-01-01T00:00:00 1
    2006-02-01T00:00:00 2
    2006-03-01T00:00:00 3
    2006-04-01T00:00:00 4
    2006-05-01T00:00:00 5
    2006-06-01T00:00:00 6
    2006-07-01T00:00:00 7
    2006-08-01T00:00:00 8
    2006-09-01T00:00:00 9
    2006-10-01T00:00:00 10
    I can create a chart with a single series using syntax something like:
    begin
    return 'select null link, x label, y value
    from chart_test';
    end;
    and this works fine. However, if I add a second series:
    begin
    return 'select null link, x label, (y + 1) value
    from chart_test';
    end;
    then the whole of the chart region blanks out.
    There's an example at:
    http://htmldb.oracle.com/pls/otn/f?p=15491:1"
    Many thanks,
    John.

    On some, but not all SVG line charts, I had trouble when some values are ZERO.
    Putting a CASE WHEN var = 0 then 0.05 ELSE var END in the select statement
    fixed those situations.
    I had missing lines when the number of data points in a series exceeded the default number of 15, and I did not set in the series configuration to a number equal to or higher that the number of data points in that series.
    And I had one instance, where a couple missing lines reappeared when I exited
    the browser and app completely and restarted the app.
    All these comments apply to ver 1.6x and 2.0x

  • Using Custom Legend without Using Legend Class for line Chart

    Hi ,
    I m trying to create legend with checkbox without using Legend class of flex, but problem is that how to use itemrenderer of lineseries in the legend.
    My requirement is like this:

    my problemb is how to get that shape and use in container .
    i am using hbox in that i have checkbox ,label and i tried to use Image or IFlexDisplayObject but i am unable to assign that renderer to either  image or IFlexDisplayOBject nothing isd working.
    any suggestion for what component i shall use to assign the itemrenderer of lineseries.
    Thanks for replying

  • Hiding legend entry in line chart

    i hide the line series lineSeries
         lineSeries.visible=false;
    but its legend entry is shown on the chart.
    How can I hide the legend entry to hidden line series?

    Hi Asif,
    You need to write some ActionScript to acheive this functionality...Its not that simple just as you make lineseries visible=false...the legend item will go
    away...You need to explicitly remove and add series...as shown in code below:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
            import mx.collections.ArrayCollection;
            [Bindable]
            private var expensesAC:ArrayCollection = new ArrayCollection( [
                { Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450 },
                { Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 },
                { Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300 },
                { Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 900 },
                { Month: "May", Profit: 2400, Expenses: 575, Amount: 500 } ]);
            private function addLineSeriesToChart(item:String):void 
          var isFound:Boolean = false;
          for ( var i:int = 0; i < lineChart.series.length; i++ ) 
           if ( lineChart.series[i].yField == item ) 
             isFound = true;
           if(!isFound)
           var newLS:LineSeries = new LineSeries(); 
           newLS.yField = item;
           newLS.displayName = item; 
           var tmp:Array = lineChart.series;  
           tmp.push(newLS); 
           lineChart.series = tmp;  
           lineChart.invalidateSeriesStyles();
            private function removeLineSeriesFromChart(item:String):void 
           var objToRemoveIndex:int;
           var isFound:Boolean = false;
           for ( var i:int = 0; i < lineChart.series.length; i++ ) 
           if ( lineChart.series[i].yField == item ) 
            objToRemoveIndex = i; 
            isFound = true;
           if(isFound)
            var tmp:Array = lineChart.series;
            tmp.splice(objToRemoveIndex,1);
            lineChart.series = tmp;
            lineChart.invalidateSeriesStyles();
      private function addProfitLineSeries():void 
       addLineSeriesToChart("Profit");
      private function removeProfitLineSeries():void 
       removeLineSeriesFromChart("Profit");
            ]]>
        </mx:Script>
        <mx:HBox width="100%" horizontalAlign="center">
      <mx:Button label="Add Profit Series" click="addProfitLineSeries()" />
      <mx:Button label="Remove Profit Series" click="removeProfitLineSeries()" />
        </mx:HBox>
        <!-- Define custom colors for use as fills in the AreaChart control. -->
        <mx:SolidColor id="sc1" color="blue" alpha=".3"/>
        <mx:SolidColor id="sc2" color="red" alpha=".3"/>
        <mx:SolidColor id="sc3" color="green" alpha=".3"/>
        <!-- Define custom Strokes. -->
        <mx:Stroke id = "s1" color="blue" weight="2"/>
        <mx:Stroke id = "s2" color="red" weight="2"/>
        <mx:Stroke id = "s3" color="green" weight="2"/>
        <mx:Panel title="LineChart and AreaChart Controls Example"
            height="100%" width="100%" layout="horizontal">
            <mx:LineChart id="lineChart" height="100%" width="45%"
                paddingLeft="5" paddingRight="5"
                showDataTips="true" dataProvider="{expensesAC}">
                <mx:horizontalAxis>
                    <mx:CategoryAxis categoryField="Month"/>
                </mx:horizontalAxis>
                <mx:series>
                    <mx:LineSeries id="lineSeriesProfit" yField="Profit" form="curve" displayName="Profit" lineStroke="{s1}"/>
                    <mx:LineSeries yField="Expenses" form="curve" displayName="Expenses" lineStroke="{s2}"/>
                    <mx:LineSeries yField="Amount" form="curve" displayName="Amount" lineStroke="{s3}"/>
                </mx:series>
            </mx:LineChart>
            <mx:Legend dataProvider="{lineChart}"/>
        </mx:Panel>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Legend view on line chart click

    Hi,
    I have to axis x and y on line graph so x axis contains time dimension in hours 4p,8pm or can be date dimensions and and y axis it contains sale values
    now the point is when ever click on any date on x bar i get value on that of alll y axis line graphs like say there are 6 line bar avl in y axis so it show is value of all that on a particular day in legend or pop up window
    e.g.
    click mouse
    on
    date 04/11- gets pop window contains value of all six bars on that particular date
    thanks
    Edited by: Chinu on Nov 5, 2011 11:50 PM

    nevermind I was missing displayName tag

  • Line Chart cannot drill down on legends and lines

    I am doing a drill down Group report which will show the Sum of Last year's Sales By Country, State and city over a period of time(by date) for throughout the year 2007. Every group will have a line chart with Data title as Sum of Last year's Sales ($), Group Title as Date and legends displaying countries (or states or cities) as USA,UK,Australia. etc.. I have same sort of line chart for State and City as well. So, I got 3 levels of groups with a line-chart displayed in every group level.
    Now, the problem is my drill down would not work on chart lines or legends as it would do for a 2-dimensional data chart like a bar-chart or pie-chart. In the Chart Expert->Data->Layout:Group ->in the On Change Of event selection I am able to specify either Sales.Country (or) Sales.country and Sales.Sales.State. Both options would not let me get the correct linechart with correct data and drill-down working as well.
    The only work-around i got is to display the line chart with legends and showing the Country(or State or City) names in a field in the Group Footer. The drilling will work on those fields, but not on the legends or lines of the line chart. This make my report showing the Country names twice once on legend (with no drill-down) and once on group-footer(with drilling ability to groups below) which is untidy.
    Have anyone tried to make a drill-down crystal report on a 3-dimensional data like this? The World Sales report in Crystal reports C:\Program...\BO\Samples\General Business\World Sales Report is the best example of how i would like to see my charts to drill down. However, they drill down across a 2-dimensional data. I am publishing this Crystal Reports in Business Objects Infoview.

    Please re-post if this is still an issue

  • Line Chart with more than 15 datapoints

    I'm using Apex 3.1.
    I am trying to create a line chart with more than 15 data points. Apparently 15 is the default. Question is, How do I change the default?
    The Wiki has advice for changing the "Maximum Rows" parameter, but "Maximum Rows" is not to be found, either in the chart attributes or series attributes.
    http://wiki.shellprompt.net/bin/view/Apex/ChartIssues
    I have encountered this limitation with SVG line charts and Flash line and scatter charts. Seems like it must be an easy thing to figure out; I feel embarassed asking such a question. But I've been through all the application property pages, much of the documentation, and several tutorials... Where can I change this? It's driving me nuts!
    Thanks
    Fred

    Hello,
    Which version of APEX are you using?
    Go to your Flash Chart attributes - get into your series (click the icon) in the section of Series Query you'll find the maximum rows.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Problems with line chart rendering

    Hi.
    I have some problems with a line chart with 2 series.
    I have the folowing series:
    SELECT null link, t.column_value eticheta, EVM_REPORT.ACTUAL_COST2(:P37_PROJECTID, t.column_value) valoare
    FROM TABLE(utils.table_for_iteration(
    to_date('2007-05-20', 'yyyy-mm-dd'), sysdate)) t
    SELECT null link, t.column_value eticheta, 7 valoare
    FROM TABLE(utils.table_for_iteration(
    to_date('2007-05-20', 'yyyy-mm-dd'), sysdate)) t
    function table_for_iteration(param_start in date,param_end in date) return DATE_ARRAY PIPELINED AS
    BEGIN
    FOR i IN 0 .. (param_end - param_start)
    LOOP
    PIPE ROW(param_start + i);
    END LOOP;
    RETURN;
    END table_for_iteration;
    FUNCTION actual_cost2(in_project_id in number, end_date IN DATE) RETURN number AS
    begin
    return 2;
    end actual_cost2;
    The chart does not display (at all). If i replace EVM_REPORT.ACTUAL_COST2(:P37_PROJECTID, t.column_value) with some value, it displays.
    Any ideea ?

    Hi,
    Do you mean point the partial trigger to the surrounding container? I have tried that but it makes no difference. I am almost certain that the problem is associated with the forEach component as if I have exactly the same structure but without the forEach then the ppr works fine.
    Thanks for your help on this,
    Dave

  • How to combine a bar with a line in a chart

    Post Author: rbcdexia
    CA Forum: Charts and Graphs
    We want to combine data in bars and with a line showing in one chart.
    Is that possible? How do you configure your chart?
    The line and the bars are based on the values from different fields in the same table.

    Post Author: pareshb
    CA Forum: Charts and Graphs
    We are using Crystal Reports for Visual Studio 2005. Can you please let me know how to combine a bar with a line chart.
    Thanks in advance.Paresh

  • Area chart with line chart

    Hello again!  I would like to develep a area chart with a line chart in one chart. Is it possible with Crystal? Thanks!

    Did you mean a Trendline? If that is the case, right click on any of the areas in the area chart and select Trendlines from the context menu.

Maybe you are looking for

  • Bridge CS5, will not open, "The operation could not be completed"

    MacBook Pro 10.6.4, 8 gig ram, plenty of HD space left. Just got & installed CS5, upgraded from CS2. Also have Photoshop Elements installed with Bridge CS3, this came with my digital camera. Bridge CS3 works fine, CS5 will not open, the patch has bee

  • PC 10.0 - Error in Ad-Hoc query in Data Source

    Hi, We are facing an error when running an Ad Hoc query in the Data Source. We have built a DS to monitor the job log table TBTCO and was running the query to check if data is getting fetched correctly. But the query does not return any data and show

  • Gadmin owner of all files

    Hi I have just discovered that read and write access to all our files and folders was changed to "gadmin" and pretty much everyone has read only access to the files. The files and folders are on a Mac, and the other users are on other Macs on the loc

  • 11.2.0.2, MRP gets cancled with ORA-16037

    Hello. I'm testing ADG in 11.2.0.2 release on RHEL to check if important (for us) bugs are actually fixed. So im trying to set up a dataguard configuration with two hosts. The problem is that managed recovery on standby gets canceled in about 1-3 min

  • PSC5 and P9

    Whats the difference in Photoshop CS5 Extended and Photoshop elements 9