Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
LittleMuscle #1
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
-
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... -
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... -
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... -
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... -
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, ... -
LittleMuscle #2
Re: dynamically creating charts
i also tried taking out the event:Event so the function reads...
private function addGraph():void {...
LittleMuscle Guest



Reply With Quote

