multiple data -bar chart
July 04, 2012 03:28AM
error:missing ) after argument list;and following the error is :JSChart is not defined;js version is 3.02;here is my code:
 <div id="example_bar_4" >
     <script language="javascript" type="text/javascript">
        var myData = new Array(['Unit_1', 20, 10,2], ['Unit_2', 10, 11,3], ['Unit_3', 30, 35,6], ['Unit_4', 10, 25,9], ['Unit_5', 5, 15,8]); 
        var myChart = new JSChart('example_bar_4', 'bar');
        myChart.setDataArray(myData);
       myChart.draw();
    </script>
    </div>
the head code is :
<script language="javascript" type="text/javascript" src="jscharts/jscharts.js"></script>
Re: multiple data -bar chart
July 16, 2012 12:43PM
I have just tested the code from bellow and everything worked fine at my end. I didn't receive any error.
eg [www.jumpeye.com]
Re: multiple data -bar chart
July 18, 2012 03:40AM
i click the example you give,but my explor just show:loading...;
Re: multiple data -bar chart
July 18, 2012 03:03PM
That's quite strange. Here you can see the chart working fine [screencast.com]
Re: multiple data -bar chart
July 19, 2012 05:27AM
yeah,i can see your chart,confused smiley,what's wrong with my browers? i can see the example of this site,why?
Re: multiple data -bar chart
July 19, 2012 02:18PM
I really can't say. Where is your example? Is jscharts.js file in the right location and was it loaded?
Sorry, you do not have permission to post/reply in this forum.