Search the Community
Showing results for tags 'dataSource'.
Found 3 results
-
[Fusiontime] Fetch data on zoom/timerange adjustments
mnowotny posted a topic in Suggestions & Requests
Hello, we've been using fusioncharts for more than 5 years already and we're really excited about fusiontime charts. They fit our requirements very well because most of the time we want to display timeseries data. We request our data with a stepping parameter to ensure we don't have to wait several seconds for the response. We then want to fetch more dense data when we zoom in/adjust the timerange. Here's an example of how we would like to use it: Load data of the last 100 days with a stepping of 30 minutes for each data point. Zoom into the last week Load (add) data of the last week with a stepping of 5 minutes for each data point. Zoom out to the last 100 days Data is already available. The dense data should be binned by fusiontime like it's already implemented. I read the fusiontime guide but I didn't found any event or anything comparable to load data for a certain timerange. If there's a way to do this please let me know! Kind regards mnowotny- 1 reply
-
- fusiontime
- datasource
-
(and 2 more)
Tagged with:
-
Use of variable for providing dataSource in fusioncharts
navaneeswar posted a topic in Javascript Problems
var arrcolor = ["00ff00", "800080", "ffa500", "ff0000"]; var count = data.length; for(var i=0;i<count;i++) { var obj = { label : data.Description, value : data.Value, link : "JavaScript: AnalysisByDrillDownLaceScoreGraph(" + data.Description + ")", color : arrcolor } data_array.push(obj); } var objJSON = { chart : { "bgcolor": "ffffff", "xAxisName": "Range", "yAxisName": "Count", "formatnumber": "1", "formatnumberscale": "6", "sformatnumber": "1", "showplotborder": "0", "canvasborderalpha": "0", "theme": "zune" }, data : (data_array) }; var newdata = JSON.stringify(objJSON); var AnalysisChart = new FusionCharts({ type: 'mscolumn2d', renderAt: 'divChartAnalysis', width: '110%', height: '250', dataFormat: 'json', dataSource: newdata }); AnalysisChart.render(); This is how i prepared the chart . the newdata is as follows newdata = {"chart":{"bgcolor":"ffffff","xAxisName":"Range","yAxisName":"count","formatnumber":"1","formatnumberscale":"6", sformatnumber":"1", "showplotborder":"0","canvasborderalpha":"0","theme":"zune"},"data":[{"label":"0-4","value":426,"color":"00ff00"},{"label":"5-9","value":2655,"color":"800080"},{"label":"10-14","value":1808,"color":"ffa500"},{"label":"15-19","value":45,"color":"ff0000"}]} Yet the fusionChart is displaying no data to display.. Pls someone help me with this. the state of dataready is shown as false. -
I have been trying to dynamically generate xml data source and then setting up the dataSource of my fusion chart object. I always get the "No data to display". It appears that the fusion chart object is not taking up the data source. Any help will be appreciated. Thanks! <div id="PC_pnlChart"> <script type="text/javascript"> var myChart = new FusionCharts('../Fusion-Charts/Line.swf', 'MyChartId', '100%', '500', '0', '1'); myChart.dataFormat = 'xml'; myChart.dataSource = "<chart caption='Harrys SuperMart' subcaption='Monthly revenue for last year' xaxisname='Month' yaxisname='Amount' numberprefix='$' palettecolors='#008ee4' bgalpha='0' borderalpha='20' canvasborderalpha='0' useplotgradientcolor='0' plotborderalpha='10' placevaluesinside='1' rotatevalues='1' valuefontcolor='#ffffff' captionpadding='20' showaxislines='1' axislinealpha='25' divlinealpha='10'><set label='Jan' value='420000' /><set label='Feb' value='810000' /><set label='Mar' value='720000' /><set label='Apr' value='550000' /><set label='May' value='910000' /><set label='Jun' value='510000' /><set label='Jul' value='680000' /><set label='Aug' value='620000' /><set label='Sep' value='610000' /><set label='Oct' value='490000' /><set label='Nov' value='900000' /><set label='Dec' value='730000' /></chart>"; myChart.render(PC_pnlChart); </script> </div>