Sign in to follow this  
Janek

Cannot generate true 3d column chart within Flash

Recommended Posts

Hi,

 

 

 

I am trying to generate a true 3d column chart (multiseries) from within a flash movie, like the example in the gallery http://fusioncharts.com/GalleryCol3D.asp#tr_1_2

 

When using the xml from that example within a flash movie, however, I get a clustered 2D chart like http://fusioncharts.com/GalleryCol3D.asp#tr_1_8 ,i.e. the different series are clustered and are shown in the same z-plane.

 

 

 

The code I am using is as follows:

 

 

#include "com/fusioncharts/includes/LoadingFunctions.as"

 

#include "com/fusioncharts/includes/AppMessages.as"

 

import com.fusioncharts.core.charts.MSColumn3DChart;

 

 

 

var strXML:String = "INSERT XML HERE";

 

 

 

var xmlData:XML = new XML(strXML);

 

 

 

var chartContainerMC:MovieClip = this.createEmptyMovieClip("ChartHolder",1);

 

var myChart:MSColumn3DChart = new MSColumn3DChart(chartContainerMC, 1, 450, 325, 5, 38, false, "EN", "noScale");

 

myChart.setXMLData(xmlData);

 

myChart.render();

 

stop();

 

 

 

The xml I am using is at http://fusioncharts.com/Gallery/Data/3DChart_Col_1.xml - I'm inserting this directly in the actionscript. The reason I show it separately here is that even with the "quote" tags, it doesn't come out right in the forum when I post the actionscript with the xml included.

 

 

 

Is there a way to fix this and generate true 3D column charts from within Flash? Thanks in advance!

Edited by Guest

Share this post


Link to post
Share on other sites

I saw that in the true 3D example in the gallery, a different swf type is used: MSCombi3D

 

However, there is no corresponding .as file in my package - does anybody have the .as file, or has anybody been able to instantiate a true 3D multiseries chart within Flash???

Share this post


Link to post
Share on other sites

I couldn't find the related class either.

 

I wanted to instanciate such a MSCombi3D object in a Flash movie, something like:

 

var myChart:MSCombi3D = new MSCombi3D(chartContainerMC, 1, 500, 500, 0, 0, false, "EN", "noScale"); 

 

But I can't seem to find the related class.

 

This is the Enterprise Package we've just bought.

 

Actually, I count 38 .swf files in FusionCharts_EnterpriseCharts

 

but only 36 classes in comfusionchartscorecharts

 

I thought there should have been one class for each chart type, and for each .swf.

 

 

 

Am I missing something?

 

Could someone help?

Share this post


Link to post
Share on other sites

Hello,

 

 

 

The class file for the MScombi3D.swf is chart3D.as.

 

 

 

You can check out the source code of the MSCombi3D.fla to see which class file it associates to.

 

 

 

Hope this helps.

 

 

 

Please feel free to write to us for any further query.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this