Dynamic Chart Series (or equivalent)

Hi Folks.
I am looking to dynamically create chart series queries at runtime.
The data that I am presenting in my chart is stored in APEX collections populated at runtime. The series I need to generate at runtime will effectively pivot the data stored in the collections using the sequence number as the key.
For example, if my page generates two collections at runtime like this...
collection1
Sequence C001 C002 C003
    1    AAA  200  300
    2    AAA  300  400
    3    AAA  400  500
collection2
Sequence C001 C002 C003
    1    BBB  500  600
    2    BBB  600  700
    3    BBB  700  800I would need three series to be generated.
The first series would pick up the C001, C002 & C003 from both collections for sequence 1
The second series for sequence 2
The third series for sequence 3.
Does anyone have an opinion on how I could achieve this dynamically? Some pages may need 10 series, some only two.
Any suggestions appreciated.
Many thanks
Kind regards
Simon Gadd

Simon,
I think this can help:
http://apex.oracle.com/pls/otn/f?p=31517:222
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------

Similar Messages

  • Help!!!!! Dynamically creating series in a chart

    I am a newbie in Flex and I have been struggling with it for
    a couple of days. I having failed to find anything that would help
    me around in forums and tutorial so please help!
    I need to create a chart with a variable number of lines. The
    lines need to be configured from actionscript and need to have
    their own dataProvider and formatting.
    I have understood that I need to get to the chart.series
    array and replace elements there with new elements or add elements.
    I have not found correct interfaces to assign the type of the
    series (line, bar, pie, etc) and the color of the stroke. Can
    someone please help!!!
    Here is the code that I have:
    thisChart.series = new Array();
    var oSeries:Series = new Series;
    var oStroke:Stroke = new Stroke(0x000000, 1, .5);
    oSeries.dataProvider = selectedMix;
    oSeries.setStyle("stroke",oStroke);
    thisChart.series.push(oSeries);

    Hi Deeptika,
    Thanks for you reply, Now I am Seeing a light at the end of
    the TUNNEL. :).
    Note: There is no need to specify the dataprovider for series
    in mxml, cause we are adding dynamically in actionscript.
    There is an error in my code. Attached the correct code with
    this message, run in debug mode and watch the values of
    tmpArray and
    sArray. To run in debug mode place a break point by pressing
    Ctrl+Shift+b and press F11. Watch the variable in Expressions
    window. F6 step over and F8 refresh. waiting for your reply.
    i can explain u clearly the requirement, just send me a test
    mail to this id [email protected] i will send u sample
    chart image so that u can understand the requirement.

  • Dynamically Add Series to a flex chart

    Hello,
    Does any one know how to dynamically add series to an areachart? I'm trying to create a dashboard with this kind of chart http://www.meutzner.com/blog/attachments/360/Flex_Finance_Step5.html  but with multiple series. I have the xml like this..and I need to use the kwhsavs as the data points..
    I know I have to do it in the result handler..can someone help me out?.....thanks in advance.
             * Called when HTTPService call completes the data load of the XML chart info.
                private function dataResult(event:ResultEvent):void
                     var tmpData:ArrayCollection = event.result.root.program;
                     for each (var item in tmpData)
                             // Here new series here...
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <program programName="Series 1">
        <totkwhsavs date="2008-01-03" kwhsavs="47632.3200" />
        <totkwhsavs date="2008-01-04" kwhsavs="51418.5600" />
        <totkwhsavs date="2008-01-07" kwhsavs="170604.4800" />
        <totkwhsavs date="2008-01-08" kwhsavs="32632.3200" />
        <totkwhsavs date="2008-01-09" kwhsavs="61200.9600" />
        <totkwhsavs date="2008-01-10" kwhsavs="79312.3200" />
        <totkwhsavs date="2008-01-11" kwhsavs="35648.6400" />
        <totkwhsavs date="2008-01-14" kwhsavs="17688.9600" />
        <totkwhsavs date="2008-01-15" kwhsavs="37404.4800" />
        <totkwhsavs date="2008-01-16" kwhsavs="15341.7600" />
        <totkwhsavs date="2008-01-17" kwhsavs="107674.5600" />
        <totkwhsavs date="2008-01-18" kwhsavs="24521.6000" />
        <totkwhsavs date="2008-01-21" kwhsavs="6541.4400" />
        <totkwhsavs date="2008-01-22" kwhsavs="33707.5200" />
        <totkwhsavs date="2008-01-23" kwhsavs="48791.0400" />
        <totkwhsavs date="2008-01-24" kwhsavs="70316.1600" />
        <totkwhsavs date="2008-01-25" kwhsavs="37237.7600" />
        <totkwhsavs date="2008-01-28" kwhsavs="5273.2800" />
        <totkwhsavs date="2008-01-29" kwhsavs="51608.6400" />
        <totkwhsavs date="2008-01-30" kwhsavs="273521.2800" />
        <totkwhsavs date="2008-01-31" kwhsavs="262619.5200" />
        <totkwhsavs date="2008-02-01" kwhsavs="336914.8800" />
        <totkwhsavs date="2008-02-04" kwhsavs="126445.4400" />
        <totkwhsavs date="2008-02-05" kwhsavs="372644.1600" />
        <totkwhsavs date="2008-02-06" kwhsavs="157114.5600" />
        <totkwhsavs date="2008-02-07" kwhsavs="74941.4400" />
        <totkwhsavs date="2008-02-08" kwhsavs="36904.3200" />
        <totkwhsavs date="2008-02-11" kwhsavs="20378.8800" />
        <totkwhsavs date="2008-02-12" kwhsavs="31257.6000" />
        <totkwhsavs date="2008-02-13" kwhsavs="224701.4400" />
        <totkwhsavs date="2008-02-14" kwhsavs="229971.8400" />
        <totkwhsavs date="2008-02-15" kwhsavs="82936.3200" />
        <totkwhsavs date="2008-02-19" kwhsavs="71586.5600" />
        <totkwhsavs date="2008-02-20" kwhsavs="45050.8800" />
        <totkwhsavs date="2008-02-21" kwhsavs="399826.5600" />
        <totkwhsavs date="2008-02-22" kwhsavs="86696.9600" />
        <totkwhsavs date="2008-02-25" kwhsavs="174406.0800" />
        <totkwhsavs date="2008-02-28" kwhsavs="52768.0000" />
        <totkwhsavs date="2008-03-04" kwhsavs="216846.7200" />
        <totkwhsavs date="2008-03-05" kwhsavs="205426.5600" />
        <totkwhsavs date="2008-03-06" kwhsavs="81350.4000" />
        <totkwhsavs date="2008-03-07" kwhsavs="75051.8400" />
        <totkwhsavs date="2008-03-13" kwhsavs="8718.7200" />
        <totkwhsavs date="2008-03-14" kwhsavs="8397.1200" />
        <totkwhsavs date="2008-03-17" kwhsavs="185443.2000" />
        <totkwhsavs date="2008-03-20" kwhsavs="6000.0000" />
        <totkwhsavs date="2008-03-24" kwhsavs="5782.0800" />
        <totkwhsavs date="2008-03-26" kwhsavs="75034.5600" />
        <totkwhsavs date="2008-03-27" kwhsavs="159776.6400" />
        <totkwhsavs date="2008-03-31" kwhsavs="1143795.8400" />
        <totkwhsavs date="2008-04-01" kwhsavs="52963.2000" />
        <totkwhsavs date="2008-04-08" kwhsavs="4000.0000" />
        <totkwhsavs date="2008-04-25" kwhsavs="50015.0400" />
        <totkwhsavs date="2008-05-08" kwhsavs="440999.0400" />
        <totkwhsavs date="2008-05-27" kwhsavs="7856.6400" />
        <totkwhsavs date="2008-05-28" kwhsavs="999.3600" />
        <totkwhsavs date="2008-06-02" kwhsavs="83316.4800" />
        <totkwhsavs date="2008-06-03" kwhsavs="14005.4400" />
        <totkwhsavs date="2008-06-04" kwhsavs="113183.0400" />
        <totkwhsavs date="2008-06-23" kwhsavs="6055.6800" />
        <totkwhsavs date="2008-06-26" kwhsavs="55369.9200" />
        <totkwhsavs date="2008-07-08" kwhsavs="105760.3200" />
        <totkwhsavs date="2008-07-11" kwhsavs="167619.8400" />
        <totkwhsavs date="2008-07-17" kwhsavs="113564.1600" />
        <totkwhsavs date="2008-07-18" kwhsavs="23229.1200" />
        <totkwhsavs date="2008-07-30" kwhsavs="49492.8000" />
        <totkwhsavs date="2008-08-02" kwhsavs="111351.3600" />
        <totkwhsavs date="2008-08-08" kwhsavs="167619.8400" />
        <totkwhsavs date="2008-08-12" kwhsavs="2707.2000" />
        <totkwhsavs date="2008-08-26" kwhsavs="191064.9600" />
        <totkwhsavs date="2008-08-27" kwhsavs="3519.3600" />
        <totkwhsavs date="2008-08-29" kwhsavs="18752.6400" />
        <totkwhsavs date="2008-09-02" kwhsavs="22167.3600" />
        <totkwhsavs date="2008-09-04" kwhsavs="1082.8800" />
        <totkwhsavs date="2008-09-05" kwhsavs="587137.9200" />
        <totkwhsavs date="2008-09-09" kwhsavs="33824.6400" />
        <totkwhsavs date="2008-09-16" kwhsavs="22167.3600" />
        <totkwhsavs date="2008-09-17" kwhsavs="17763.8400" />
        <totkwhsavs date="2008-09-19" kwhsavs="8674.5600" />
        <totkwhsavs date="2008-09-24" kwhsavs="53396.1600" />
        <totkwhsavs date="2008-09-25" kwhsavs="10428.4800" />
        <totkwhsavs date="2008-10-01" kwhsavs="61750.0800" />
        <totkwhsavs date="2008-10-02" kwhsavs="107643.8400" />
        <totkwhsavs date="2008-10-03" kwhsavs="47462.4000" />
        <totkwhsavs date="2008-10-06" kwhsavs="4005.1200" />
        <totkwhsavs date="2008-10-07" kwhsavs="39736.3200" />
        <totkwhsavs date="2008-10-09" kwhsavs="9152.6400" />
        <totkwhsavs date="2008-10-10" kwhsavs="2616.0000" />
        <totkwhsavs date="2008-10-13" kwhsavs="8268.4800" />
        <totkwhsavs date="2008-10-14" kwhsavs="138812.1600" />
        <totkwhsavs date="2008-10-15" kwhsavs="28195.2000" />
        <totkwhsavs date="2008-10-17" kwhsavs="175518.7200" />
        <totkwhsavs date="2008-10-22" kwhsavs="37278.7200" />
        <totkwhsavs date="2008-10-28" kwhsavs="33956.1600" />
        <totkwhsavs date="2008-10-29" kwhsavs="17937.6000" />
        <totkwhsavs date="2008-10-30" kwhsavs="264252.4800" />
        <totkwhsavs date="2008-10-31" kwhsavs="9727.6800" />
        <totkwhsavs date="2008-11-03" kwhsavs="51020.1600" />
        <totkwhsavs date="2008-11-20" kwhsavs="5414.4000" />
        <totkwhsavs date="2008-11-21" kwhsavs="14672.6400" />
        <totkwhsavs date="2008-11-25" kwhsavs="5414.4000" />
        <totkwhsavs date="2008-12-01" kwhsavs="2165.7600" />
        <totkwhsavs date="2008-12-03" kwhsavs="10558.0800" />
        <totkwhsavs date="2008-12-05" kwhsavs="292814.4000" />
        <totkwhsavs date="2008-12-08" kwhsavs="342307.2000" />
        <totkwhsavs date="2008-12-09" kwhsavs="2707.2000" />
        <totkwhsavs date="2008-12-11" kwhsavs="4005.1200" />
        <totkwhsavs date="2008-12-16" kwhsavs="108993.6000" />
        <totkwhsavs date="2008-12-17" kwhsavs="7841.2800" />
        <totkwhsavs date="2008-12-18" kwhsavs="206042.8800" />
        <totkwhsavs date="2008-12-19" kwhsavs="163659.8400" />
        <totkwhsavs date="2008-12-22" kwhsavs="97653.1200" />
        <totkwhsavs date="2008-12-23" kwhsavs="161386.5600" />
        <totkwhsavs date="2008-12-26" kwhsavs="525004.8000" />
        <totkwhsavs date="2008-12-27" kwhsavs="95824.3200" />
        <totkwhsavs date="2008-12-29" kwhsavs="280452.4800" />
        <totkwhsavs date="2008-12-30" kwhsavs="442554.2400" />
        <totkwhsavs date="2008-12-31" kwhsavs="4610.8800" />
      </program>
      <program programName="Series 2">
        <totkwhsavs date="2008-07-01" kwhsavs="5283.9000" />
        <totkwhsavs date="2008-07-23" kwhsavs="17469.5700" />
        <totkwhsavs date="2008-07-30" kwhsavs="22569.0800" />
        <totkwhsavs date="2008-07-31" kwhsavs="13742.0100" />
        <totkwhsavs date="2008-08-01" kwhsavs="36402.7500" />
        <totkwhsavs date="2008-08-02" kwhsavs="61254.7100" />
        <totkwhsavs date="2008-08-18" kwhsavs="9888.1200" />
        <totkwhsavs date="2008-08-19" kwhsavs="30139.8300" />
        <totkwhsavs date="2008-08-20" kwhsavs="52721.6500" />
        <totkwhsavs date="2008-08-21" kwhsavs="5217.2100" />
        <totkwhsavs date="2008-08-25" kwhsavs="163535.8300" />
        <totkwhsavs date="2008-09-03" kwhsavs="18812.8000" />
        <totkwhsavs date="2008-09-04" kwhsavs="87868.2000" />
        <totkwhsavs date="2008-09-05" kwhsavs="65277.9300" />
        <totkwhsavs date="2008-09-09" kwhsavs="40875.8200" />
        <totkwhsavs date="2008-09-11" kwhsavs="64145.5300" />
        <totkwhsavs date="2008-09-12" kwhsavs="2064.9600" />
        <totkwhsavs date="2008-09-16" kwhsavs="7529.4100" />
        <totkwhsavs date="2008-09-17" kwhsavs="3012.8600" />
        <totkwhsavs date="2008-09-19" kwhsavs="21610.4900" />
        <totkwhsavs date="2008-09-20" kwhsavs="6932.5400" />
        <totkwhsavs date="2008-09-22" kwhsavs="7721.2100" />
        <totkwhsavs date="2008-09-23" kwhsavs="40967.6000" />
        <totkwhsavs date="2008-09-24" kwhsavs="75629.6900" />
        <totkwhsavs date="2008-09-25" kwhsavs="3022.6500" />
        <totkwhsavs date="2008-09-26" kwhsavs="85524.6500" />
        <totkwhsavs date="2008-09-27" kwhsavs="54166.3200" />
        <totkwhsavs date="2008-10-01" kwhsavs="87857.8100" />
        <totkwhsavs date="2008-10-02" kwhsavs="44671.7400" />
        <totkwhsavs date="2008-10-03" kwhsavs="28834.2800" />
        <totkwhsavs date="2008-10-06" kwhsavs="91743.7100" />
        <totkwhsavs date="2008-10-07" kwhsavs="20846.7800" />
        <totkwhsavs date="2008-10-08" kwhsavs="72984.9000" />
        <totkwhsavs date="2008-10-09" kwhsavs="107800.3700" />
        <totkwhsavs date="2008-10-10" kwhsavs="35978.6200" />
        <totkwhsavs date="2008-10-13" kwhsavs="13388.2900" />
        <totkwhsavs date="2008-10-14" kwhsavs="117283.5600" />
        <totkwhsavs date="2008-10-15" kwhsavs="26121.6000" />
        <totkwhsavs date="2008-10-16" kwhsavs="4479.6800" />
        <totkwhsavs date="2008-10-20" kwhsavs="12263.6000" />
        <totkwhsavs date="2008-10-21" kwhsavs="10964.9100" />
        <totkwhsavs date="2008-10-22" kwhsavs="17431.6800" />
        <totkwhsavs date="2008-10-29" kwhsavs="11556.2800" />
        <totkwhsavs date="2008-10-30" kwhsavs="17684.6600" />
        <totkwhsavs date="2008-10-31" kwhsavs="15702.8400" />
        <totkwhsavs date="2008-11-04" kwhsavs="53668.5300" />
        <totkwhsavs date="2008-11-05" kwhsavs="52350.2000" />
        <totkwhsavs date="2008-11-06" kwhsavs="57828.7900" />
        <totkwhsavs date="2008-11-11" kwhsavs="31006.9100" />
        <totkwhsavs date="2008-11-13" kwhsavs="48291.9000" />
        <totkwhsavs date="2008-11-20" kwhsavs="78897.6500" />
        <totkwhsavs date="2008-11-24" kwhsavs="23127.2300" />
        <totkwhsavs date="2008-11-25" kwhsavs="78861.3600" />
        <totkwhsavs date="2008-11-26" kwhsavs="11158.7800" />
        <totkwhsavs date="2008-12-01" kwhsavs="25061.2300" />
        <totkwhsavs date="2008-12-03" kwhsavs="25387.5800" />
        <totkwhsavs date="2008-12-04" kwhsavs="39855.6600" />
        <totkwhsavs date="2008-12-05" kwhsavs="10968.9500" />
        <totkwhsavs date="2008-12-16" kwhsavs="17024.3800" />
        <totkwhsavs date="2008-12-19" kwhsavs="35257.8500" />
      </program>
      <program programName="Series 3">
        <totkwhsavs date="2008-09-29" kwhsavs="33088.1500" />
        <totkwhsavs date="2008-09-30" kwhsavs="22931.1500" />
        <totkwhsavs date="2008-10-01" kwhsavs="56942.0000" />
        <totkwhsavs date="2008-10-02" kwhsavs="26399.0000" />
        <totkwhsavs date="2008-10-03" kwhsavs="26060.4500" />
        <totkwhsavs date="2008-10-06" kwhsavs="25107.6000" />
        <totkwhsavs date="2008-10-07" kwhsavs="40643.3900" />
        <totkwhsavs date="2008-10-08" kwhsavs="79733.4300" />
        <totkwhsavs date="2008-10-09" kwhsavs="62522.1000" />
        <totkwhsavs date="2008-10-10" kwhsavs="39355.0000" />
        <totkwhsavs date="2008-10-13" kwhsavs="128959.1700" />
        <totkwhsavs date="2008-10-14" kwhsavs="70101.0600" />
        <totkwhsavs date="2008-10-15" kwhsavs="38892.3700" />
        <totkwhsavs date="2008-10-16" kwhsavs="64203.1500" />
        <totkwhsavs date="2008-10-17" kwhsavs="70063.9100" />
        <totkwhsavs date="2008-10-18" kwhsavs="23487.7900" />
        <totkwhsavs date="2008-10-20" kwhsavs="93303.6400" />
        <totkwhsavs date="2008-10-21" kwhsavs="132008.0000" />
        <totkwhsavs date="2008-10-22" kwhsavs="73830.8600" />
        <totkwhsavs date="2008-10-23" kwhsavs="21890.0000" />
        <totkwhsavs date="2008-10-24" kwhsavs="40209.0000" />
        <totkwhsavs date="2008-10-28" kwhsavs="35039.6600" />
        <totkwhsavs date="2008-10-29" kwhsavs="148992.5000" />
        <totkwhsavs date="2008-10-30" kwhsavs="62943.6000" />
        <totkwhsavs date="2008-10-31" kwhsavs="57227.5000" />
        <totkwhsavs date="2008-11-03" kwhsavs="6973.7500" />
        <totkwhsavs date="2008-11-04" kwhsavs="3172.0000" />
        <totkwhsavs date="2008-11-05" kwhsavs="107385.5100" />
        <totkwhsavs date="2008-11-06" kwhsavs="95859.0000" />
        <totkwhsavs date="2008-11-07" kwhsavs="23940.0000" />
        <totkwhsavs date="2008-11-08" kwhsavs="2256.0000" />
        <totkwhsavs date="2008-11-12" kwhsavs="54702.0000" />
        <totkwhsavs date="2008-11-13" kwhsavs="37358.1500" />
        <totkwhsavs date="2008-11-14" kwhsavs="23471.6000" />
        <totkwhsavs date="2008-11-17" kwhsavs="146144.9000" />
        <totkwhsavs date="2008-11-21" kwhsavs="63987.7800" />
        <totkwhsavs date="2008-11-24" kwhsavs="66608.7100" />
        <totkwhsavs date="2008-11-25" kwhsavs="51839.6200" />
        <totkwhsavs date="2008-11-26" kwhsavs="25777.0950" />
        <totkwhsavs date="2008-12-01" kwhsavs="37789.4200" />
        <totkwhsavs date="2008-12-02" kwhsavs="25056.3000" />
        <totkwhsavs date="2008-12-03" kwhsavs="36452.6500" />
        <totkwhsavs date="2008-12-04" kwhsavs="30799.7500" />
        <totkwhsavs date="2008-12-05" kwhsavs="21878.9100" />
        <totkwhsavs date="2008-12-06" kwhsavs="18583.0000" />
        <totkwhsavs date="2008-12-08" kwhsavs="25552.6400" />
        <totkwhsavs date="2008-12-09" kwhsavs="97217.9900" />
        <totkwhsavs date="2008-12-10" kwhsavs="84285.9600" />
        <totkwhsavs date="2008-12-11" kwhsavs="29488.8000" />
        <totkwhsavs date="2008-12-12" kwhsavs="13433.6300" />
      </program>
      <program programName="Series 4">
        <totkwhsavs date="2008-01-10" kwhsavs="192711.6750" />
        <totkwhsavs date="2008-01-16" kwhsavs="47435.5450" />
        <totkwhsavs date="2008-01-25" kwhsavs="42353.9250" />
        <totkwhsavs date="2008-01-29" kwhsavs="97847.8450" />
        <totkwhsavs date="2008-02-06" kwhsavs="106005.5750" />
        <totkwhsavs date="2008-02-07" kwhsavs="100189.7250" />
        <totkwhsavs date="2008-02-08" kwhsavs="67175.9400" />
        <totkwhsavs date="2008-02-18" kwhsavs="47212.8100" />
        <totkwhsavs date="2008-02-19" kwhsavs="47212.8100" />
        <totkwhsavs date="2008-02-27" kwhsavs="41060.1700" />
        <totkwhsavs date="2008-03-18" kwhsavs="160624.4700" />
        <totkwhsavs date="2008-03-20" kwhsavs="190567.2250" />
        <totkwhsavs date="2008-03-31" kwhsavs="113977.6800" />
        <totkwhsavs date="2008-04-09" kwhsavs="113977.6800" />
        <totkwhsavs date="2008-04-10" kwhsavs="122362.9500" />
        <totkwhsavs date="2008-04-15" kwhsavs="1154678.0460" />
        <totkwhsavs date="2008-04-28" kwhsavs="373095.0400" />
        <totkwhsavs date="2008-05-01" kwhsavs="179670.3000" />
        <totkwhsavs date="2008-05-02" kwhsavs="179670.3000" />
        <totkwhsavs date="2008-06-27" kwhsavs="987469.3110" />
        <totkwhsavs date="2008-06-30" kwhsavs="619132.6150" />
        <totkwhsavs date="2008-07-04" kwhsavs="99837.4600" />
        <totkwhsavs date="2008-07-11" kwhsavs="35544.5500" />
        <totkwhsavs date="2008-07-15" kwhsavs="142191.3850" />
        <totkwhsavs date="2008-07-16" kwhsavs="267963.6250" />
        <totkwhsavs date="2008-07-17" kwhsavs="179670.3000" />
        <totkwhsavs date="2008-07-18" kwhsavs="181073.0250" />
        <totkwhsavs date="2008-07-21" kwhsavs="100189.7250" />
        <totkwhsavs date="2008-07-23" kwhsavs="285445.3350" />
        <totkwhsavs date="2008-07-25" kwhsavs="85032.5900" />
        <totkwhsavs date="2008-07-31" kwhsavs="190181.5650" />
        <totkwhsavs date="2008-08-01" kwhsavs="66917.1450" />
        <totkwhsavs date="2008-08-02" kwhsavs="50481.8250" />
        <totkwhsavs date="2008-08-04" kwhsavs="101596.6100" />
        <totkwhsavs date="2008-08-14" kwhsavs="82165.2600" />
        <totkwhsavs date="2008-08-15" kwhsavs="41948.9950" />
        <totkwhsavs date="2008-08-19" kwhsavs="517683.2010" />
        <totkwhsavs date="2008-08-21" kwhsavs="59952.7930" />
        <totkwhsavs date="2008-08-22" kwhsavs="517683.2010" />
        <totkwhsavs date="2008-08-29" kwhsavs="115995.9250" />
        <totkwhsavs date="2008-09-22" kwhsavs="1363410.4460" />
        <totkwhsavs date="2008-09-23" kwhsavs="130221.7600" />
        <totkwhsavs date="2008-09-24" kwhsavs="82165.2600" />
        <totkwhsavs date="2008-09-25" kwhsavs="70834.1000" />
        <totkwhsavs date="2008-09-29" kwhsavs="313580.8270" />
        <totkwhsavs date="2008-09-30" kwhsavs="41948.9950" />
        <totkwhsavs date="2008-10-01" kwhsavs="120869.1520" />
        <totkwhsavs date="2008-10-08" kwhsavs="41575.7350" />
        <totkwhsavs date="2008-10-23" kwhsavs="27624.5000" />
        <totkwhsavs date="2008-11-05" kwhsavs="121396.2650" />
        <totkwhsavs date="2008-11-06" kwhsavs="120869.1520" />
        <totkwhsavs date="2008-11-07" kwhsavs="70834.1000" />
        <totkwhsavs date="2008-11-11" kwhsavs="1037228.5230" />
        <totkwhsavs date="2008-11-12" kwhsavs="584143.5000" />
        <totkwhsavs date="2008-11-14" kwhsavs="138229.3520" />
        <totkwhsavs date="2008-11-17" kwhsavs="382103.4810" />
        <totkwhsavs date="2008-11-20" kwhsavs="339721.4770" />
        <totkwhsavs date="2008-11-24" kwhsavs="211180.9280" />
      </program>
    </root>

    Hello,
    Does any one know how to dynamically add series to an areachart? I'm trying to create a dashboard with this kind of chart http://www.meutzner.com/blog/attachments/360/Flex_Finance_Step5.html  but with multiple series. I have the xml like this..and I need to use the kwhsavs as the data points..
    I know I have to do it in the result handler..can someone help me out?.....thanks in advance.
             * Called when HTTPService call completes the data load of the XML chart info.
                private function dataResult(event:ResultEvent):void
                     var tmpData:ArrayCollection = event.result.root.program;
                     for each (var item in tmpData)
                             // Here new series here...
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <program programName="Series 1">
        <totkwhsavs date="2008-01-03" kwhsavs="47632.3200" />
        <totkwhsavs date="2008-01-04" kwhsavs="51418.5600" />
        <totkwhsavs date="2008-01-07" kwhsavs="170604.4800" />
        <totkwhsavs date="2008-01-08" kwhsavs="32632.3200" />
        <totkwhsavs date="2008-01-09" kwhsavs="61200.9600" />
        <totkwhsavs date="2008-01-10" kwhsavs="79312.3200" />
        <totkwhsavs date="2008-01-11" kwhsavs="35648.6400" />
        <totkwhsavs date="2008-01-14" kwhsavs="17688.9600" />
        <totkwhsavs date="2008-01-15" kwhsavs="37404.4800" />
        <totkwhsavs date="2008-01-16" kwhsavs="15341.7600" />
        <totkwhsavs date="2008-01-17" kwhsavs="107674.5600" />
        <totkwhsavs date="2008-01-18" kwhsavs="24521.6000" />
        <totkwhsavs date="2008-01-21" kwhsavs="6541.4400" />
        <totkwhsavs date="2008-01-22" kwhsavs="33707.5200" />
        <totkwhsavs date="2008-01-23" kwhsavs="48791.0400" />
        <totkwhsavs date="2008-01-24" kwhsavs="70316.1600" />
        <totkwhsavs date="2008-01-25" kwhsavs="37237.7600" />
        <totkwhsavs date="2008-01-28" kwhsavs="5273.2800" />
        <totkwhsavs date="2008-01-29" kwhsavs="51608.6400" />
        <totkwhsavs date="2008-01-30" kwhsavs="273521.2800" />
        <totkwhsavs date="2008-01-31" kwhsavs="262619.5200" />
        <totkwhsavs date="2008-02-01" kwhsavs="336914.8800" />
        <totkwhsavs date="2008-02-04" kwhsavs="126445.4400" />
        <totkwhsavs date="2008-02-05" kwhsavs="372644.1600" />
        <totkwhsavs date="2008-02-06" kwhsavs="157114.5600" />
        <totkwhsavs date="2008-02-07" kwhsavs="74941.4400" />
        <totkwhsavs date="2008-02-08" kwhsavs="36904.3200" />
        <totkwhsavs date="2008-02-11" kwhsavs="20378.8800" />
        <totkwhsavs date="2008-02-12" kwhsavs="31257.6000" />
        <totkwhsavs date="2008-02-13" kwhsavs="224701.4400" />
        <totkwhsavs date="2008-02-14" kwhsavs="229971.8400" />
        <totkwhsavs date="2008-02-15" kwhsavs="82936.3200" />
        <totkwhsavs date="2008-02-19" kwhsavs="71586.5600" />
        <totkwhsavs date="2008-02-20" kwhsavs="45050.8800" />
        <totkwhsavs date="2008-02-21" kwhsavs="399826.5600" />
        <totkwhsavs date="2008-02-22" kwhsavs="86696.9600" />
        <totkwhsavs date="2008-02-25" kwhsavs="174406.0800" />
        <totkwhsavs date="2008-02-28" kwhsavs="52768.0000" />
        <totkwhsavs date="2008-03-04" kwhsavs="216846.7200" />
        <totkwhsavs date="2008-03-05" kwhsavs="205426.5600" />
        <totkwhsavs date="2008-03-06" kwhsavs="81350.4000" />
        <totkwhsavs date="2008-03-07" kwhsavs="75051.8400" />
        <totkwhsavs date="2008-03-13" kwhsavs="8718.7200" />
        <totkwhsavs date="2008-03-14" kwhsavs="8397.1200" />
        <totkwhsavs date="2008-03-17" kwhsavs="185443.2000" />
        <totkwhsavs date="2008-03-20" kwhsavs="6000.0000" />
        <totkwhsavs date="2008-03-24" kwhsavs="5782.0800" />
        <totkwhsavs date="2008-03-26" kwhsavs="75034.5600" />
        <totkwhsavs date="2008-03-27" kwhsavs="159776.6400" />
        <totkwhsavs date="2008-03-31" kwhsavs="1143795.8400" />
        <totkwhsavs date="2008-04-01" kwhsavs="52963.2000" />
        <totkwhsavs date="2008-04-08" kwhsavs="4000.0000" />
        <totkwhsavs date="2008-04-25" kwhsavs="50015.0400" />
        <totkwhsavs date="2008-05-08" kwhsavs="440999.0400" />
        <totkwhsavs date="2008-05-27" kwhsavs="7856.6400" />
        <totkwhsavs date="2008-05-28" kwhsavs="999.3600" />
        <totkwhsavs date="2008-06-02" kwhsavs="83316.4800" />
        <totkwhsavs date="2008-06-03" kwhsavs="14005.4400" />
        <totkwhsavs date="2008-06-04" kwhsavs="113183.0400" />
        <totkwhsavs date="2008-06-23" kwhsavs="6055.6800" />
        <totkwhsavs date="2008-06-26" kwhsavs="55369.9200" />
        <totkwhsavs date="2008-07-08" kwhsavs="105760.3200" />
        <totkwhsavs date="2008-07-11" kwhsavs="167619.8400" />
        <totkwhsavs date="2008-07-17" kwhsavs="113564.1600" />
        <totkwhsavs date="2008-07-18" kwhsavs="23229.1200" />
        <totkwhsavs date="2008-07-30" kwhsavs="49492.8000" />
        <totkwhsavs date="2008-08-02" kwhsavs="111351.3600" />
        <totkwhsavs date="2008-08-08" kwhsavs="167619.8400" />
        <totkwhsavs date="2008-08-12" kwhsavs="2707.2000" />
        <totkwhsavs date="2008-08-26" kwhsavs="191064.9600" />
        <totkwhsavs date="2008-08-27" kwhsavs="3519.3600" />
        <totkwhsavs date="2008-08-29" kwhsavs="18752.6400" />
        <totkwhsavs date="2008-09-02" kwhsavs="22167.3600" />
        <totkwhsavs date="2008-09-04" kwhsavs="1082.8800" />
        <totkwhsavs date="2008-09-05" kwhsavs="587137.9200" />
        <totkwhsavs date="2008-09-09" kwhsavs="33824.6400" />
        <totkwhsavs date="2008-09-16" kwhsavs="22167.3600" />
        <totkwhsavs date="2008-09-17" kwhsavs="17763.8400" />
        <totkwhsavs date="2008-09-19" kwhsavs="8674.5600" />
        <totkwhsavs date="2008-09-24" kwhsavs="53396.1600" />
        <totkwhsavs date="2008-09-25" kwhsavs="10428.4800" />
        <totkwhsavs date="2008-10-01" kwhsavs="61750.0800" />
        <totkwhsavs date="2008-10-02" kwhsavs="107643.8400" />
        <totkwhsavs date="2008-10-03" kwhsavs="47462.4000" />
        <totkwhsavs date="2008-10-06" kwhsavs="4005.1200" />
        <totkwhsavs date="2008-10-07" kwhsavs="39736.3200" />
        <totkwhsavs date="2008-10-09" kwhsavs="9152.6400" />
        <totkwhsavs date="2008-10-10" kwhsavs="2616.0000" />
        <totkwhsavs date="2008-10-13" kwhsavs="8268.4800" />
        <totkwhsavs date="2008-10-14" kwhsavs="138812.1600" />
        <totkwhsavs date="2008-10-15" kwhsavs="28195.2000" />
        <totkwhsavs date="2008-10-17" kwhsavs="175518.7200" />
        <totkwhsavs date="2008-10-22" kwhsavs="37278.7200" />
        <totkwhsavs date="2008-10-28" kwhsavs="33956.1600" />
        <totkwhsavs date="2008-10-29" kwhsavs="17937.6000" />
        <totkwhsavs date="2008-10-30" kwhsavs="264252.4800" />
        <totkwhsavs date="2008-10-31" kwhsavs="9727.6800" />
        <totkwhsavs date="2008-11-03" kwhsavs="51020.1600" />
        <totkwhsavs date="2008-11-20" kwhsavs="5414.4000" />
        <totkwhsavs date="2008-11-21" kwhsavs="14672.6400" />
        <totkwhsavs date="2008-11-25" kwhsavs="5414.4000" />
        <totkwhsavs date="2008-12-01" kwhsavs="2165.7600" />
        <totkwhsavs date="2008-12-03" kwhsavs="10558.0800" />
        <totkwhsavs date="2008-12-05" kwhsavs="292814.4000" />
        <totkwhsavs date="2008-12-08" kwhsavs="342307.2000" />
        <totkwhsavs date="2008-12-09" kwhsavs="2707.2000" />
        <totkwhsavs date="2008-12-11" kwhsavs="4005.1200" />
        <totkwhsavs date="2008-12-16" kwhsavs="108993.6000" />
        <totkwhsavs date="2008-12-17" kwhsavs="7841.2800" />
        <totkwhsavs date="2008-12-18" kwhsavs="206042.8800" />
        <totkwhsavs date="2008-12-19" kwhsavs="163659.8400" />
        <totkwhsavs date="2008-12-22" kwhsavs="97653.1200" />
        <totkwhsavs date="2008-12-23" kwhsavs="161386.5600" />
        <totkwhsavs date="2008-12-26" kwhsavs="525004.8000" />
        <totkwhsavs date="2008-12-27" kwhsavs="95824.3200" />
        <totkwhsavs date="2008-12-29" kwhsavs="280452.4800" />
        <totkwhsavs date="2008-12-30" kwhsavs="442554.2400" />
        <totkwhsavs date="2008-12-31" kwhsavs="4610.8800" />
      </program>
      <program programName="Series 2">
        <totkwhsavs date="2008-07-01" kwhsavs="5283.9000" />
        <totkwhsavs date="2008-07-23" kwhsavs="17469.5700" />
        <totkwhsavs date="2008-07-30" kwhsavs="22569.0800" />
        <totkwhsavs date="2008-07-31" kwhsavs="13742.0100" />
        <totkwhsavs date="2008-08-01" kwhsavs="36402.7500" />
        <totkwhsavs date="2008-08-02" kwhsavs="61254.7100" />
        <totkwhsavs date="2008-08-18" kwhsavs="9888.1200" />
        <totkwhsavs date="2008-08-19" kwhsavs="30139.8300" />
        <totkwhsavs date="2008-08-20" kwhsavs="52721.6500" />
        <totkwhsavs date="2008-08-21" kwhsavs="5217.2100" />
        <totkwhsavs date="2008-08-25" kwhsavs="163535.8300" />
        <totkwhsavs date="2008-09-03" kwhsavs="18812.8000" />
        <totkwhsavs date="2008-09-04" kwhsavs="87868.2000" />
        <totkwhsavs date="2008-09-05" kwhsavs="65277.9300" />
        <totkwhsavs date="2008-09-09" kwhsavs="40875.8200" />
        <totkwhsavs date="2008-09-11" kwhsavs="64145.5300" />
        <totkwhsavs date="2008-09-12" kwhsavs="2064.9600" />
        <totkwhsavs date="2008-09-16" kwhsavs="7529.4100" />
        <totkwhsavs date="2008-09-17" kwhsavs="3012.8600" />
        <totkwhsavs date="2008-09-19" kwhsavs="21610.4900" />
        <totkwhsavs date="2008-09-20" kwhsavs="6932.5400" />
        <totkwhsavs date="2008-09-22" kwhsavs="7721.2100" />
        <totkwhsavs date="2008-09-23" kwhsavs="40967.6000" />
        <totkwhsavs date="2008-09-24" kwhsavs="75629.6900" />
        <totkwhsavs date="2008-09-25" kwhsavs="3022.6500" />
        <totkwhsavs date="2008-09-26" kwhsavs="85524.6500" />
        <totkwhsavs date="2008-09-27" kwhsavs="54166.3200" />
        <totkwhsavs date="2008-10-01" kwhsavs="87857.8100" />
        <totkwhsavs date="2008-10-02" kwhsavs="44671.7400" />
        <totkwhsavs date="2008-10-03" kwhsavs="28834.2800" />
        <totkwhsavs date="2008-10-06" kwhsavs="91743.7100" />
        <totkwhsavs date="2008-10-07" kwhsavs="20846.7800" />
        <totkwhsavs date="2008-10-08" kwhsavs="72984.9000" />
        <totkwhsavs date="2008-10-09" kwhsavs="107800.3700" />
        <totkwhsavs date="2008-10-10" kwhsavs="35978.6200" />
        <totkwhsavs date="2008-10-13" kwhsavs="13388.2900" />
        <totkwhsavs date="2008-10-14" kwhsavs="117283.5600" />
        <totkwhsavs date="2008-10-15" kwhsavs="26121.6000" />
        <totkwhsavs date="2008-10-16" kwhsavs="4479.6800" />
        <totkwhsavs date="2008-10-20" kwhsavs="12263.6000" />
        <totkwhsavs date="2008-10-21" kwhsavs="10964.9100" />
        <totkwhsavs date="2008-10-22" kwhsavs="17431.6800" />
        <totkwhsavs date="2008-10-29" kwhsavs="11556.2800" />
        <totkwhsavs date="2008-10-30" kwhsavs="17684.6600" />
        <totkwhsavs date="2008-10-31" kwhsavs="15702.8400" />
        <totkwhsavs date="2008-11-04" kwhsavs="53668.5300" />
        <totkwhsavs date="2008-11-05" kwhsavs="52350.2000" />
        <totkwhsavs date="2008-11-06" kwhsavs="57828.7900" />
        <totkwhsavs date="2008-11-11" kwhsavs="31006.9100" />
        <totkwhsavs date="2008-11-13" kwhsavs="48291.9000" />
        <totkwhsavs date="2008-11-20" kwhsavs="78897.6500" />
        <totkwhsavs date="2008-11-24" kwhsavs="23127.2300" />
        <totkwhsavs date="2008-11-25" kwhsavs="78861.3600" />
        <totkwhsavs date="2008-11-26" kwhsavs="11158.7800" />
        <totkwhsavs date="2008-12-01" kwhsavs="25061.2300" />
        <totkwhsavs date="2008-12-03" kwhsavs="25387.5800" />
        <totkwhsavs date="2008-12-04" kwhsavs="39855.6600" />
        <totkwhsavs date="2008-12-05" kwhsavs="10968.9500" />
        <totkwhsavs date="2008-12-16" kwhsavs="17024.3800" />
        <totkwhsavs date="2008-12-19" kwhsavs="35257.8500" />
      </program>
      <program programName="Series 3">
        <totkwhsavs date="2008-09-29" kwhsavs="33088.1500" />
        <totkwhsavs date="2008-09-30" kwhsavs="22931.1500" />
        <totkwhsavs date="2008-10-01" kwhsavs="56942.0000" />
        <totkwhsavs date="2008-10-02" kwhsavs="26399.0000" />
        <totkwhsavs date="2008-10-03" kwhsavs="26060.4500" />
        <totkwhsavs date="2008-10-06" kwhsavs="25107.6000" />
        <totkwhsavs date="2008-10-07" kwhsavs="40643.3900" />
        <totkwhsavs date="2008-10-08" kwhsavs="79733.4300" />
        <totkwhsavs date="2008-10-09" kwhsavs="62522.1000" />
        <totkwhsavs date="2008-10-10" kwhsavs="39355.0000" />
        <totkwhsavs date="2008-10-13" kwhsavs="128959.1700" />
        <totkwhsavs date="2008-10-14" kwhsavs="70101.0600" />
        <totkwhsavs date="2008-10-15" kwhsavs="38892.3700" />
        <totkwhsavs date="2008-10-16" kwhsavs="64203.1500" />
        <totkwhsavs date="2008-10-17" kwhsavs="70063.9100" />
        <totkwhsavs date="2008-10-18" kwhsavs="23487.7900" />
        <totkwhsavs date="2008-10-20" kwhsavs="93303.6400" />
        <totkwhsavs date="2008-10-21" kwhsavs="132008.0000" />
        <totkwhsavs date="2008-10-22" kwhsavs="73830.8600" />
        <totkwhsavs date="2008-10-23" kwhsavs="21890.0000" />
        <totkwhsavs date="2008-10-24" kwhsavs="40209.0000" />
        <totkwhsavs date="2008-10-28" kwhsavs="35039.6600" />
        <totkwhsavs date="2008-10-29" kwhsavs="148992.5000" />
        <totkwhsavs date="2008-10-30" kwhsavs="62943.6000" />
        <totkwhsavs date="2008-10-31" kwhsavs="57227.5000" />
        <totkwhsavs date="2008-11-03" kwhsavs="6973.7500" />
        <totkwhsavs date="2008-11-04" kwhsavs="3172.0000" />
        <totkwhsavs date="2008-11-05" kwhsavs="107385.5100" />
        <totkwhsavs date="2008-11-06" kwhsavs="95859.0000" />
        <totkwhsavs date="2008-11-07" kwhsavs="23940.0000" />
        <totkwhsavs date="2008-11-08" kwhsavs="2256.0000" />
        <totkwhsavs date="2008-11-12" kwhsavs="54702.0000" />
        <totkwhsavs date="2008-11-13" kwhsavs="37358.1500" />
        <totkwhsavs date="2008-11-14" kwhsavs="23471.6000" />
        <totkwhsavs date="2008-11-17" kwhsavs="146144.9000" />
        <totkwhsavs date="2008-11-21" kwhsavs="63987.7800" />
        <totkwhsavs date="2008-11-24" kwhsavs="66608.7100" />
        <totkwhsavs date="2008-11-25" kwhsavs="51839.6200" />
        <totkwhsavs date="2008-11-26" kwhsavs="25777.0950" />
        <totkwhsavs date="2008-12-01" kwhsavs="37789.4200" />
        <totkwhsavs date="2008-12-02" kwhsavs="25056.3000" />
        <totkwhsavs date="2008-12-03" kwhsavs="36452.6500" />
        <totkwhsavs date="2008-12-04" kwhsavs="30799.7500" />
        <totkwhsavs date="2008-12-05" kwhsavs="21878.9100" />
        <totkwhsavs date="2008-12-06" kwhsavs="18583.0000" />
        <totkwhsavs date="2008-12-08" kwhsavs="25552.6400" />
        <totkwhsavs date="2008-12-09" kwhsavs="97217.9900" />
        <totkwhsavs date="2008-12-10" kwhsavs="84285.9600" />
        <totkwhsavs date="2008-12-11" kwhsavs="29488.8000" />
        <totkwhsavs date="2008-12-12" kwhsavs="13433.6300" />
      </program>
      <program programName="Series 4">
        <totkwhsavs date="2008-01-10" kwhsavs="192711.6750" />
        <totkwhsavs date="2008-01-16" kwhsavs="47435.5450" />
        <totkwhsavs date="2008-01-25" kwhsavs="42353.9250" />
        <totkwhsavs date="2008-01-29" kwhsavs="97847.8450" />
        <totkwhsavs date="2008-02-06" kwhsavs="106005.5750" />
        <totkwhsavs date="2008-02-07" kwhsavs="100189.7250" />
        <totkwhsavs date="2008-02-08" kwhsavs="67175.9400" />
        <totkwhsavs date="2008-02-18" kwhsavs="47212.8100" />
        <totkwhsavs date="2008-02-19" kwhsavs="47212.8100" />
        <totkwhsavs date="2008-02-27" kwhsavs="41060.1700" />
        <totkwhsavs date="2008-03-18" kwhsavs="160624.4700" />
        <totkwhsavs date="2008-03-20" kwhsavs="190567.2250" />
        <totkwhsavs date="2008-03-31" kwhsavs="113977.6800" />
        <totkwhsavs date="2008-04-09" kwhsavs="113977.6800" />
        <totkwhsavs date="2008-04-10" kwhsavs="122362.9500" />
        <totkwhsavs date="2008-04-15" kwhsavs="1154678.0460" />
        <totkwhsavs date="2008-04-28" kwhsavs="373095.0400" />
        <totkwhsavs date="2008-05-01" kwhsavs="179670.3000" />
        <totkwhsavs date="2008-05-02" kwhsavs="179670.3000" />
        <totkwhsavs date="2008-06-27" kwhsavs="987469.3110" />
        <totkwhsavs date="2008-06-30" kwhsavs="619132.6150" />
        <totkwhsavs date="2008-07-04" kwhsavs="99837.4600" />
        <totkwhsavs date="2008-07-11" kwhsavs="35544.5500" />
        <totkwhsavs date="2008-07-15" kwhsavs="142191.3850" />
        <totkwhsavs date="2008-07-16" kwhsavs="267963.6250" />
        <totkwhsavs date="2008-07-17" kwhsavs="179670.3000" />
        <totkwhsavs date="2008-07-18" kwhsavs="181073.0250" />
        <totkwhsavs date="2008-07-21" kwhsavs="100189.7250" />
        <totkwhsavs date="2008-07-23" kwhsavs="285445.3350" />
        <totkwhsavs date="2008-07-25" kwhsavs="85032.5900" />
        <totkwhsavs date="2008-07-31" kwhsavs="190181.5650" />
        <totkwhsavs date="2008-08-01" kwhsavs="66917.1450" />
        <totkwhsavs date="2008-08-02" kwhsavs="50481.8250" />
        <totkwhsavs date="2008-08-04" kwhsavs="101596.6100" />
        <totkwhsavs date="2008-08-14" kwhsavs="82165.2600" />
        <totkwhsavs date="2008-08-15" kwhsavs="41948.9950" />
        <totkwhsavs date="2008-08-19" kwhsavs="517683.2010" />
        <totkwhsavs date="2008-08-21" kwhsavs="59952.7930" />
        <totkwhsavs date="2008-08-22" kwhsavs="517683.2010" />
        <totkwhsavs date="2008-08-29" kwhsavs="115995.9250" />
        <totkwhsavs date="2008-09-22" kwhsavs="1363410.4460" />
        <totkwhsavs date="2008-09-23" kwhsavs="130221.7600" />
        <totkwhsavs date="2008-09-24" kwhsavs="82165.2600" />
        <totkwhsavs date="2008-09-25" kwhsavs="70834.1000" />
        <totkwhsavs date="2008-09-29" kwhsavs="313580.8270" />
        <totkwhsavs date="2008-09-30" kwhsavs="41948.9950" />
        <totkwhsavs date="2008-10-01" kwhsavs="120869.1520" />
        <totkwhsavs date="2008-10-08" kwhsavs="41575.7350" />
        <totkwhsavs date="2008-10-23" kwhsavs="27624.5000" />
        <totkwhsavs date="2008-11-05" kwhsavs="121396.2650" />
        <totkwhsavs date="2008-11-06" kwhsavs="120869.1520" />
        <totkwhsavs date="2008-11-07" kwhsavs="70834.1000" />
        <totkwhsavs date="2008-11-11" kwhsavs="1037228.5230" />
        <totkwhsavs date="2008-11-12" kwhsavs="584143.5000" />
        <totkwhsavs date="2008-11-14" kwhsavs="138229.3520" />
        <totkwhsavs date="2008-11-17" kwhsavs="382103.4810" />
        <totkwhsavs date="2008-11-20" kwhsavs="339721.4770" />
        <totkwhsavs date="2008-11-24" kwhsavs="211180.9280" />
      </program>
    </root>

  • Single Chart Series with multiple color data points

    I am developing an application using the flex chart component
    and I am binding data to 3 different chart series which is pretty
    intense processing. I was wondering can I use only one chart series
    and when I bind the data points just to change the color per data
    point which meet certain criteria?
    Here one method from my application where I am dynamically
    binding data to my series.
    private function loadSeries(data:XMLList, yAxis:String):void
    seriesAdd.yField = yAxis;
    seriesAdd.xField = "Date";
    //seriesDelete.yField = yAxis;
    //seriesDelete.xField = "Date";
    //seriesChange.yField = yAxis;
    //seriesChange.xField = "Date";
    seriesAdd.dataProvider = data.Trade.(A == 'Add');
    seriesAdd.//Can I change the color per each data point if I
    have multiple data sets?
    //seriesDelete.dataProvider = data.Trade.(A == 'Delete');
    //seriesChange.dataProvider = data.Trade.(A == 'Change');
    Thank you

    I think I found something to get me started:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_09.html
    My next question is if I have the following function to fill
    my data points:\
    private function myFillFunction(element:ChartItem,
    index:Number):IFill {
    var c:SolidColor = new SolidColor(0x00CC00);
    var item:ColumnSeriesItem = ColumnSeriesItem(element);
    var sales:Number = Number(item.yValue);
    if (sales >= 50000) {
    return c;
    } else {
    // They have not met their goal.
    c.color = 0xFF0000;
    return c;
    How can I access values that pertain to the specific chart
    item, but are not plotted on the x and y axis. Something similar to
    the checking on the above function, but check if value that is not
    plotted but still exists on the data provider.
    Thanks in advance.

  • How can I creat a dynamic chart legend?

    Will,I want to show multi hosts' dynamic CPU performance (the host ip can be changed).I use those code below for a test:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" backgroundColor="0xFFFFFF" initialize="init()">
         <mx:Script>
              <![CDATA[
                   import mx.charts.ChartItem;
                   import mx.charts.chartClasses.IAxis;
                   import mx.charts.chartClasses.LegendData;
                   import mx.charts.chartClasses.Series;
                   import mx.charts.events.ChartItemEvent;
                   import mx.charts.series.LineSeries;
                   import mx.collections.ArrayCollection;
                   import mx.containers.Canvas;
                   import mx.containers.HBox;
                   import mx.controls.Alert;
                   import mx.graphics.SolidColor;
                   [Bindable]
                   private var dayTimeV:int = 0;
                   [Bindable]
                   private var legendDP:ArrayCollection = new ArrayCollection();
                   //for record whether the ip changed by using the length
                   private var latestIp2Length:Object = new Object();
                   [Bindable]
                   public var statsPpg:ArrayCollection = new ArrayCollection([
                        new ArrayCollection([{dayTime:dayTimeV,CPU:24.0, IP:"100.0.2.0"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:27.6, IP:"100.0.2.1"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:35.4, IP:"100.0.2.2"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:31.6, IP:"100.0.2.4"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:28.3, IP:"100.0.1.6"}]),
                        new ArrayCollection([{dayTime:dayTimeV,CPU:27.2, IP:"100.0.1.9"}])
                   private function init():void{
                        latestIp2Length["100.0.2.0"] = 1;
                        latestIp2Length['100.0.2.1'] = 1;
                        latestIp2Length['100.0.2.2'] = 1;
                        latestIp2Length['100.0.2.4'] = 1;
                        latestIp2Length['100.0.1.6'] = 1;
                        latestIp2Length['100.0.1.9'] = 1;
                        initLegend();
                        createLineSeries();
                   private function createLineSeries():void{
                        for(var i:int = 0 ;i < statsPpg.length ;i++){
                        var lineSeries:LineSeries = new LineSeries();    
                        lineSeries.yField = "CPU";    
                        lineSeries.displayName = "CPU";
                        lineSeries.dataProvider = statsPpg[i];
                        lineSeries.id = "lineSeries"+i;
                        lineSeries.setStyle("adjustedRadius",2);
                        lineSeries.setStyle("radius",40);
                        lineSeries.setStyle("fill","#55CC33");
                        var series:Array = chartPPG.series;
                        series.push(lineSeries);
                        chartPPG.series = series;
                   //find the record using ip
                   private function indexOf(ip:String):int{
                        for(var i:int = 0 ; i < statsPpg.length ;i++){
                        if(statsPpg[i].getItemAt(0).IP == ip)
                             return i;
                        return -1;
                   private function modifyData():void{
                        dayTimeV++;
                        //all new added data
                        var forAdded:ArrayCollection = new ArrayCollection([
                             {dayTime:dayTimeV,CPU:24.0+Math.random()*10, IP:"100.0.2."+dayTimeV},
                             {dayTime:dayTimeV,CPU:27.6+Math.random()*10, IP:"100.0.2."+(dayTimeV+1)},
                             {dayTime:dayTimeV,CPU:35.4+Math.random()*10, IP:"100.0.2."+(dayTimeV+2)},
                             {dayTime:dayTimeV,CPU:31.6+Math.random()*10, IP:"100.0.2."+(dayTimeV+3)},
                             {dayTime:dayTimeV,CPU:28.3+Math.random()*10, IP:"100.0.1."+(dayTimeV+4)},
                             {dayTime:dayTimeV,CPU:27.2+Math.random()*10, IP:"100.0.1."+(dayTimeV+5)}
                        //the data(IP) appear at first time
                        var waitedForAdded:ArrayCollection = new ArrayCollection();
                        for(var i:int = 0 ; i < forAdded.length ;i++){
                             var index:int = indexOf(forAdded[i].IP);
                             if(index != -1){//if we found,append it
                                  statsPpg[index].addItem(forAdded[i]);
                             }else{//if not,
                                  waitedForAdded.addItem(forAdded[i]);
                   var j:int = 0;
                    for(i = 0 ; i < statsPpg.length ;i++){
                         // if length not changed,delete old data and add new
                         if(latestIp2Length[statsPpg[i][0].IP] == statsPpg[i].length){
                              delete latestIp2Length[statsPpg[i][0].IP];
                              var legendIndex:int = findLegendDPData(statsPpg[i][0].IP);
                              statsPpg[i].setItemAt(waitedForAdded[j],0);
                              latestIp2Length[waitedForAdded[j].IP] = statsPpg[i].length;
                              legendDP.setItemAt(newLegendData(waitedForAdded[j].IP),legendIndex);
                              j++;     
                         }else{//if length changed,the data appended already
                              latestIp2Length[statsPpg[i][0].IP] = statsPpg[i].length;
                   private function addData():void{
                        dayTimeV++;
                        newData();
                   private function newLegendData(ip:String):LegendData{
                        var legendData:LegendData = new LegendData();
                        legendData.label= ip;
                        legendData.marker= new HBox();
                        legendData.aspectRatio=1;
                        return legendData;
                   private function findLegendDPData(ip:String):int{
                        for(var i:int = 0;i < legendDP.length;i++){
                             if(legendDP[i].label == ip)
                                  return i;
                        return -1;
                   /* [Bindable]
                   public function get legend():ArrayCollection
                        var legend:ArrayCollection = new ArrayCollection();
                        for (var i:int = 0; i < statsPpg.length; i++)
                             var dataObject:Object = statsPpg[i][0];
                             legend.addItem(newLegendData(dataObject.IP.toString()));
                        return legend;
                   [Bindable]
                   public function set legend(legendData:ArrayCollection):void
                             legend = legendData;
                   private function initLegend():void
                        for (var i:int = 0; i < statsPpg.length; i++)
                             var dataObject:Object = statsPpg[i][0];
                             legendDP.addItem(newLegendData(dataObject.IP.toString()));
                   private function yAxisLabel(value:Object, previousValue:Object, axis:IAxis):String
                        return value + ' %';
              ]]>
         </mx:Script>
         <mx:Panel width="790" title="CPU.IP" layout="horizontal">
              <mx:LineChart  id="chartPPG" name="Comparison" showDataTips="true">
                   <mx:horizontalAxis>
                        <mx:CategoryAxis dataProvider="{statsPpg[0]}" categoryField="dayTime" title="Days" id="categories"/>
                   </mx:horizontalAxis>
                   <mx:verticalAxis>
                        <mx:LinearAxis labelFunction="{yAxisLabel}"  title="CPU" id="yAxis"/>
                   </mx:verticalAxis>
                   <!--<mx:series>
                        <mx:LineSeries id="CPU" yField="CPU" xField="dayTime" displayName="CPU  "/>
                        <mx:LineSeries id="IP" yField="IP" xField="IP" displayName="IP  " />
                   </mx:series>-->
              </mx:LineChart>
              <!--<mx:Legend dataProvider="{chartPPG}" markerWidth="50" markerHeight="4" legendItemClass="MyLegendItem" direction="vertical"  width="174"/>-->
              <!--<mx:Legend id="myActionScriptLegend" creationComplete="createDynamicLegend(event)" />-->
              <mx:Legend id="userLegend" dataProvider="{legendDP}"/>
              <mx:Button label="AddNewData" click="modifyData()"/>
         </mx:Panel>
    </mx:Application>
    the result is here:
    Question:
    1.I using the binding ArrayCollection  legendDP as the Legend's dataprovider, the Legend's showing not changed  when the legendDP changed
    2.How can I fill the Legend's color,the result has no color showed.

    Can anyone help?

  • Dynamic Charting question - On maximum rows and omiy label interval values

    Hi,
    I was wondering if it was possible to define a application variable and then reference it from within a Chart series definition.
    I frequenctly need to go in and exapnd the maximum number of rows for my chart series definitions to a value greater than
    15. And, if I have a Chart with multiple series it seems to make sense that they all have the same value. This made me think
    of trying to use some sort of variable. I tried using a hidden page item. However, Apex seemed to want a static numerical value
    and so I needed to just hard code the value for now. Has anyone had success with somethin else?
    Another issue I have is with the label display. When ploting time series data that allows the user to define a date range its hard
    to know up front how to set the Omit Label Interval. An ida solution would be to define a number of desired points that the chart
    can handle and dynamically assign omit interval based on some sort of formula. Again, the static value assignment makes sense for some
    date inputs and not so much for others.
    Thanks for any suggestions!

    Thanks for your reply.
    Not sure how to change the Chart Type to Custom XML
    For example, for one of my charts under Chart Settings the Chart Type is set as 2D Line.
    I don't see Custom XML as an option on that drop down.
    I do see some XML code under Region Definition | Source. Is that what you are referring to?
    Thanks!

  • Possible to use formulas in chart series data?

    Hello, I need to build chart series from manual values. This is possible but Excel accepts only raw values. When I try to use a calculated value, excel rejects the series format.
    =SERIES("Supply";(Sheet1!$A$97;Sheet1!$H$47);(Sheet3!$B$10;Sheet3!$B$10);4)
    is accepted. I need to adjust it to something like
    =SERIES("Supply";(DATEVALUE("31.12.2014");MAX(Sheet1!A:A;Sheet1!H:H));(Sheet3!$B$10/365;Sheet3!$B$10/365);4)
    this however doesn't fit. Does Excel provide a format for inline evaluating without need to use auxiliary cells?

    It is not possible to evaluate formulas within a Series formula. You can use Names to calculate individual values from formulas, return an array of values or use a dynamic Name to return an array of cells and use Names in Series formulas.
    However for your purposes I don't think even use of Names would help; from your first example your formulas return multiple cell areas (albeit only one cell in each area) and your second example aims to return an array with each formulas calculating each
    element, you'd need a Name of Names which I don't think would work.
    Even if you could do it the way you want I think it would be a bad approach. Why not make use of cells, there's no shortage of them and it would make things much easier for maintenance.
     

  • Dynamic Chart Generation

    Hi all,
    I am trying to generate line chart dynamically. I just want to know that is it possible?
    If yes then how to create chart and passing the chart series dynamically.
    Regards,
    Vinaya.

    Hi
    I could get you.
    But I wish to know how to extract the data points from different series in XML & manipulating it to create a new data provider.
    An illustration of it..

  • How to customize line chart series and symbols?

    Hello Forum,
    who can help me to customize line chart series and symbols color?
    I need to customize this in dynamic way.
    Thanks in advanced.

    See example 8-10 (Example 8-10 Changing Chart Symbol Color) from http://docs.oracle.com/javafx/2.0/charts/css-styles.htm#CIHGIAGE (reproduced here).
    The linked tutorial document contains a picture of how this example renders.
    .chart-series-line {   
        -fx-stroke-width: 2px;
        -fx-effect: null;
    .default-color0.chart-series-line { -fx-stroke: #e9967a; }
    .default-color1.chart-series-line { -fx-stroke: #f0e68c; }
    .default-color2.chart-series-line { -fx-stroke: #dda0dd; }
    .default-color0.chart-line-symbol { -fx-background-color: #e9967a, white; }
    .default-color1.chart-line-symbol { -fx-background-color: #f0e68c, white; }
    .default-color2.chart-line-symbol { -fx-background-color: #dda0dd, white; }Note the two comma separated colors listed for each -fx-background-color for the chart-line-symbol.
    The first color is the color or the outside of the symbol, the second is the inside of the symbol.
    In the sample css you provided you only supply a single background color for the chart-line-symbol, when two colors are required.

  • Need EXPERT's suggestion for APEX CHART SERIES

    Hello Everyone,
    I have been trying to solve an issue with my apex line chart. The scenario is as follows:
    I have a table called revenue. revenues per year are saved in it. and revenues are generated from three sources which are also saved in the same table.
    I have made a line chart on it. works well.
    Now I have to show that if the value of one of the sources had fallen, how must have it affected the total. I made a number field that takes an estimated change value, and build my sql query with it. it works but the problem is that it changes the non-affected source too. it must change the value of the affected source only and hence the total value.
    I hope I make sense and anybody can suggest something.
    bold or I will put it this way, how can I write a select statement for a chart series so that one of the rows value does not change and the other two change. ... ?
    Edited by: Samooray92 on May 30, 2013 2:41 PM

    Samooray,
    Let's work with this question since there is more detail here than in the other one. {thread:id=2543702}
    First it's always help to know:
    Full APEX version
    Full DB/version/edition/host OS
    Web server architecture (EPG, OHS or APEX listener/host OS)
    Browser(s) and version(s) used
    And sometimes this information as well.
    Theme
    Template(s)
    Region/item type(s)
    When a question goes unanswered for a while, there is no need to reply to it or to start a new question. You can edit the original question and just add "Bump" at the bottom and save the changes. This will bump it back to the top of the question list. And by that time, you might think of additional information you can add to the question.
    Say, why would a question go unanswered? Well, easy questions and frequently asked questions with well-known answers can be answered right away. Your question seems more complicated and I don't think we have all the information we need to understand exactly what the question is.
    You are doing a "series" chart. What kind of series chart: bar, column, line? What is each series? For example, components of revenue might be 1) sales, 2) licensing revenue and 3) other. Then you might have one series for sales, a second for licensing revenue and a third for other.
    Could you mock up a trivial example on apex.oracle.com http://apex.oracle.com/pls/apex/f?p=4700:1:0::::: ?
    Regards,
    Howard

  • No longer able to access the "Advanced" options via the Inspector Chart Series Advanced sequence

    In iWorks9 Numbers in attempting to add trendline to a line chart I am suddenly no longer able to access the options under "Advanced" via the Click On Chart Line>Inspector>Chart>Series>Advanced sequence because the triangle button adjacent to Advanced is not highlighted and does not open up when clicked upon. Ideas?

    well ... I spent some time this afternoon repairing disk permissions, checking application preferences, etc. and don't think I found anything directly related to this problem but after a few hours I returned to Numbers and lo and behold something changed and everything is working fine ... and I have no idea what was the cause and what was the fix but I'll take it. Heisenberg was right.

  • InDesign CS5 -- dynamic charting workflow?

    Hi,
    I searched the forum but I feel like I haven't quite found my answer.  Basically, my organization, in the past, has produced a dynamic 'demographic fact sheet' document for communities in the Denver, Colorado USA region. (example: http://www.drcog.org/communityprofiles/PDFs/ArapahoeCounty.pdf)  This was previously done with an Access database and a mail merge in Microsoft Publisher (I know, I know), but we would like to bring this process into CS5, since our graphic designers work in InDesign CS5 and would like to redesign the look and feel of this document while automating this workflow so that it isn't as time-consuming as manually copying and pasting charts for each community.
    What kind of workflow would most easily produce a document like this?  It is essentially a mixture of charts and graphs along with some dynamic text.  I've read about Data Merge and XML, but I'm not sure about the charting and graph part of this -- most of the information I've found online talks about using Illustrator to make dynamic charts, but I'm not quite sure how to put everything together.  Basically, I'd like the process to work like it did with Publisher and Access, if possible.  We basically set up a template and then based on the data, Publisher generated a document that showed the appropriate data  (and correct values in graphs/charts) for every community.  The graphic designers have the CS5 Design Premium package, so they do have access to Illustrator and other Adobe apps if these are necessary.
    The data is stored in an enterprise database now (not Access), so extracting it to a CSV or other type of format is not a problem.
    InDesign is not my area of expertise, but I want to help with the process as much as I can.
    Thank you so much for any insight or recommendations!
    Jonathan

    This type of project would be too data intensive for Indesign. ID's data merge and ID's xml capabilities would not be sufficient either. Not to say that Indesign could not be used to create content, but the data portion would have to be driven with a 3rd party solution, something like XMPie.This type of solution typically is postioned at the print end and ties all the components: content created from ID, variable image, variable text, data export file to create custom chart, etc. to produce a finished customized print piece.

  • How to set Dynamic Time Series in Planning application

    Dear All,
    I am having an issue by setting up dynamic time series (Y-T-D). I have set up at generation level 4. In our application the hierarchy of dimension Period is as follows.
    Yeartotal -> HY1 -> Q1 -> Jan, Feb, Mar
    Consider the following example
    Jan -> 100
    Feb -> 200
    Mar -> 300
    If I want to retrieve "Y-T-D Feb" the result should show me the sum of Jan & Feb in this case it should be 300. What is the syntax of retrieving YTD in smartview.
    In our application "Year" dimension name is "Year". How can I rename this dimension name if this is the requirement.
    Thanks in advance.
    Regards,
    Sami

    The format in Smart View would be Y-T-D(feb) more info at http://docs.oracle.com/cd/E17236_01/epm.1112/sv_user_11121102/ch17s02s02.html
    you will need to rename Year to something like Years, it depends if it is a classic or EPMA to how you rename it.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • CHART BUILDER ERROR WHEN TRYING TO GENERATE DYNAMIC CHARTS ON A JSP PAGE

    I'm working with J Develop 9.03 on Windows 2000 Professional Edition.
    I'm using the JSP demo files provided with Oracle Chart Builder to generate
    dynamic charts. The user specifies the query parameters, including the date
    range and the query results are returned by means of a line chart (with date on
    the x axis and values on the y axis).
    When trying to compile the project I get the following error messages:
    Error(165,2): class FileOutputStream not found in class _graph
    Error(170,5): class File not found in class _graph
    Error(176,4): exception java.io.IOException is never thrown in the
    corresponding try block
    I checked to see that the chartbuilder library (chartbuilder.jar) files are
    loaded into the project library. It's unusual that the class is not being
    found. I don't understand why. I developed my project using the following steps:
    1. Unzipped Chart Builder installation files into c:\Oraclechartbuilder
    2. Loaded chartbuilder class library
    c:\Oraclechartbuilder\chartbuilder\lib\chartbuilder.jar into J Developer class
    path (by selecting <Project Settings> <Paths> and browsing to the
    chartbuilder.jar file).
    3. Created a new JSP page in J Developer (graph.jsp)
    4. Copied JSP code syntax from the Word Pad demo file and pasted into graph.jsp
    5. Changed the DB connection parameters and static directory location on the
    JSP page.
    6. Compiled the project and received the above errors.
    I would like to know why the classes are not being found and how to fix the problem. Thanks, Jaafar

    Hi mshah101,
    This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher)

  • Change color in chart series (Chart Controls)?

    Does anyone know if it's possible to change the color within a series in Microsoft Chart Controls?  My data is X = test time and Y = response time using a column graph.  Currently when the test to collect response time fails it does not
    record a numerical value and when graphed it appears as though the response time was minimal.  I want to make it stand out when a failure occurs, for example to draw a large column and change the color to red (other values are in blue).
    I don't have much experience using Chart Controls yet.  I know you can use an alternate color with a different series of data but it doesn't appear you can change it from within. 
    This is my chart series (when a test fails, the response matches "" and not $NULL):
    [void]$chart1.Series.Add("ResponseTime")
    $chart1.Series["ResponseTime"].ChartType = "Line"
    $chart1.Series["ResponseTime"].BorderWidth  = 1
    $chart1.Series["ResponseTime"].IsVisibleInLegend = $true
    $chart1.Series["ResponseTime"].chartarea = "ChartArea1"
    $chart1.Series["ResponseTime"].color = "#0404B4"
    $DATA | ForEach-Object {
    If ($_.RESPONSE_MS -eq "") {
    $chart1.Series["ResponseTime"].Points.addxy("FAIL",9999)
    Else {
    $chart1.Series["ResponseTime"].Points.addxy( $_.TIME.Remove(5) , ($_.RESPONSE_MS)) }
    I tried changing the color within the if/else but the first .color value it picks up will be used throughout. 

    Hi Tickermcse76,
    To create a new line chart, please refer to this script:
    function New-Chart
    param ([int]$width,[int]$height,[int]$left,[int]$top,$chartTitle)
    # create chart object
    $global:Chart = New-object System.Windows.Forms.DataVisualization.Charting.Chart
    $global:Chart.Width = $width
    $global:Chart.Height = $height
    $global:Chart.Left = $left
    $global:Chart.Top = $top
    # create a chartarea to draw on and add to chart
    $chartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea
    $global:chart.ChartAreas.Add($chartArea)
    [void]$global:Chart.Titles.Add($chartTitle)
    # change chart area colour
    $global:Chart.BackColor = [System.Drawing.Color]::Transparent
    } #New-Chart
    New-Chart -width $width -height $height -left $left -top $top -chartTile $chartTitle
    [void]$global:Chart.Series.Add("Data")
    # $global:Chart.Series["Data"].Points.AddXY($(get-date), $($ht.Values))
    $global:Chart.Series["Data"].Points.DataBindXY($ht.Keys,$ht.Values)
    #$global:Chart.Series["Data"].XValueType = [System.Windows.Forms.DataVisualization.Charting.ChartValueType]::Time
    #$global:Chart.chartAreas[0].AxisX.LabelStyle.Format = "hh:mm:ss"
    #$global:Chart.chartAreas[0].AxisX.LabelStyle.Interval = 1
    #$global:Chart.chartAreas[0].AxisX.LabelStyle.IntervalType = [System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType]::Seconds
    $global:Chart.Series["Data"].ChartType = [System.Windows.Forms.DataVisualization.Charting.SeriesChartType]::Line
    #$global:chart.Series["Data"].IsValueShownAsLabel = $false
    Reference from:
    http://poshcode.org/1205
    To change the chart color, please refer to this script:
    Charting with PowerShell
    I hope this helps.

Maybe you are looking for