Dynamically hide a line chart series

I have a chart with multiple lines (line series) available to the user. I would like to allow the user to have the ability to enable and disable each line individually. I've tried several things without success... I even went as far as the activating/deactivating the alpha of the lineseries to between 1 and 0 :-), but I KNOW there is an easier way. Any help would be appreciated.

Kevin

Sorry... beginners discovered the 'visible' property... :-)

Tags: Flex

Similar Questions

  • Creating a line chart series multi with different data providers

    I have 3 providers of data of the same structure that is ArrayCollection of data collection and that you want to use to create a line chart multiseriate. I don't have just 1 dataProvider that can be used but 3 different data providers of the same structure I want to use each different series.

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    < mx:ColumnChart showDataTips = "true" >

    < mx:horizontalAxis >

    < mx:CategoryAxis

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    / >

    < / mx:horizontalAxis >

    < mx:series >

    < mx:LineSeries displayName = "OrangeSales" yField = "sale" xField = "month" dataProvider = "{orangeSales}" / >

    < mx:LineSeries displayName = "AppleSales" yField = "sale" xField = "month" dataProvider = "{appleSales}" / >

    < mx:LineSeries displayName = "BananaSales" yField = "sale" xField = "month" dataProvider = "{bananaSales}" / >

    < / mx:series >

    < / mx:ColumnChart >

    Help, please!

    Sorry for the confusion. In fact I do something wrong, such as using ColumnChart to display a line chart or something like that.

    Now, I realized that a multi series line graph can be built by the presence of a different data provider for each of the LineSeries object.

    If the code below would create a multi series line graph:

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    <>

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    />

  • Newbie: why can I not use a collection of table to feed a line chart series

    Unfortunately, I have a simple wish, but I'm spending hours trying to get this to work flex.

    1. take a collection of table

    2. Enter the data in a chart.

    To bind the data to the table... I tried all kinds of combinations of "@date" or data.date or {date}... etc...

    Below, works now... why?  (Note, when I self an XMLListcollection and @close for data binding, it seems to work)

    I'm at the beginning of the career of 'flex' and must admit that it is difficult with the lack of detailed examples, so hopeful of inspiration.

    < mx:ArrayCollection id = "2" >
    < mx:source >
    < mx:Object date = open '8' = '40,38' close = "40.81" / >
    < mx:Object date = '9' open = "40.5" close = "40,41" / >
    < mx:Object date = "10" open = '40,82' close = "40.6" / >
    < / mx:source >
    < / mx:ArrayCollection >

    < mx:Panel title = 'LineChart and AreaChart control 3.
    = "84" height = "491" width = "729" layout = "horizontal" x = "350" >
    < mx:LineChart id = 'linechart' height = '100% ' width = '100% '.
    paddingLeft = "5" = "5" paddingRight
    showDataTips = "true" dataProvider = "{2}" >
    < mx:horizontalAxis >
    < mx:CategoryAxis id = categoryField = "{data.date 'ca'}" title = "Date" / > "
    < / mx:horizontalAxis >
    < mx:series >
    < mx:LineSeries yField = "{data.close}" form = "curve" displayName = "Profit" lineStroke = "{s1}" / > ""
    < / mx:series >
    < / mx:LineChart >
    < mx:Legend dataProvider = "{linechart}" / >
    < / mx:Panel >

    Try categoryField = "date" and yField = "close" with no braces.

  • Line chart multiple series shows the range of points.

    I have a 4 line chart series (using the Application Express 3.1.2.00.02 and Anychart 3.3). Data are based on a date range (x-axis). When I try to send back more than a month of a data value, it will only show points for a month (for example, the date range is 01/06/10 - 12/1/10 it will only display data for 6/1 - 7 / 1). Please let me know if you want more details.

    Any help is greatly appreciated.

    Edited by: cjmartin December 8, 2010 12:14

    Order what you have in your series on the chart lines maximum .

    Jeff

  • Series name is not in the series of the line chart that is created dynamically

    I created dynamically a chart series. This works well but the passage of the mouse on the data points shows only the x and the values, but not the name of the series, the legend shows a series of color boxes to match the lines, but no labels displayed for each colored area. Here is my code:

    linechart2.series = [];

    for(a = 0; a < allSettingsArray.length; a ++) {}

    CREATE SEVERAL VERTICAL AXIS

    var verticalAxis1:LinearAxis = new LinearAxis();

    var verticalAxisRenderer1:AxisRenderer = new AxisRenderer();

    verticalAxisRenderer1.axis = verticalAxis1;

    series: var LineSeries = new LineSeries();

    series.verticalAxis = verticalAxis1;

    series.yField = allSettingsArray [a];

    linechart2.series.push (series);

    }

    Each data point is defined in a loop like:

    temp ['gameNum'] = String (a);

    Str = String(attrVal[0]);

    Temp [str] = attrVal [1];

    Then added in the ArrayCollection collection:

    resultArrayColl.addItem (temp);

    Any suggestions, what I'm missing here?

    Mention displayName for the lineSeries.

    --

    TANU

  • help in hiding and showing the series in a line chart

    Hello world

    I have a line chart with 8 sets of data and I would have checkboxes to show and hide each series, if the graph is not too busy.

    How can I do this?

    Thank you
    Ryan

    Hello Ryan,

    If you use the library AnyChart which is provided by default in the APEX of the following links may help:

    [url http://www.anychart.com/products/anychart/docs/users-guide/livesamples/js-series/index.html] Adding, deleting, changing, hiding and showing Series - AnyChart JavaScript interactivity

    {: identifier of the thread = 2201947}

    I hope that helps!
    Kind regards
    Kiran

  • Dynamic line chart

    Hello world
    me new flex,.
    I want to know one thing that we can do varies the line chart to vary dynamically as it should as in Task Manager cpu ranges online history if its possible please give me an idea or any code if possible.

    Thank u,
    Namala.

    Yes, you can use a timer to deal with regular updates, or you can link the data in a data which is updated provider. There are examples here:

    http://livedocs.Adobe.com/Flex/3/HTML/charts_intro_8.html#264441

    HTH,
    Matt Horn
    Flex docs

  • Anyway do not draw data points as nodes on a line chart?

    I have no use for the each data point = function node on my chart, and I suspect that's the reason why in my application performance is very poor. I have a line chart which can be composed of several hundreds, or even thousands, individual data points----> I can not afford to draw a node for each of these points when he didn't need to do. I just need the line between the drawn points.

    A quick ogle at the JavaDoc reveals no obvious way to do it. I can remove the Visual effect in CSS - and I have - but the nodes are still created.

    How can I prevent the JavaFX creating a node for each point?

    I have the same problem: try to use

    lineChart.setCache(true);
    lineChart.setCacheHint(CacheHint.SPEED);
    

    This should speed up your data series

  • Dynamically hide show Page elements

    Dear all,
    Im tring to dynamically hide and show the page element. I searched and found something but it does not work for me. IM using apex 4.1 and below are described the work I've done.

    I have 5 fields iitems in my page (form).

    -The Customer No.
    -Edit
    -First name
    -First name
    -Address

    I want to hide the name, surname, address, based on the value to change. Let's say if the user selects "name Edit" then name must obtain visible while name & address hidden.

    So I put this line onChange = "$f_Hide_On_Value_Item(this,'LASTNAME,'LN')" in the point EDIT page > Label > HTML table cell attributes "

    But it does not not for me? Where am I wrong?

    Thanks in advance.

    Have you seen the documentation? http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/javascript_api.htm#CHDHIAJB

    I suggest you to use actions Dynamics http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_dynamic_actions.htm#HTMDB27020

  • Dynamically hide a dashboard

    Hello:

    Is it possible to dynamically hide a dashboard on a single day for a week? Any tips will be appreciated.

    Thank you
    Chavigny.

    Happy that you have invested some time for 2nd approach... Here you go:

    (1) create a table in DB say

    CREATE TABLE DASH_SCREEN (FLG CHAR);
    INSERT INTO DASH_SCREEN (FLG) VALUES (' N "");
    I guess that if FLG = N then the dashboard is visible, otherwise if FLG = Y then its replaced with a hidden with custom message page.

    (2) you now have 2 options
    -Either use request Direct database: we should not import this picture to RPD
    - OR import this table in RPD and drag up to the presentation layer

    I'm now going to first approach. Ofcourse give access to a database directly to the administrator.

    (3) create a hidden page under the dash with a custom message

    (4) create a direct request from the database:
    -You can put the name of the connection pool that has the details of the database in which this table is present even if the table is not imported to the physical layer.
    -Put SQL as SELECT * FROM DASH_SCREEN WHERE FLG = 'Y '.
    -Check the option to workaround here
    -Click on the result, it will give you no results as value = N. create a Narrative here checked HTML and under story view put this:
    [[
    [[
    [[
    [[

    remove all [in above code

    -This script replace dash with a custom page that is hidden when the value of the flag is 'Y '.

    (5) now, Goto dashboard, front page, first section... Place the report above and also in chapter guided navigation
    Application to the reference Source: Yes
    Request to the source: same as above report
    See Section: If the query returns rows

    Now this guided navigation will guide the hidden page dashboard when this report returns a line any

    (6) you can easily create a direct request to the database to update the valu flag 'Y' or ' don't and then make use of the ibot to plan when necessary.

    This is a good method to hide or basically full dash replacement

    See you soon

  • Line chart with nested &lt; XML &gt; node

    Hello

    I use a Flex 3 line chart.

    The table gets its data from a remote through < mx:HTTPService > as XML file:

    < mx:HTTPService id = "myServ" url = "MyChartData.xml" / >

    I want the chart to draw for all nodes that fall under each set of nodes for the < node > values:

    nodes <>

    < nodeset id = "1" >

    <>node

    <>node

    < / nodeset >

    < nodeset id = "2" >

    <>node

    <>node

    < / nodeset >

    < / node >

    The graph is get mapped out when I use the dataProvider for only the first internal as node:

    myServ.lastResult.nodes.nodeset [0] .node

    How to get the graph plotted for all interior nodes?

    The mxml:

    --------------------------

    < mx:LineChart id = "myChart" width = "100%" height = "100%" showDataTips = "true" dataProvider = "{myServ.lastResult.nodes.nodeset.node}" >

    < mx:horizontalAxis >

    < mx:CategoryAxis categoryField = "time" title = "Node value" / >

    < / mx:horizontalAxis >

    < mx:verticalAxis >

    < mx:LinearAxis title = "Interval" / >

    < / mx:verticalAxis >

    < mx:series >

    < mx:LineSeries id = "myLineSeries1" xField = "time" yField = "value" / >

    < / mx:series >

    < / mx:LineChart >

    The XML code example:

    --------------------------

    <? XML version = "1.0" encoding = "utf-8"? >

    nodes <>

    < id nodeset = "1" >

    < period node = "01" >

    < value > - 115 < / value >

        </node>

    < period node "02" = >

    < value > - 115 < / value >

        </node>

    < period node = "03" >

    < value > - 114 < / value >

        </node>   

    < period node '04' = >

    < value > 0 < / value >

        </node>

    </nodeset>

    < nodeset id = "2" >

    < period node '05' = >

    < value > - 114 < / value >

        </node>

    < period node "06" = >

    < value > 0 < / value >

    < / node >

    < period node "07" = >

    < value > 0 < / value >

    < / node >

    < period node '08' = >

    < value > 0 < / value >

        </node>

    < / nodeset >

    < / node >

    HTTPService.resultFormat = "e4x";

    The default value is object that will play not well what attributes. XML would work too, but e4x extends with a few useful shortcuts.

  • Markers for the line chart

    Hi, can someone help me with the addition of markers (think they are colled like that) for the line chart.
    Please refer to the attached example link
    Example of

    Y at - it option series of chart in styles to add those?
    Help, please.

    "Stoneski" wrote in message
    News:gen7p7$hl8$1@forums. Macromedia.com...
    > Hi, can someone help me with the addition of markers (think they are colled
    > as
    (> that) for the line chart.
    > Please refer to the attached example link
    > http://officeblogs.net/excel/1_12_17_07.png
    >
    > Is there a series of line chart option in styles to add those?
    > Please help.
    >

    http://flexdiary.blogspot.com/2008/08/charting-example.html

  • PL/SQL in a line chart

    Hello

    I'm learning to use APEX to generate graphics on our intranet. I get errors when I try the code below PL/SQL on a line chart (btw, I'm a noob in PL).
    The description of the error is after the code. Can someone please tell what is wrong with my code?
    Any help will be much appreciated. Thank you.

    declare
    q varchar2 (4000);
    g varchar2 (4000);
    w varchar2 (4000);
    c varchar2 (4000);
    QTY varchar2 (1): = CHR (39);

    Start
    q: =' Select link null, months ';
    g: = 'group by month ";


    q: q = |' to_char (decode ((sum (nvl(i_worked,0)) + sum (nvl(o_worked,0))), 0,0,null,0, (sum (nvl(i_cont,0)) + sum (nvl(o_cont,0))) * 100 / (sum (nvl(i_worked,0)) + sum (nvl(o_worked,0))),'|)) QTY | "999.00 ' | QTY |') || » || QTY | » %'|| QTY | "as Cont_Rt";
    q : = q || "to axe_csa_daily_performance_mth";

    w := ' ';

    If: P1_CENTER! = "All" then
    If instr (w, 'where') = 0 then
    w: = ' CENTER where =: P1_CENTER ';
    Another w: w = |' CENTER and =: P1_CENTER ';
    end if;
    end if;

    If: P1_UNIT! = "All" then
    If instr (w, 'where') = 0 then
    w: = ' where ops_unit =: P1_UNIT ';
    Another w: w = |' and ops_unit =: P1_UNIT ';
    end if;
    end if;

    If: P1_SUBUNIT! = "All" then
    If instr (w, 'where') = 0 then
    w: = ' where sub_unit =: P1_SUBUNIT ';
    Another w: w = |' and sub_unit =: P1_SUBUNIT ';
    end if;
    end if;

    If: P1_TM! = "All" then
    If instr (w, 'where') = 0 then
    w: = ' where MGR_LNM'. «, » ||' MGR_FNM =: P1_TM ';
    Another w: w = |' and MGR_LNM'. «, » ||' MGR_FNM =: P1_TM ';
    end if;
    end if;

    If: P1_TL! = "All" then
    If instr (w, 'where') = 0 then
    w: = ' where LDR_LNM'. «, » ||' LDR_FNM =: P1_TM ';
    Another w: w = |' and LDR_LNM'. «, » ||' LDR_FNM =: P1_TL ';
    end if;
    end if;

    If: P1_FROM < =: P1_TO then
    If instr (w, 'where') = 0 then
    w: = ' where month > = TO_DATE('||) QTY | : P1_FROM | QTY | «, » || QTY | "mm/dd/yyyy '. QTY |') and month < = TO_DATE('||) QTY | : P1_TO | QTY | «, » || QTY | "mm/dd/yyyy '. QTY |') ' ;
    Another w: w = |' months and > = TO_DATE('||) QTY | : P1_FROM | QTY | «, » || QTY | "mm/dd/yyyy '. QTY |') and month < = TO_DATE('||) QTY | : P1_TO | QTY | «, » || QTY | "mm/dd/yyyy '. QTY |') ' ;
    end if;
    end if;

    q : = q || w | g;

    Return to q;

    end;


    1 error has occurred
    Graphic invalid query: select the null link, month, to_char (decode ((sum (nvl(i_worked,0)) + sum (nvl(o_worked,0))), 0,0,null,0, (sum (nvl(i_cont,0)) + sum (nvl(o_cont,0))) * 100 / (sum (nvl(i_worked,0)) + sum (nvl(o_worked,0))), '999.00') |) ' %' as the Group of axe_csa_daily_performance_mth monthly Cont_Rt

    Use the following syntax:
    SELECT THE LINK LABEL, THE VALUE
    Of...

    Or use the following syntax for a query that returns more than one series:
    SELECT THE LINK LABEL, VALUE1 [, VALUE2 [, VALUE3...]]
    Of...

    URL LINK
    The LABEL text that displays along a chart axis.
    VALUE1, VALUE2, VALUE3... Numeric columns that define the data values.
    Note: The series for line charts and column names are derived from the alias column used in the query.

    Hello

    Yes, you can remove the to_char(..., 999) as well. Because it is only for purposes of formatting...

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

  • How can I remove cover HP Pavilion Slim Line s5000 series

    How can I remove the cover of HP Pavilion Slim Line s5000 series model s5650z pc?  I really need help with that.

    Thank you

    Hello:

    Although I can't help you with first-hand experience, here is the link to the service manual that provides this information.

    http://h10032.www1.HP.com/CTG/manual/c01949721.PDF

  • Hide a line based on the State.

    Hello, I have a requirement where I have to hide a line based on the State. I am able to highlight the lines but hide the entire line does not work.

    Condition must be met on a line:

    • Thus, if a sum of EXP5_11, EXP6_11, EXP7_11 and EXP8_11 in a current group is all zeros hide this line. Please refer to the RTF-model.

    Attachments:

    • RTF-model.
    • XML file.
    • Sample output generated when the lines are highlighted the meeting status.

    Any help is much appreciated on how I can hide a line.

    EM-: [email protected]

    If please remove your IF condition and add the following code inside the foreach tag

    This works very well in my test.

Maybe you are looking for