FusionChart and Datasoruce

Can I use datasource with FusionChart ?

Thanks in advance

Yes. Both ListGrid and CubeGrid can work with DataSources and can generate charts automatically from the data they are showing (see the Grid Charting and Advanced Cube samples). Charts can also be created directly from data retrieved via DataSource.fetchData() (see the Chart interface docs for chart.data).

Advanced Cube sample does’nt work in case of charting! When I’m trying to build a chart I get an exception because of bad criteria in response, which looks like:

criteria:{
    Scenarios:"aaa"
},
operationConfig:{
    dataSource:"listData",
    operationType:"fetch"
},
appID:"builtinApplication",
operation:"listData_fetch",
oldValues:{
    Scenarios:"aaa"
}

}

Then in advanced cube sample we are trying to execute criteria.get(“rowFacets”).toString(), but there is no rowFacets in citeria!

What am I doing worng?