Hi All,

    I'm new Flex...   I started the application for plotting chart which is
the combine form of plotand line to drawn.

    i have to load data externally from HTML through FLashVars.. the thing
is i want to load date and no of vistors
    to plot the graph..


   i have choosen flashVars to load it data.. For loading dynamic data bulk
in the array form HTML to Flex we need any method for
  loading data....

 Can any one help at this point..  my code is:

<?xml version="1.0"?>
<!-- charts/MultipleSeries.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; width="1000"
height="600" initialize="init()">
  <mx:Script>
    <![CDATA[
       import mx.controls.Alert;
       [Bindable]
          private function init():void{
              for (var i:String in Application.application. parameters) {
              ta1.text += i + Application.application.parameters[i] + "\n";
              var DECKER:Array =
[{date:Application.application.parameters[i]}];
             }

                /*if(ExternalInterface.available){
                    ExternalInterface.addCallback("FlexFn",flexFn);
                    ExternalInterface.call("javaScriptFn","param from
flex");
                }*/
            }

             private function flexFn(param1):void{
                Alert.show(param1);
            }


        private var DECKER:Array = [
      /*  {date:"Jan-23",close:33.2100},
        {date:"Jan-24",close:33.5600},
        {date:"Jan-25",close:34.9800},
        {date:"Jan-28",close:35.2200},
        {date:"Jan-29",close:35.4000},
        {date:"Jan-30",close:35.5400},
        {date:"Jan-31",close:33.8700},
        {date:"Feb-01",close:34.6700},
        {date:"Feb-04",close:34.5500},
        {date:"Feb-05",close:33.9900},
        {date:"Feb-06",close:34.4800},*/
        ];

    ]]>
  </mx:Script>

  <mx:Panel title="Multiple Data Series" width="980" height="580">
     <mx:PlotChart id="myChart" dataProvider="{DECKER}"
     showDataTips="true">

        <mx:horizontalAxis>
           <mx:CategoryAxis categoryField="date" ticksBetweenLabels="true"
/>
        </mx:horizontalAxis>
        <mx:verticalAxis>
           <mx:LinearAxis minimum="10" maximum="50" />
        </mx:verticalAxis>
        <mx:series>
            <mx:LineSeries  dataProvider="{DECKER}"
                xField="date"
                yField="close"
                displayName="Month"

           >
           </mx:LineSeries>
            <mx:PlotSeries
                xField="date"
                yField="close"
                displayName="Plot 1"
           />
        </mx:series>
        </mx:PlotChart>
       <mx:Legend dataProvider="{myChart}"/>

  </mx:Panel>
  <mx:TextArea id="ta1" width="300" height="200" color="0x21f2f0"/>

</mx:Application>


 i want to combine the loaded data array into single array and to plot the
chart.. Any idea or any reference book please guide
 worked it out.


Regards,
Yuva

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to