fusioncharts

Display legend inside a pie chart with fusion chart

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:49:03
问题 I want to display legend with it's value inside pie chart. I googled it a lot but didn't get any solution. Also, there is no option in fusion charts to achieve this directly. Can anyone please suggest what trick can I apply to do so? I think I need to modify lot of things in library which I don't want so please help me. Refer below image I'm using angular-fusion charts library so I want to do this in angular way. 回答1: If you are using FusionCharts you can achieve this using the attribute

Do ExtJS charts perform better than FusionCharts?

泪湿孤枕 提交于 2019-12-14 01:38:37
问题 We're thinking about replacing FusionCharts with ExtJS charts in our application, since: We already use ExtJS for our entire UI. It would be nice to remove the overhead and expense of another commercial third-party dependency and API. We'd like to be able to display these charts on Flash-less mobile devices. It's much harder to extend and manage FusionCharts' Flash components than normal DOM objects. A few particular pages of our app are chock full of charts (on the order of hundreds of spark

Unable to save image in Fusion Charts v3

吃可爱长大的小学妹 提交于 2019-12-13 07:29:03
问题 I have successfully created a 2D Pie Chart using Fusion Charts v3 API. Following is my HTML file : <html> <head> <title>My First chart using FusionCharts</title> <script type="text/javascript" src="FusionCharts.js"> </script> <script type="text/javascript" src="FusionChartsExportComponent.js"> </script> </head> <body> <div id="chartContainer"></div> <script type="text/javascript"> var myChart = new FusionCharts( "Pie2D.swf", "myChartId", "500", "500", "0", "1" ); myChart.setXMLUrl("age

fusionchart in IE and Mozilla

荒凉一梦 提交于 2019-12-13 05:45:24
问题 I get an error like 'htmlfile: Unknown runtime error' while trying to show fusion chart on a pop-up window in IE 8. But it works fine in Mozilla 3.6. 回答1: If you’re getting an “unknown runtime error” in internet explorer while using the javascript method object.innerHTML=”…some html”, here is a hint to put you on the right track: you’re probabily trying to put a block-level element inside an inline element. Please read http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet

Send XML in a js variable to FusionCharts

吃可爱长大的小学妹 提交于 2019-12-12 04:47:55
问题 Hi I have this php code which ends up with xml data in a string, I then use onClick to send it to a js function $strXML = "<chart><set label='B' value='12' /><set label='C' value='10'/></chart>" <td align='right' onClick='drawchart($strXML)' >&pound $totalcost </td> However when it gets to my js function it does not work and the data is corrupt function drawchart(dataX) { var chart1 = new FusionCharts("../charts/Pie3D.swf", "chart1Id", "400", "300", "0", "1"); chart1.setDataXML(dataX); chart1

How To Save More fusion Charts On Server With Single Button

拟墨画扇 提交于 2019-12-12 03:36:53
问题 I am trying to save graphs on server side. i was succeeded up to save one graph. but i am unable to save more than one graph. here i mentioned 2 graphs but nly one graph is going to save on server. how it can be ? my code is <script type="text/javascript"> var totalCharts = 2; function exportCharts(exportType) { for( var i = 0; i < totalCharts; i++ ) { var num = i+1; var id = "chart"+num+"Id"; exportchart(exportType,id); } } function exportchart(exportType,id) { var chart = FusionCharts(id);

Django - Fusion Charts to display all values in one pie chart

醉酒当歌 提交于 2019-12-11 08:53:10
问题 This is the relevant Fusion charts code for a pie chart. I want to display all the attributes in my database of all entries but according to 'name' dataSource2['data'] = [] # Iterate through the data in `Revenue` model and insert in to the `dataSource['data']` list. for key in all_books: data = {} data['label'] = key.name data['value'] = key.price dataSource2['data'].append(data) Elaboration: Following concept i want to achieve to display all single parameters for every entry data[value1]=key

Angular-FusionCharts : How to fetching data from external .json file?

巧了我就是萌 提交于 2019-12-11 07:36:31
问题 ar app = angular.module('chartApp', ['ng-fusioncharts']); app.controller("MyController2", function($scope, $http){ $http.get('js/data.json').then(function(res,status,xhr){ $scope.countries = res.data; }); }); I want to use the above JSON as the chart data. $scope.dataSource = { "chart": { "caption": "Column Chart Built in Angular!", "captionFontSize": "30", "captionPadding": "25", ........ }, "data": [ ] How can I use the "countries" JSON to be the data for the chart above? Many examples just

Multiple FusionCharts on Same page with Django

夙愿已清 提交于 2019-12-11 06:12:57
问题 I am trying to build a dashboard type site with multiple charts. I am using Django with FusionCharts and a Postregsql database backend. I am able to get one chart to render, but I can't get a second one to appear at all. I think it is probably something in my views.py with how I am creating the functions. Any help is much appreciated. Code is as follows: views.py from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file that contains

Angular2 RC5 Fusion Charts with routing not working because of base href tag

牧云@^-^@ 提交于 2019-12-11 04:33:39
问题 I am using Angular2 rc5 with routing, So in index.html I wrote document.write('<base href="' + document.location + '" />') I am using fusion charts in my app. I have 2 charts in following url in components /fusion1 chart here works properly default url for app and when I click on link the url becomes now /fusion2 here chart won't render properly it displays labels but wont render palette colors. If we see fill url in svg it displays like this fill=url('localhost:8443/fusion1#588xr___120_278