shamasis
Members-
Content count
231 -
Joined
-
Last visited
-
Days Won
1
Everything posted by shamasis
-
Is it possible to feed data from javascript to chart for real time charting?
shamasis replied to dsanjay's topic in Javascript Problems
... Greetings, After you have received the data from your JavaScript method, you can do the following: 1. Create a FusionCharts compatible data-xml from your data 2. Update FusionCharts with the XML generated from step 1. The process to update Chart using JavaScript is mentioned at "FusionCharts and JavaScript" section in FusionCharts documentation. (Ref: http://www.fusioncharts.com/docs/ ) In particlular, look out for the setDataXML() method exposed by FusionCharts. (Ref: http://www.fusioncharts.com/Docs/?JS_setDataXML.html ) -
Greetings, Oh... this is a notorious error! Kindly check whether your FCExporter.php contains any new-line character either before or after the <?php ... ?> code-block!
-
... FusionCharts does not natievly support CSV data as of now. However, you can achieve the same using simple JavaScript codes. There is a very basic example to do the same for a typical scenario, posted at: http://www.shamasis.net/2009/08/generating-pareto-chart-data-for-fusioncharts/ You can refer to the JavaScript there so that you can modify and use the code as per your requirement.
-
... Ok... you guys are great at making me pretend modesty. Thanks!
-
... Greetings, For FusionCharts, "set" values have one-to-one linear mapping with categories only. Logically, datasets have no mapping with categories and vice-versa.
-
... Greetings, You can co-relate categories with set-values, only when every set-value has a corresponding category field. Now, you need to ask your DB department to either give you the DataBase Schema or to tell you what is the name of the category column in the table where the set-values are stored. Once you have the above information, you can compare category of every set-value with the initial set of categories and correspondingly generate your XML as discussed in our previous posts ( http://www.fusioncharts.com/forum/FindPost19187.aspx ).
-
Data is not updating from the xml which we get from database
shamasis replied to [email protected]'s topic in FusionCharts and JSP
... (3^2 - 2^2) * 2 -
On DataLoadError do not render chart
shamasis replied to TexasWebDevelopers's topic in Javascript Problems
... Yeah Baby! -
... Greetings, You would require to make adjustments to our PHP codes to achieve what I had mentioned in previous post. Someone from our team will soon post the updated files here.
-
... Yes. The process is simple: When user clicks export: Using JavaScript, get the chart's XML Set animation property of the chart to '0' Get the "caption" property and store it in a JS variable Change the caption property to your new value Update the chart by setting this updated dataxml using setDataXML method Begin export When export is completed, on the callback event run a JS function The above JS function will again get the charts XML, Read the caption stored from step (3) and update the XML Again do setDataXML to restore the old caption.
-
... Greetings, In general, realtime charts do not have any caching issue as the browser is not involved much while fetching data. I hope you are using the correct method for loading real-time charts as specified at FusionWidget documentation (http://www.fusioncharts.com/widgets/docs/) section: "Data Streaming Charts > Creating a simple example." http://www.fusioncharts.com/widgets/docs/Contents/DSC_Example.html If your problem persists even after implementing the real-time charts in the above-mentioned way, then send us a working sample of your code and we will look into it.
-
how Drag-node Chart Updated positions of node can be sent back to server for processing when you add a node
shamasis replied to a topic in Using PowerCharts XT
... Can you kindly rephrase or elaborate exactly what you want to know? Otherwise, if you refer to the resources pointed out to you at http://www.fusioncharts.com/forum/Topic19481-23-1.aspx#bm19494, you will understand how the entire data is transmitted. -
... Greetings, The label of each chart inside the export component is always the "caption" of the chart. This is not customizable as of now, but if this is an extreme requirement, there are workarounds. On beginning of the export process, you can, using JavaScript, retrieve the XML, modify the caption, update the chart using setDataXML and then begin export. After the export completes, repeat the previous steps and restore your caption. The above process may not appear that elegant, but it will serve your purpose.
-
how Drag-node Chart Updated positions of node can be sent back to server for processing when you add a node
shamasis replied to a topic in Using PowerCharts XT
... Greetings, As you might have already understood that as because saving the node position of a DragNode chart is possible in ASP, it is easily possible in JSP as well. Developing a sample application with database connectivity might not be feasable, but what we can do is implement something similar where data is read from and written to an XML file. You can refer to it and replace the section where data is saved in XML file, to your own code that saves in database. -
how Drag-node Chart Updated positions of node can be sent back to server for processing when you add a node
shamasis replied to a topic in Using PowerCharts XT
... Greetings, We do have examples illustrating ways to post data from drag-node charts. In the PowerCharts download package, have a look at GalleryDragNode1.html. The example is also available online at http://www.fusioncharts.com/powercharts/Gallery/DragNode1.html. -
Changing the menu labels in Drag-node Chart
shamasis replied to Cassia's topic in Using PowerCharts XT
... Greetings, You can surely get the updated data from the drag-node charts. The process to do the same has been outlined vividly in our PowerCharts documentation at http://www.fusioncharts.com/pcdocs/. Refer to sections mentioned below: Drag-able Chart > Submitting data as form elements Drag-able Chart > Reading data using JavaScript -
... Greetings, Even if data gets generated inside the source code, it is part of the <script> block. So, it should not matter. However, make sure that your script block is W3C standard by putting scripts in the form: // --></script>
-
... Greetings, myExportComponent.sourceCharts will accept an array of chart ids and you are sending it csv. So, instead just do myExportComponent.sourceCharts = arrChartId; and it will work. Refer http://www.fusioncharts.com/docs/: Exporting charts as PDF/Images >JavaScript Reference > JavaScript API
-
... Greetings, You need to check from your database and/or the objCategory object as to what is the corresponding category for each label. IMHO: there is most likely a corresponding category for every item in the region. If the object does not return one, you might need to fetch this data directly from the database by joining related tables. This is perhaps beyond our scope to help you out directly with the codes. However, if you can figure out the above-mentioned correspondence, we can proceed for a final solution.
-
... Greetings, Are you trying to do a server-side export or client-side export? The code to do client-side batch export is: http://www.fusioncharts.com/Demos/ExportChart/Contents/batch_export.html An implementation of server-side batch export is already provided at: http://www.fusioncharts.com/forum/Topic19119-32-1.aspx Let me know if these help.
-
... Greetings, Does your sample code already implement the logic that we had discussed in my previous post? If not, then to speed up the process of our resolution, I would like you to do the same and then re-send me the code.
-
... Greetings, It is somewhat difficult to convey this logic without having a working sample code from your side and without knowing the database schema. So, I am trying to explain the best that I can. In your method prepareDatasetXML(), you are running a loop in line number 28. What I can see is that this loop iterates through all values present in objCategory.getListOfSet(). This is where you need to modify. This loop will need to run through all the categories, something like in line 7 of prepareCategoriesXML(). While it runs through this loop, you should also define a counter outside the loop (say, c) starting from 0. Now, while in the loop, you need to check whether the value corresponding to objCategory.getListOfSet().get© is of the same category as ((Category)mapOfCategory.get(me).getLabel();. If yes, then generate a "<set value='"+objCategory.getListOfSet().get©+"'/>" and increment the outer counter c. If no, then generate an empty set.
-
... Greetings, Have you included FusionCharts.js as well. If yes, make sure it is included before FusionCHartsExportComponent.js If things still doesn't work, give us a live URL to test or a scaled-down version of your work.
-
... Yes, you can use the getImageData() function on a chart to get an RLE stream of image. You can correspondingly convert this run-length encoded stream into bitmap or your own purpose. The RLE has semi-colon as row separator, comma as run separator and each run has the color and the run-length separated by an underscore. In case you are using a TOTAL Flex solution (http://www.fusioncharts.com/flex/), capturing bitmap data of the embedded chart is very simple using native Flex commands as below:
-
Chart not saving as PDF on server Side: PHP Export Handler Issue ?
shamasis replied to MT_MANC's topic in FusionCharts and PHP
... The chart does NOT get automatically exported server-side, unless you explicitly write JavaScript codes to do the same. I have attached a demo application that automatically starts exporting four charts upon page load. Hope this is useful. server-side_batch_export.zip