Sign in to follow this  
FlavioMaccarrone

Trial version and Javascript renderer

Recommended Posts

Hi,

I downloaded FusionCharts XT 3.3.1 trial version, and I correctly render SWF charts, while I am not able to see Javascript ones.

This is the error I get:

TypeError: g.hcLib.createChart is not a function @ http://localhost:280/Scripts/FusionCharts/Charts/FusionCharts.HC.js:783

 

Is this a problem related to the trial version? Beacuse the "is not a function" seems strange...

I don't think the code is wrong, beacuse I tried with one very similar to FusionCharts Demo. It is something like this:

<html>

<head>
<script type="text/javascript" src="Charts/FusionCharts.js"></script>
</head>

<body>
<div id="pieSummary"></div>
</body>

</html>

<script type="text/javascript">
    var data = {
        "chart":
        {
            "caption": "Weekly Sales Summary",
            "xAxisName": "Week",
            "yAxisName": "Sales"
        },
        "data":
        [
            { "label": "Week 1", "value": "14400" },
            { "label": "Week 2", "value": "19600" },
            { "label": "Week 3", "value": "24000" },
            { "label": "Week 4", "value": "15700" }
        ]
    };
    var myChart = new FusionCharts({
        type: "Column2D",
        width: "400",
        height: "300",
        bgColor: "#111111",
        debugMode: "0",
        dataFormat: "json",
        dataSource: data,
        renderAt: "pieSummary",
        renderer: "javascript"
    }).render();
</script>    

 

In Charts folder there are all the requested files...

 

I will wait for your answer because I am deciding which software buy...so please, tell me something as soon as possible...

 

Thanks

 

Flavio M.

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum  :)

 

Your code seems to be working fine at my end and I am able to see the Column 2D chart too.  Please check if you have placed the files FusionCharts.js,FusionCharts.HC.js, FusionCharts.HC.Charts.js and jquery.min.js in your "Charts" folder.

 

Please find a sample attached, which is created using your code, for your reference.

 

Hope this helps.

Column 2D.zip

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