cy163

Members
  • Content count

    28
  • Joined

  • Last visited

Everything posted by cy163

  1. Hi ALL I am using FusionChart for Flex. I found that I can onlyn use the property 'FCDataXML' to get the XML string, but noooot with the method 'FCSetDataXML'. Please help. I have not been able to solve this problem for a long time.
  2. Hi ALL, I am using FusionChart with Visual C++ to illustrate statistical reuslts(Column chart, Pie chart, etc.,). The statistical results are generated in VC side and then are passed into a FLEX swf file, which is created based on FusionChart by using FLEX Builder 3 SDK. Essentially, the system follows data driven mechanism. Data generated in VC box drives the renderring of charts in the flex flash side. The FLEX flash *.swf file is generated in the FLEX Builder 3 SDK. The following mxml file is a main file contained in the corresponding FLEX project. Attachments are VC side source code(testFlash_VC3.rar, generating statistical result and pass the result to flash) and FLEX source code(FusionChartBasedFlex.zip, generating flash file) <!-- events/TrapAllKeys.mxml --> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="com.fusioncharts.components.*" creationComplete="initApp();"> <ns1:FusionCharts x="0" y="0" width="652" height="659" id="FC1"/> <!--FCDataXML="{xmlData}" FCDataURL="Data6.xml" FCChartType="Pie3D" --> <mx:Script><![CDATA[ import com.dynamicflash.util.Base64; import com.fusioncharts.components.FCChartData; import mx.events.FlexEvent; import mx.binding.utils.ChangeWatcher; import mx.controls.Alert; import mx.events.CloseEvent; import flash.events.Event; import flash.external.ExternalInterface; import com.events.FCEvent; import flash.external.*; var xmlDataSourceName : XML; //callCPPlus to trigger ExternalInterface event OnFlashCallShockwaveflash4001 on VC side will response public function callCPPlus() : XML { var str : String = ""; if (ExternalInterface.available) { str = ExternalInterface.call("returnToFlex", "dummyinfo"); } else { Alert.show("fail","Alarm"); } var myXML:XML = new XML(str);//把str中的内容传给myXML return myXML; } private function initApp():void { xmlDataSourceName : XML; xmlDataSourceName = callCPPlus(); Security.allowDomain("*"); if(xmlDataSourceName.ChartData.length() > 0) { var decoded:String = Base64.decode(xmlDataSourceName.ChartData[0]);//xmlDataSourceName.ChartData[0] } Alert.show("Base64=!" + decoded); FC1.FCDataXML = decoded;// //FC1.FCDataXML = "<chart caption='ABC Bank Branches' subCaption='(In Asian Countries亚洲【中国香港1)' yaxislabel='Branches' xaxislabel='Country'><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/></chart>"; FC1.FCChartType = xmlDataSourceName.FlashType[0]; //FC1.FCChartType = "Column2D";//Column2D Pie3D } ]]></mx:Script> </mx:Application> NOTE: str = ExternalInterface.call("returnToFlex", "dummyinfo"); here, str receive the value sent from the VC side by using the SetReturnValue() function in the void CTestFlash_VCDlg::OnFlashCallShockwaveflash4001(LPCTSTR request) member funciton. It works fine, but not when ‘str’ is longer than a certain number of characters, (e.g. str="<chart caption='ABC Bank Branches' subCaption='(In Asian Countries亚洲【中国香港1)' yaxislabel='Branches' xaxislabel='Country'><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='Hong Kong' value='345' link=\"S-Week 4\"/><set label='New York' value='345' link=\"S-Week 4\"/></chart>" ) It works fine again if remove some <set……/> nodes (e.g. <set label='Hong Kong' value='345' link=\"S-Week 4\"/>) from the XML string. Also, it works fine if I assign the above long string to FC1.FCDataXML directly in the mxml file, (not passed from the VC side). I cannot figure out why. Please help me. The problem has stucked me for a long time. FusionChartBasedFlex.zip testFlash_VC3.zip
  3. Fusionchart With Visual C++ Via Flex

    Common Question implyes this is BUG???????? I see that another user had encounter the same problem. He discribed his problem in the following post http://forum.fusioncharts.com/topic/7384-no-data-to-display-when-number-of-records-exceeds-35-for-a-single-series-chart-in-flex/ No data to display when number of records exceeds 35 for a single series chart in flex
  4. Fusionchart With Visual C++ Via Flex

    when I set FC1.FCDebugMode = true, I got the following message Info: Chart loaded and initialized. Initial Width: 652 Initial Height: 659 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Version: 3.1.1 Chart Type: Single Series 3D Column Chart Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES YAXISVALUES DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT TOOLTIP VLINES VLINELABELS INFO: Chart registered with external script. However, the DOM Id of chart has not been defined. You need to define it if you want to interact with the chart using external scripting. WARNING: Could not find dataXML or dataURL parameter. Setting empty data for the chart. ERROR: No data to display. There isn't any node/element in the XML document. Please check if your dataURL is properly URL Encoded or, if XML has been correctly embedded in case of dataXML. No Data to Display: No data was found in the XML data document provided. Possible cases can be: There isn't any data generated by your system. If your system generates data based on parameters passed to it using dataURL, please make sure dataURL is URL Encoded. You might be using a Single Series Chart .swf file instead of Multi-series .swf file and providing multi-series data or vice-versa.
  5. Hi All I would like to pass the info on which column (column chart) or pie section (pie chart) is clicked back to the web container, so that the app can work in a interactive way. How to do this. Thanks
  6. actually, i am using FusionChart V3 for FLEX. I would like to notify FLEX which pie chart section or column is clicked.
  7. Hi ALL Can fusionchart free, fusionchart V3, PowerCharts,FusionWidgets, FusionMaps be used with Visual C++ 6.0 to build a desktop application. thanks
  8. Hi, All I am using RealTimeStackedArea2D.swf. In my case, I would like to hide the y-axis value labels. How to do this. Thanks Felix
  9. Hi ALL I am using RealTimeStackedArea2D.swf to show a book sale statistics indicating how many books are saled in different monthes. The graph is showed correctly. However, there is a strange line of text which is located between the x-axis labels (Jan. Feb. Mar. Apr. May.....Dec)and x-axis name (Month). The line looks like Jan Feb Mar Apr May Jun July Aug Sept Oct Nov Dec <-- x-axis labels $0, $1, $0, $0, $0, $0, $0,$0,....$0 <-----strange line Month <------ x-axis Name Legend block I do not know the meaning of the line and how to remove it. Thanks By the way, I wonder what's the difference between RealTimeStackedArea2D and StackedArea2D Thanks
  10. Thanks you, Basundhara Ghosal, for your kind help. furthermore, i would like to know if RealTimeStackedArea2D and StackedArea2D is interchangible without modifying those attributes for <chart .....>. My experiment showed that it they are not. I am not sure.
  11. Hi ALL, I wonder if the font size of Caption attribute of StackedArea2d is configurable and how. Thanks cy163
  12. Santa, Thank you. Your message is very helpful. Felix
  13. Hello All, (1) I have tried to show a stacked area chart successfully. I looks like http://www.fusioncharts.com/gallery/Chart.asp?stackedarea2d_3. However, i would like it to have smooth curve just like http://www.fusioncharts.com/gallery/Chart.asp?stackedarea2d_2 (2) How to show tooltip on areas of a chart? I mean the tooltip text will show up when the mouse hovers over any point within an area. Currently, the tooltip shows up only when the mouse hovers over particular points (axis/scale points) on the curve. I have tried to use TOOLTEXT attribute with <set ....>,but no luck. Could anyone help me do these. Thanks
  14. Thank you Supreme Being for your reply.You said the tooTip can be used with achors. So, I wonder if I can associate hyperlinks with areas of a stacked area chart to make tooltip appear. e.g., <set value='xxxx' link='n-abc.jsp' />
  15. Hello ALL I want to use the stacked area chart in my app. I wonder if those areas in the graph are clickable. I want to associate HTML pages with those areas. When clicking on the areas some more info can be shown. In addition, could anyone provide an exmaple to show the data format/structure (i think it would be a XML format, but I do not know the structure) for the chart. I saw the following code,it shows that the data is from DataProviders/RealTimeStArea1.asp" Thanks
  16. I found that stacked area chart is under FusionWidget package, and from the link shown above, I saw "FusionCharts can be easily and extensively used to create drill-down charts. All the charts in FusionCharts v3 suite support drill down for data elements....". I wonder if this implies that Drill_down function is not supported by "Stacked Area Chart" which is under FusionWidget insead of under FusionChart.
  17. Hello ALL I want to use the stacked area chart in my app. I wonder if those areas in the graph are clickable. I want to associate HTML pages with those areas. When clicking on the areas some more info can be shown. In addition, could anyone provide an exmaple to show the data format/structure (i think it would be a XML format, but I do not know the structure) for the chart. I saw the following code,it shows that the data is from DataProviders/RealTimeStArea1.asp" - <chart caption="Server Load" bgColor="000000" bgAlpha="100" canvasBorderThickness="1" canvasBorderColor="008040" canvasBgColor="000000" yAxisMaxValue="100" decimals="0" numdivlines="9" numVDivLines="28" numDisplaySets="30" divLineColor="008040" vDivLineColor="008040" divLineAlpha="100" chartLeftMargin="10" baseFontColor="00dd00" showRealTimeValue="0" dataStreamURL="DataProviders/RealTimeStArea1.asp" refreshInterval="2" numberSuffix="%" labelDisplay="rotate" slantLabels="1" toolTipBgColor="000000" toolTipBorderColor="008040" baseFontSize="11" showAlternateHGridColor="0" legendBgColor="000000" legendBorderColor="008040" legendPadding="55" showLabels="1" plotGradientColor=""> <categories /> <dataset color="009900" seriesName="Client A" showValues="0" alpha="100" anchorAlpha="0" lineThickness="2" /> <dataset color="ffff00" seriesName="Client B" showValues="0" alpha="100" anchorAlpha="0" lineThickness="2" /> <dataset color="0099cc" seriesName="Client C" showValues="0" alpha="100" anchorAlpha="0" lineThickness="2" /> - <styles> - <definition> <style type="font" name="captionFont" size="14" /> </definition> - <application> <apply toObject="Caption" styles="captionFont" /> <apply toObject="Realtimevalue" styles="captionFont" /> </application> </styles> </chart> Thanks
  18. Hello All, I am using Pyramid graph. I wonder Is the distance between slices of Pyramid adjustable? Thanks
  19. Hi All, Can i change the background color of a sector of a Doughnut2/3D graph when hovering over it. If yes, How to do this. I saw the effect on the following link http://www.fusioncharts.com/PowerCharts/Gallery/MLPie1.html Thanks
  20. However, I have seen the effect on the following link http://www.fusioncharts.com/PowerCharts/Gallery/MLPie1.html Actually, i want to change the color of a sector, instead of background color.
  21. capture hover event

    Hello ALL, i am using FusionCharts V3 Evaluation version to render a Doughnut2d graph. I wonder if the hover event (mouse staying on a certain sector) can be caught and used. Currently only hover tooltip is available. Moreover, I wonder if some text can be dynamically shown in the central circle of the Doughnut2D graph. Does FusionCharts V3 Evaluation version support pyramid charts? Does pyramid charts support capturing hover event? Or, Is there any type of charts supporting capturing hover event? Felix
  22. capture hover event

    Thank you for your response. I am interesting in the following instructions. 2. FusionCharts V3 Doughnut 3D chart does not have the functionality to display text in the center circle. However, you can design an image with the text you wish to display and use it as the background image of the chart using the bgSWF attribute in the <chart> element. ref. -http://www.fusioncharts.com/docs/Contents/AttDesc/Background.html Actually, i would like FusionChart can show the label text in the center circle, when the mouse hovering a sector. That is, I want the label text to appear both in the tooltip and in the center circle. Can I achieve this on a Doughnut2/3 graph.
  23. Doughnut2D.swf problem

    Hello ALL, I am using FusionCharts V3 to generate a Doughnut2D graph. If there is no 'link' attribute is specified in the statement <chart link='.....', then when I click on one sector, that sector will be apart from the remaining sectors. However, if the 'link' attribute is specified in the statement <chart link='.....', then the effect disappeared. Why?