nilanjan

Members
  • Content count

    23
  • Joined

  • Last visited

Everything posted by nilanjan

  1. Funnel - Tooltip error

    Hi The FunnelChart is designed to behave as such. The tooltip shows the funnelOut value (and not the funnelIn value).
  2. Multi-level Pie Chart: hoverText problem

    Hi It seems that you are loading the charts in the same container, loader_mc, replacing the previous one. In that case, you may try loader_mc.unLoadMovie() before reloading another one. This type of anomalies can as well result from non-removal of all remnants of the charts. Please try using destroy() and remove() methods of the chart. Like loader_mc.chart.destroy() [before unloading the chart obviously] Hope the xml files have the attribute enabled for showing tooltips.
  3. Changing the size of chart in runtime

    Hi Its me again ... check the code I posted. One thing is not clear to me as of why are you using the textfield (pText)? Is it there to hold the Class name of the chart? Or it has any more visual usage? If storing the chart class name is the sole purpose ... just cull it off. Check my code to see a variable declared on timeline (_root) which stores the "Class" reference (which is not a string as when stored in textfield) . And the variable is always updated, as and when a new chart is rendered from clicking options in your horizontal flyout. So, whenever you hit the maximise btn, simply use the variable as the Class. new Variable(......) It seems you haven't yet gone through the code properly or failed to comprehend the underlying simplicity. Best wishes.
  4. Changing the size of chart in runtime

    Hi If you really mean to learn actionscript ... do it. Actionscript have a broad path of success ahead. Best wishes
  5. Changing the size of chart in runtime

    Hi Check attachment ... hope will make you smile. Script-1.zip
  6. Changing the size of chart in runtime

    Hi I see a messed up code in your post. Please mail me a decent version ... where zoomChart is applied. Before posting me either code or the fla itself (best), please change the code for once as below. Just shift the code in bold to the respective function. The undefined status of variable classname will be over. Max.onRelease = function() { var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart var cText = pText.text; var classname = objClasses[cText] zoomChart(classname); }
  7. Changing the size of chart in runtime

    It seems to be a scope problem in that case. Although, there are a number of ways to solve your required problem, but, the one I asked you to is probably one of the best and trickiest. Anyhow, please check to trace out a variable from max.onRelease(), being declared with the code of class name mapping, like: var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart var testVar:Number = 100 Max.onRelease = function() { trace(testVar) var cText = pText.text; var classname = objClasses[cText] zoomChart(classname); }
  8. Changing the size of chart in runtime

    Yes ... post the full code if possible.
  9. Changing the size of chart in runtime

    hi Please place the class import statements and test.
  10. Changing the size of chart in runtime

    hi Please replace with this code in its respective place and post back the output. Max.onRelease = function() { var cText = pText.text; trace(cText) var classname = objClasses[cText] trace(classname) zoomChart(classname); }
  11. Changing the size of chart in runtime

    Use this ready code. var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart Max.onRelease = function() { var cText = pText.text; var classname = objClasses[cText] zoomChart(classname); } // Zoom Chart function zoomChart(cText){ var chart3 = new cText(chartContainer3MC, 1, 790, 650, 20, 15, false, "EN", "noScale"); chart3.setXMLData(xmlData2); chart3.render(); //hide other chart container. chartContainer1MC._visible = false; chartContainer2MC._visible = false; Min._visible = true; stop(); }
  12. Changing the size of chart in runtime

    Hi You see ... there is a technical problem in the way you are doing that. When you are accessing the class name from the text field ... you are getting a STRING. But, you need a CLASS NAME ... which is not a STRING. Compare "Classname" with Classname. String have quotation marks defining itself. But, class name have none such. Do, one thing, use this type of code: var objClasses:Object = new Object() objClasses["Classname1"] = Classname1 objClasses["Classname2"] = Classname2 ...... all your classes So, you have mapped your classnames to properties of the object. From, where you finally use the class name, simply call like: var chartname = objClasses[ "CLASSNAME" ] Now, chartname is not a string. Good luck.
  13. Changing the size of chart in runtime

    Hi var chatm = Column2DChart; menucontainer.menu.Max.onRelease = function() { chatm=pText.text; var chart3 = new chatm(chartContainer3MC, 1, 750, 465, 20, 15, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); stop(); }; //---------------// Your version was : var chatm = "Column2DChart" ; Don't use quotation marks ... simply var chatm = Column2DChart; And no need of data typing the variable "chart3" like as you did : var chart3:chatm = new chatm(chartContainer3MC ...... simply ... var chart3 = new chatm(chartContainer3MC ......
  14. calling chart class inside Flash Movie Layer

    Hi Please copy-n-paste the "import" code at the beginning of the code.
  15. Placing a button over the chart in flash

    Hi I think you haven't yet tried with swapDepths() as I asked you to earlier. Just simply add this line at the end of your code: Max.swapDepths(1000)
  16. Placing a button over the chart in flash

    Hi, Have seen your code ... please let me know your problem precisely. What is that you can't achieve through this piece of code. Please refer everything with respect to the fla you provided ... like movieclip names.
  17. Placing a button over the chart in flash

    Hi You see, flash reserves negative depths for placing content added at authoring time (when working in .fla) ... while contents added at runtime (when .swf runs) is managed using the non-negative depths. It seems that you are placing the the "button" at authoring time ... so it is placed at a negative depth. Thus, anything (your other charts) added at runtime (those added using code) will be above the "button", cause the "charts" will be in non-negative (zero and positive)depths. Please remember that content at depth 2 will be over content at depth -2 (say). Your easiest solution to bring the "button" on top of others (your charts) will be to change (swap) the "button" 's depth to a positive one, higher than the topmost chart. The catch is to use the method of the MovieClip API: swapDepth(). Please confirm of what have you used as your so called "button" from the following options: 1. Movieclip 2. Button 3. Button component
  18. Placing a button over the chart in flash

    Hi It is only an issue with depth management of MovieClips in the flash file. 1. It seems like you are having the button created in authoring environment. In that case, use MovieClip.swapDepth() method to move the movieClip containing the button to a safe higher depth. 2. Else, if you are creating the button in runtime, simply find the highest depth for it.
  19. Problem with Label animation in pie 3d

    Hi, Can you please post the XML used to generate it.
  20. Null data in Spline Charts

    Hi, Sorry, there is no scope for that. Spline chart provide the trend of data variation in smooth curves. If there is a discontinuity of data for some intermediate points and we try to connect ends to avoid discontinuity, the curves can deviate strongly from their original behaviour in regions of continuous data too. We opt to provide the best curves with priority to the continuous data sub-sets. Certainly, we are looking forward towards even better presentation of the same.
  21. Pie3D visual bugs

    Hi The border bug (second one) will be fixed soon. About the first issue, waiting for XML file from you, if possible. Finally, nothing missed by you for creating semi-transparent pies. Actually, when 2 adjacent pies are both sliced in, their common inner face(s) doesn't exist (or are invisible) ... they come in existence (or gets visible) as soon as these pies get detached by slicing out of any one of them.
  22. Pie3D visual bugs

    Hi Can you please provide the XML files. We are checking and will be back soon.
  23. hi Logarithm is defined for positive values only. So, zero is an absurd value for a log chart. Hence no way of plotting it. Set the attribute , connectNullData='1' , in the graph/chart node to connect both ends to avoid broken lineChart.