bkavuncu / GDO

GDO
MIT License
0 stars 1 forks source link

Fusion chart json dynamic data #148

Closed senakafdo closed 8 years ago

senakafdo commented 8 years ago

Jing, as discussed this fix allows a user to provide the data/dataset portions of a fusioncharts.js configuration from a remote URL. The content stays fixed on the GDO until someone clicks on the "Re Render" button. This also lets you continue to support the dynamic changes to the chart configuration.

The only bit that is new here is that the user will have to insert an additional "dataURL" or "datasetURL" in the following format.

{
    "chartType": "msline", 
    "dataSource": {
        "categories": {
...
        }, 
        "chart": {
...
        }, 
        "dataset": [],
        "datasetURL" : "http://localhost:12332/Content/data.json"
    }
}

The original data or dataset field could be replaced by an empty array.

davidbirchwork commented 8 years ago

This looks like a great feature, thanks guys @JingqingZ can you test this and then issue a merge request to DEV? thanks

JingqingZ commented 8 years ago

Thanks! That's great! I am also working on a few updates for FusionCharts UI. I will test them together later.