dynamically creating charts

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default dynamically creating charts

    i am trying to dynamically create a chart but it isn't working. can someone
    look at my code and tell me what i am doing wrong.

    private function addGraph(event:Event):void {
    var gr:ColumnChart = new ColumnChart();
    gr.id="graph2";
    gr.dataProvider="{feedRequest.lastResult.videos.vi deo}";
    var series:Object = gr.series[0]; ////(i tried var series:Object =
    graph2.series[0]; but this returns error:undef property graph2)
    series.yField = "views";
    hbox1.addChild(gr);
    }


    i tried modelling the code after the 3rd example at
    [url]http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont[/url]
    ext=LiveDocs_Parts&file=00001212.html
    here is the httpservice:
    <mx:HTTPService id="feedRequest" url="http://ws.jamesward.org/youtube.xml"
    useProxy="false"/>

    LittleMuscle Guest

  2. Similar Questions and Discussions

    1. Dynamically Adding Vertical Axis to Flex Charts
      Hello, I have an application that enables the users to dynamically select what series their chart is displaying. Users often want to plot multiple...
    2. Creating charts in actionscript
      So no on at my office can find anything on this, and i have yet to find the problem. Has anyone tried to create a chart using only Action...
    3. Creating or importing charts into Illustrator CS
      I'm working on a gardening catalogue which has a mix of clear cut illustrations and tables showing products/descriptions/qty/prices over a background...
    4. Creating a large number of charts automatically
      Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel...
    5. Library for creating Charts and Graphs.
      Hi, Does anyone knows where I can find a C/Carbon library for creating Charts and Graphs ? Any help is welcome... Thanks in advance, ...
  3. #2

    Default Re: dynamically creating charts

    i also tried taking out the event:Event so the function reads...

    private function addGraph():void {...
    LittleMuscle Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139