Dynamically assign series names for SVG Chart

I have created a line chart with 5 series in it. I would like the legend name for each series to be dynamically assigned (as a value from a field in the database). Is this possible?
Ideally, i'd also like the number of series to be variable too. Is this possible?

Hi,
I am trying to use the code you gave me above (which normally works fine). But when I put it in the query below with 3 ' (3 quotes) it fails.
Any ideas?
Thanks
Owen
return
'SELECT null link, month label, sumamt "'||:P4_FY||'"
FROM
SELECT
month
, CASE
WHEN MONTH = '''JUN''' THEN 1
WHEN MONTH = '''JUL''' THEN 2
WHEN MONTH = '''AUG''' THEN 3
WHEN MONTH = '''SEP''' THEN 4
WHEN MONTH = '''OCT''' THEN 5
WHEN MONTH = '''NOV''' THEN 6
WHEN MONTH = '''DEC''' THEN 7
WHEN MONTH = '''JAN''' THEN 8
WHEN MONTH = '''FEB''' THEN 9
WHEN MONTH = '''MAR''' THEN 10
WHEN MONTH = '''APR''' THEN 11
WHEN MONTH = '''MAY''' THEN 12
END AS SORT_ORDER
, sumamt
FROM
Select month
, sum(DEAL_VALUE_SUM) sumamt
from my_deals
where country = :P8_COUNTRY
and FY = :P8_FY
group by month))
ORDER BY SORT_ORDER';

