varoon

Members
  • Content count

    63
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by varoon

  1. hi i use multiple chart in a same flash. just want to maximize one chart alone. so i used this code... and it does... But i dont want to hard code the "Column3DChart" in that place. coz i can change the chart to Pie or any chart type. So once changed, it does not maximize the current char.. the code render the Column3DChart only.... how to do that dynamically... saying the chartContainer3MC to resize... any one tried ???? sorry for my bad English....
  2. Hi how to load a specific node from a xml and pass it to chart.... Need to do in FLASH Action Script.... any one tried ??? is it possible ? xml is given in attachment.... sample.xml
  3. Hi How do i edit the existing palette in the FLA / as files. May i know in which files they are coded ? so i can change the color codes to my needs. any one tried ??
  4. Editing Existing palette/Color Theme

    Thx... will chk it out...
  5. im not a expert in coding... still i could not load it... any sample plz..... :ermm:
  6. Editing Existing palette/Color Theme

    where is the palette=" 1/2/3/4/5.... " is specified ????? i could see only the default colors in that file. when i enter palette ="4" i get some Redish Brown effect in my charts... how to i change those color theme... ? where is it specified ? could u mention in which file and line no ? / variable name ? / function name ?? :exclamationmark:
  7. Hi is it possible to use fusion charts inside Ms Access 2007 ? if yes how ?
  8. Hi can we group the x-axis value like this ??? i have created a Mockup screen below.. is this possible ? if yes HOW ?????
  9. Grouping x-axis ? is it possible ???

    NO i we are already using [ http://www.fusioncharts.com/docs/Contents/ChartSS/MSColumn2D.html ] i need to add one more Text Filed to display as Group... Eg : is shown in above image. [ i have edited the image in image editor and placed the Group1...Group2.. ]
  10. Hi i need the lables to adjust accordingly when it overlaps... u can see the preview below... is there any option to auto adjust.. so the values are visible..
  11. NO one have tried like this ??? OR this functionality available or not ??????
  12. Hi need to use Decimal points inside the gauge... is it possible ????
  13. Decimal points inside Gauge

    cool... works grt...
  14. Decimal points inside Gauge

    can u send me the tag for it ??
  15. Changing the size of chart in runtime

    cool..... i did not chk that code """"" className = chart name """"" inside every button click.. PText.text is just my own reference... im not goin to show it anywhere... thx again.....
  16. Changing the size of chart in runtime

    i made it some how.... and work fine now.... Declared some variables.. added this in Max button i know this is not the correct way to CODE... if some one knows a better method... plz post here...
  17. Changing the size of chart in runtime

    yes me goin to learn.... hey one more... thin... how to set value for the className ????? i used trace and got the currentvalue for className as [type Function] i used var className = Line2DChart inside button press... but it shows the default value only... how is that working ?? and how do i change the value of className and show other chart ????
  18. Changing the size of chart in runtime

    COOL MAN.... :w00t: I REALLY STUPID.... made such a simple code as a very complex.... :hehe: Thx for ur code.... need to learn flash.... me just beginner....
  19. Changing the size of chart in runtime

    Hi buddy... change the code and arranged the codes... but same old prob.... " UNDEFINED " i have attached my FLA and other required files... place the FLA inside FusionCharts_EnterpriseSourceCode and then run... even the xml files in the same location... i hav attached Testing_old.swf, it is the way i need them... but its hard coded and always shows the chart2d...
  20. Changing the size of chart in runtime

    Hi i m bugged of this... im trying to rezize the chartContainer3MC Movie clip... insted of creating it.... again... but here also im facing problem... like the x and y position is not setting up properly... here my full code in the first action layer... /** * This keyframe contains the Actions required to load a FusionCharts * chart in your Flash movie. * * We've set the FPS of this movie to 120 for smooth animations. * Depending on your requirements, you can set any FPS. FusionCharts * renders time based animations, so the length of animation would stay * same. Only the smoothness would vary. */ //You first need to include the following two files in your movie. //These two files contain pre-loading functions and application //messages for the chart. //Note: If you're loading multiple charts in your Flash movie, you //do NOT need to include these files for each each. You can put these //lines in the main timeline, so that it gets loaded only once. #include "com/fusioncharts/includes/LoadingFunctions.as" #include "com/fusioncharts/includes/AppMessages.as" //To create the chart, you now need to import the Class of the //chart which you want to create. All charts are present in the package //com.fusioncharts.core.charts (Download Package > SourceCode folder) //If you're using multiple charts, you can import all the requisite //chart classes in the main timeline of your movie. That ways, you //wouldn't have to import the chart classes everytime you wish to use. import com.fusioncharts.core.charts.Column2DChart; import com.fusioncharts.core.charts.Line2DChart; import com.fusioncharts.core.charts.Bar2DChart; import com.fusioncharts.core.charts.Doughnut2DChart; import com.fusioncharts.core.charts.StackedArea2DChart; import com.fusioncharts.core.charts.MSColumn2DChart; import com.fusioncharts.core.charts.MSColumn3DChart; //var xml1:XML = new XML (xml1data); //xml1data.load ("2d.xml"); //import fl.controls.Button; // -------------- Actual Code to create the chart ------------// //Create movie clips required for both the charts var chartContainer1MC:MovieClip = this.createEmptyMovieClip("ChartHolder1", 1); var chartContainer2MC:MovieClip = this.createEmptyMovieClip("ChartHolder2", 2); var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); //var chartContainer4MC:MovieClip = this.createEmptyMovieClip("ChartHolder4", 4); //Now, instantiate the charts using Constructor function of the chart. var chart1:StackedArea2DChart = new StackedArea2DChart(chartContainer1MC, 1, 365, 225, 20, 15, false, "EN", "noScale"); var chart2:MSColumn2DChart = new MSColumn2DChart(chartContainer2MC, 1, 365, 225, 405, 15, false, "EN", "noScale"); var chart3:Column2DChart = new Column2DChart(chartContainer3MC, 1, 750, 225, 20, 255, false, "EN", "noScale"); //var chart4:Column2DChart = new Column2DChart(chartContainer4MC, 1, 380, 325, 440, 355, false, "EN", "noScale"); //Convey the XML data to chart. //chart1.setXMLData(xmlData1); chart1.setXMLData(chart1_xml); //chart2.setXMLData(xmlData2); chart2.setXMLData(chart2_xml); chart3.setXMLData(chart3_xml); //chart4.setXMLData(xmlData1); //Draw the charts chart1.render(); chart2.render(); chart3.render(); //chart4.render(); //Stop Min._visible = false; Max._visible = false; stop(); win._visible = false; // Hide box w1._visible = false; w2._visible = false; w3._visible = false; //pText._visible = false; ash._visible = false; pink._visible = false; blue._visible = false; /*Button1.label = "2D"; Button1.onRelease = function() { //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); var chart3:Column2DChart = new Column2DChart(chartContainer3MC, 1, 790, 325, 20, 355, false, "EN", "noScale"); chart3.setXMLData(xmlData2); chart3.render(); pText.text = "Column2DChart" stop(); };*/ /*Button2.label = "Doughnut3D"; Button2.onRelease = function() { //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); var chart3:Doughnut3DChart = new Doughnut3DChart(chartContainer3MC, 1, 790, 325, 20, 355, false, "EN", "noScale"); chart3.setXMLData(xmlData2); chart3.render(); pText.text = "Doughnut3DChart" stop(); };*/ var objClasses:Object = new Object() objClasses["Column3DChart"] = Column3DChart objClasses["Area2DChart"] = Area2DChart menucontainer.menu.Max.onRelease = function() { //zoomChart(classname); /* var cText = pText.text; trace(cText) var classname = objClasses[cText] trace(classname) zoomChart(cText);*/ chartContainer1MC._visible=false; chartContainer2MC._visible=false; ///////////////////////////// NEW CODE /////////////////////////// [b] chartContainer3MC._yscale=200; chartContainer3MC._y= -490; [/b] ///////////////////////////// NEW CODE END /////////////////////// Min._visible = true; menucontainer._visible=false; } /*// Zoom Chart function zoomChart(cText){ trace (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(); } */ ///////////////////////////////////////// // Max start ///////////////////////////////////////// //var chatm = "asdf"; /*Max.label = "Max"; menucontainer.menu.Max.onRelease = function() { var chart3:Column2DChart = new Column2DChart(chartContainer3MC, 1, 750, 465, 20, 15, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); //hide other chart container. chartContainer1MC._visible = false; chartContainer2MC._visible = false; //Max._visible=false; Min._visible = true; Line2D._visible=false; Column2D._visible=false; menucontainer._visible=false; stop(); };*/ /*Max.onRelease = function() { var cText = pText.text; zoomChart(cText); //trace ("Ptext"); }*/ // Zoom Chart /*function zoomChart(cClass){ var chart3 = new cClass(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(); }*/ ///////////////////////////////////////// // Max End ///////////////////////////////////////// Min.label = "Min"; Min.onRelease = function() { //draw_box(700,725,0x000000); //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); /* var chart3:Column2DChart = new Column2DChart(chartContainer3MC, 1, 750, 225, 20, 255, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); */ //Show other chart container. chartContainer1MC._visible = true; chartContainer2MC._visible = true; //Max._visible = true; chartContainer3MC._yscale=100; //chartContainer3MC._width=2500; //chartContainer3MC._height=50; chartContainer3MC._y= 0; Min._visible = false; Line2D._visible=true; Column2D._visible=true; menucontainer._visible=true; stop(); }; ///////////////////////////////////////// // Chart Types Start ///////////////////////////////////////// menucontainer.menu.Line2D.onRelease = function() { //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); var chart3:Line2DChart = new Line2DChart(chartContainer3MC, 1, 750, 225, 20, 255, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); pText.text = "Line2DChart" stop(); }; menucontainer.menu.Column3D.onRelease = function() { //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); var chart3:Bar2DChart = new Bar2DChart(chartContainer3MC, 1, 750, 225, 20, 255, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); pText.text = "Column3DChart" stop(); }; menucontainer.menu.Column2D.onRelease = function() { //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); var chart3:Column2DChart = new Column2DChart(chartContainer3MC, 1, 750, 225, 20, 255, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); pText.text = "Column2DChart" stop(); }; menucontainer.menu.Doughnut3D.onRelease = function() { //var chartContainer3MC:MovieClip = this.createEmptyMovieClip("ChartHolder3", 3); var chart3:Doughnut2DChart = new Doughnut2DChart(chartContainer3MC, 1, 750, 225, 20, 255, false, "EN", "noScale"); chart3.setXMLData(chart3_xml); chart3.render(); pText.text = "Doughnut3DChart" stop(); }; ///////////////////////////////////////// // Chart Type End ///////////////////////////////////////// ///////////////////////////////////////// // Full Screen Start ///////////////////////////////////////// FullWindow.onRelease = function() { toggleFullScreen(); } //Don't scale the movie when the stage size changes Stage.scaleMode="Scale"; //Align the stage to the top left Stage.align = "ML"; //Function to toggle between fullscreen and normal size //the toggle fullscreen button calls this function when pressed function toggleFullScreen(){ //if normal size, go to fullscreen, else go to normal size if(Stage["displayState"]=="normal"){ Stage["displayState"]="fullScreen"; }else{ Stage["displayState"]="normal"; } } //Create a listener for each time the Stage is resized var resizeListener:Object = new Object(); //Called each time the stage is resized resizeListener.onResize = function () { //Move the button to the center of the screen toggleFullScreenButton._x=Stage.width/2; toggleFullScreenButton._y=Stage.height/2; } //Add the listener to Stage Stage.addListener(resizeListener); ///////////////////////////////////////// // FullScreen End ///////////////////////////////////////// //Max.swapDepths(1000);
  21. Changing the size of chart in runtime

    ru mentioning these ???
  22. Changing the size of chart in runtime

    output: Column3DChart undefined
  23. Changing the size of chart in runtime

    thx for ur code.... i tried... doin the same... but no luck again... :crying: the output of classname value is always undefined... i dont know y.... :exclamation:
  24. Changing the size of chart in runtime

    getting only BLANK white screen.. the chart is not rendering......... var chart3 = new chatm(chartContainer3MC, 1, 750, 465, 20, 15, false, "EN", "noScale"); is there any other way to RENDER a CHART ???????????
  25. Changing the size of chart in runtime

    i did the same as u said... i did not get any errors... but when i click the Max button... chart is not drawn... i used a trace... and i get the out put value correctly.. as loaded chart name.... dont know what is wrong.... :sick: