Jump to content
JChartFX Community
  • 0

Error loading chart


dubweiser

Question

hey guys

No matter what I can't seem to get the chart to load.  Any idea whats going wrong ?

Error thrown is

"Unhandled exception at line 599, column 429 in http://localhost:59748/jChartFX/js/jchartfx.coreVector.js

0x800a138f - JavaScript runtime error: Unable to get property 'call' of undefined or null reference"

Here's what I have currently:


<html xmlns="http://www.w3.org/1999/xhtml">   
    <head>
        <script type="text/javascript" src="js/jquery-1.7.1.min.js"
  mce_src="js/jquery-1.7.1.min.js"></script>
        <link rel="stylesheet" type="text/css" href="jChartFX/css/jchartfx.css"
        mce_href="jChartFX/css/jchartfx.css" />
        <script type="text/javascript" src="jChartFX/js/jchartfx.system.js"
  mce_src="jChartFX/js/jchartfx.system.js"></script>
        <script type="text/javascript" src="jChartFX/js/jchartfx.coreVector.js"
        mce_src="jChartFX/js/jchartfx.coreVector.js"></script>
        <title>jChartFX Testing</title>
    </head>
   
    <body>
        <script type="text/javascript">
            var chart1;
            window.onload = function() {
                loadChart();
            };

            function loadChart() {
                chart1 = new cfx.Chart();
                chart1.setGallery(Gallery.Pyramid);
                var divHolder = document.getElementById('chartDiv');
                chart1.create(divHolder);
            }
        </script>
        <div id="chartDiv" style="width: 50%; height: 400px; display: inline-block"></div>
    </body>

</html>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

To use the pyramid gallery you also need to include jchartfx.pyramid.js, also all of our classes and enumerations are declared inside the cfx object so you have to use cfx.Gallery.GalleryGoesHere.

Try replacing Gallery.Pyramid with cfx.Gallery.Bar, if that works, make sure you include jchartfx.pyramid.js

JuanC

Link to comment
Share on other sites

  • 0

Sorry my bad - I had been testing using the Pie chart, not Pyramid. 
I had changed it from Pie to Pyramid while troubleshooting and forgot
to change it back before posting.

I've just tested again using cfx.Gallery.Bar and still getting the same error:

chart1.setGallery(cfx.Gallery.Bar);

"Unhandled exception at line 599, column 429 in http://localhost:59748/jChartFX/js/jchartfx.coreVector.js

0x800a138f - JavaScript runtime error: Unable to get property 'call' of undefined or null reference"
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...