Similar Messages

  • Plotting multiple series on an SVG Chart

    Hi,
    I am trying to plot multiple series on an SVG Chart. The moment I add a second series, I get the following error:
    "SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-0093".
    The graph fails to plot multiple series even for the same queries. The query I use is something like the following:
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    I have previously used an SVG chart to plot multiple series and have never had such problems. Any help would be greatly appreciated.
    I tried deleting and recreating the chart - doesn't help.
    Thanks,
    Aswath

    If you want to order the data do it via an in-line view:
    SELECT *
    FROM (
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    )

  • How do you add space between the Series Name and the chart?

    I'm trying to format a 3D pie chart and the series name is nearly unreadable depending on the angle. I would like to add some space between the series name and the chart.

    On my charts, I just select the legends and drag them away from the chart. Hopefully this example helps:
    Regards,

  • Dynamic source for svg-chart

    hi...i'm relativly new in htmldb and i have some trouble to get an task, given by my boss, running.
    the problem is, i want to create an sql-query using the values of some different elemnts on my page. to compine these values i use an process and this process filss an textarea (for testing) with an string that is an sql-query. now i want to tell the svg chart to use this string as datasource for the chart.
    ...as i said, i'm new. maybe the problem is trivial but i can't see the solving. so i would be happy to get an answer.

    Hi Sven,
    Can you send the link of the previous topic you are referring to??? or elaborate as how you are building a function to return a query...
    Thanks,
    Swaroop

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

  • Dynamically assigning field name and field value

    Hi all,
    logic:
    select field1 field2 from table into workarea.
    workarea-field1 will have value as 'MATNR' or 'BUKRS'  or  'KUNNR'  or............etc
    workarea-field1 will have values as '10000025' or  '2010'  or  '102536' or  ............etc
    Now i need to dynamically assign MATNR = 10000025
                                               or   BUKRS =2010
                                               or  KUNNR = 102536
    HOW CAN WE DO THIS.

    Hi,
    Use the ASSIGN COMPONENT statement.
    Regards,
    Ankur Parab

  • Dynamic Series creation for Plot Chart

    Hi,
    I am using a plot chart which takes data from an external XML file.
    Based on certain fields in the data, I create 3 different plot series.
    I use a Combo box to show different plot series based on the selected value from it.
    I am placing another Combo box
    How can do the below task:
    I need to create some dynamic series based on some node elements in the series for which the chart is currently shown.
    I create another Combo box to show the above generated plot series based on the selected value from it.

    Hi,
    I am using a plot chart which takes data from an external XML file.
    Based on certain fields in the data, I create 3 different plot series.
    I use a Combo box to show different plot series based on the selected value from it.
    I am placing another Combo box
    How can do the below task:
    I need to create some dynamic series based on some node elements in the series for which the chart is currently shown.
    I create another Combo box to show the above generated plot series based on the selected value from it.

  • Dynamically generating file names for 2 File ( 1: 2 mapping transformation)

    Hi ,
    I have a scenario Proxy to File(FCC) with 1:2 transformation in message mapping ie 1 sender and 2 receiver interface ....
    1 Message mapping
    1 Operation mapping
    1 RD , 1 ID and 2 file receiver channels  and 2 receiver agreements.
    I need to dynamically generate the filename say abc.(first 9 characters of mesg id) and xyz.(first 9 characters of mesg id)
    I used dynamic configurations with ASMA settings, created 2 UDF assigned each of these to header node of r receiver message types.
    Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating only one file with xyz.(first 9 characters of mesg id)
    name .
    Need your valuable inputs
    Thanks and regards,
    Pavithra

    As dynamic configuration doesnot work in case of 1:n mapping what  you need to do is
    Create a field Filename in your source data structure
    Create a1:1 mapping between your source structure and source structure
    In that 1:1 mapping on the target structure assign UDF for file name
    Now this target structure will be used as a source structure in your next 1:2 mapping
    Under operation mapping add first the 1:1 mapping for source and then the multimapping
    regards
    Ninad

  • Dynamic Remote File Name for delivering report via FTP

    As many of the threads had the same query about how to pass dynamic filename while scheduling a report using ftp option.
    My requirement is to append the 'ID' which is the identifier of the report with the template name in the Remote Filename section.
    Eg. if ID is 1-34RT5 and the filename should be 1-34RT5_abc.pdf
    I tried appending date(%m%d%y) and it worked for me, but how can I append a parameter?
    Is it possible in stand alone BI Publisher 10.1.3.4?
    Pls let me knw if someone has implemented this. Would really Appreciate.

    for bursting, can I change dinamically the file name?
    I have to burst an invoice report to send to different customer and store to a FTP archive folder.....
    can I change dinamically this name?
    can I select fields to name the pdf file name?
    can I change object and text of the e-mail?
    tks a lot to all
    Andrea

  • Drag and Drop functionality for SVG charts.

    Has anyone been able to get a drag and drop functionality with charts?
    I've read where Vikas was able to accomplish this with reports, but, unfortunately, it was an old post and his example is no longer available.
    I understand that this is more on the browser/presentation layer rather than the back-end, but, judging from the replies from the mainstays in this forum along similar lines, I'm hoping someone may have accomplished this already.
    I'm trying to get this to work for a "dashboard" type application I'm trying to prove out using HTMLDB.
    Your responses are appreciated.
    Thanks

    Hello,
    I've done drag and drop using the Adobe SVG Viewer before in a whiteboard application built on top of ... you guessed it... Apex. Unfortunately I do not have an example I can share with you but I know it can be done because I did it, trust me ;) . I am planning on building out that application as an application anybody can download and use but unfortually it will be bit.
    Your best bet at the moment is looking on google http://www.google.com/search?q=svg+drag+and+drop there are quite a few examples.
    Oh also look at this file in the images directory /images/javascript/svg_js_includes/svg_common/oracle.svgNodes.js it has quite a few helper functions and that file is included in every chart by default so there are functions you can use, (no drag and drop unfortunalty)
    If you have can lock down the users in your environment to use only Firefox or Safari you can look at canvas as well it's pretty handy and can do alot of the same stuff
    http://developer.mozilla.org/en/docs/Drawing_Graphics_with_Canvas
    and of course some simple examples in Apex
    http://apex.oracle.com/pls/otn/f?p=11933:78 (it runs on keypress in the textarea I use it to mess with Canvas constructs)
    Carl
    Message was edited by:
    Carl Backstrom

  • Dynamically assigning table name in select statement

    how can i assign the table name dynamically in Select statement?
    i tried following code
    create or replace procedure proc1
    as
    x varchar2(100);
    y varchar2(10);
    begin
    x='UNIT_MASTER';
    execute immediate 'select unit_code into y from x where
    rownum=1';
    dbms_output.put_line(y);
    end;
    the procedure is created but when i execute the procedure the
    error is shown in the execute immediate statement

    Do the following :
    Create or replace procedure pro1 as
    x varchar2(100);
    y varchar2(10);
    begin
    x := 'UNIT_MASTER';
    EXECUTE IMMEDIATE 'select unit_code from '||x||' where rownum
    = 1' INTO y;
    dbms_output.put_line(y);

  • Dynamically setting manager name for trap

    As per the SEA documentation, trap destinations are specified through master agent configuration file and need to be set before starting master agent.
    We want add more managers dynamically i.e. after master and subagent are started and communicating with one manager.
    Does snmpdx provide any MIB variable to "set" the manager name? Is there any other alternative such as command line parameter or API to set the manager name?
    Thanks
    Dhananjay

    Hi,
    This feature is not supported in SEA. All the configuration should be done before starting master agent.
    To register the subagent, you can use any of the following two methods.
    * Static method : The master agent reads agent resource files. This resource
    file contains an entry for each subagent.
    * Dynamic method : The master agent receives the information from the subagents. The subagent sends a SET request containing the MIB objects needed to register with the Master Agent, through the use of the registration API.
    Using SEA, there is no way you can add the managers dynamically for traps.
    I suggest you may have look on new product from SUN i.e SunMC( Sun Management Center) which has lot of new features.
    HTH.
    Thanks,
    Santosh

  • Data label formatting for SVG charts seems to have a bug in 1.6.

    Could you take a look at
    http://htmldb.oracle.com/pls/otn/f?p=20794:1
    The first chart does not have a format mask and the chart works correctly. The 2nd chart is an exact copy of the first chart, but has a Data Label Format mask. I have tried several different format masks and they all cause the chart to only display one bar.
    By the way, this worked correctly in 1.4. I discovered it on moving an application to 1.6.
    Thanks

    Doyle,
    you can work around the problem by getting rid of the data format in the page definition and applying your own formatting using the TO_CHAR function.
    You could even make it dynamic by storing the data format in a page item, picking it from a static LOV for instance.
    That would allow a user to choose the preferred one.
    If you don't want to give the user this flexibility, then you can store the mask in a hidden item, so that you can make the feature available at a later stage of development.
    Bye,
    Flavio

  • Dynamically assign column names in reports

    I have a report that has to display the data for the years within the given date range.
    For example, for customer A I need to display order value placed in each year between the date range 01-dec-2010 till 31-dec-2014.
    From Date : 01-dec-2010 To Date :31-dec-2014
    Output should be a follows :
    Customer 2010 2011 2012 2013 2014
    A 50 40 60 100 20
    This means that if the date range is 2010 to 2015 then output will be as follows
    Customer 2010 2011 2012 2013 2014 2015
    A 50 40 60 100 20 50
    So the report column name must change accoding to the Fm/To Period range
    Please tell me the coding for dynamically changing report column names as per the parameters 'From Dt' and 'To Dt'.

    Hi,
    First and best option I will recommend is to create a MATRIX report.
    Second option if the number of columns are fixed,
    create fixed no of date ranges as parameters or placeholder columns (can be achieved even with 2 parameters start date and end date), you just need to use DATE is formula calculations cleverly.
    Now create formula columns and pass the date ranges as parameters to the respective column formulas.
    Best Regards
    Arif Khadas

  • How to assign table name for select query in loop.

    Hi friends my requirement is count the no of records of all the database table which comes into an internal table ."Check the below coding". Iam  fetching the tables from dd03l table into an internal table .plz give me a sujjesion how to assign a table name in select query  in a loop.
      SELECT tabname FROM dd09l
                INTO TABLE i_dd09l
                WHERE protokoll = 'X'.
      IF sy-subrc = 0.
        SORT i_dd09l BY tabname.
      ENDIF.
      LOOP AT i_dd09l.
        SELECT COUNT(*) INTO val FROM i_dd09l-tabname.
        IF sy-subrc = 0.
          i_dd09l-count = val.
        ENDIF.
        MODIFY i_dd09l INDEX sy-index.
        CLEAR val.
      ENDLOOP.
    error : 'I_DD09L-TABNAME' is not defined in the abap dictionary as a table.

    data: dy_table type ref to data,
          dy_line type ref to data,
          xfc type lvc_s_fcat,
          ifc type lvc_t_fcat,
          dy_field type ref to data.
    LOOP AT i_dd09l.
    perform get_structure using i_dd09l-tabname .
    CREATE DATA dy_table TYPE TABLE OF (_dd09l-tab_name).
        UNASSIGN <dyn_table>.
        ASSIGN dy_table->* TO <dyn_table>.
    SELECT COUNT(*) INTO val FROM <dyn_table>.
    IF sy-subrc = 0.
    i_dd09l-count = val.
    ENDIF.
    MODIFY i_dd09l INDEX sy-index.
    CLEAR val.
    ENDLOOP.
    form get_structure using p_table.
      data : idetails type abap_compdescr_tab,
      xdetails type abap_compdescr.
      data : ref_table_des type ref to cl_abap_structdescr.
    Get the structure of the table.
      ref_table_des ?=
      cl_abap_typedescr=>describe_by_name( p_table ).
      idetails = ref_table_des->components.
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
    endform.                    "get_structure
    Try like this hope it will work.
    Regards,
    madan.

Maybe you are looking for

  • Problems sharing iTunes library across multiple accounts on one imac

    I have followed the Mac OS instructions in this article http://support.apple.com/kb/HT1203 to share music accounts on the family iMac by putting the iTunes Media folder in a public directory. When I go to connect to this library the I cannot see the

  • Script to 'insert word'

    Is it possible to use applescript to 'insert a word' in the same way it might insert the date? I ask because it's been nagging me day in/day out as to whether or not I can, even marginally use applescript to create a bundle of scripts (perhaps saved

  • Lsmw error handling

    Hi, all wat r the error handling methods in lsmw, Can any body explain.

  • Can't burn DVDs and the CDs are getting spotty ...

    I have been reading some threads about the DVD burning troubles and it all seems over my head. What's happening is that the DVD burn process goes absolutely fine until the very end when it claims that it has lost contact with the devide blah blah bla

  • Bluetooth mouse issue

    My bluetooth mouse stopped working on my mac mini.  pointer stuck in upper lft corner of screen. the mouse is a logitech and also have an apple bluetooth keyboard.  replaced mouse and  have the same issue.