Home
> Discussions & Support
> Topic
graph killing internet explorer?
Posted by user1140836
graph killing internet explorer? March 25, 2012 01:40AM |
Registered: 12 years ago Posts: 2 |
HOLY EMOTIOCONS??!?!?
I was looking up and down my php script... WHY WHY doesn't it work in IE, works fine in chrome/firefox...
I had to cut and paste each section of code to find out where its happening.
myChart.draw();
kills internet explorer.
<head>
<title>Report</title>
<script type="text/javascript" src="/sources/jscharts.js"></script>
</head>
<div id="chart_container">Loading chart...</div>
<script type="text/javascript">
var myData = new Array(<?php echo $graph_str; ?>
var myChart = new JSChart('chart_container', 'line');
myChart.setDataArray(myData);
myChart.colorize(['#1A90A9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9']);
myChart.setIntervalY(0, <?php echo $high_call+1; ?>
myChart.setAxisValuesNumberY(<?php echo $high_call+2; ?>
myChart.setAxisValuesDecimals(0)
myChart.setSize(616, 321);
myChart.setAxisNameColor'#FFFFFF');
myChart.setAxisNameColorY('#FFFFFF');
myChart.setGridColor('#000000');
myChart.setBackgroundImage('chart_bg.jpg');
myChart.setLineWidth(5);
myChart.draw();
</script>
$graph_str="['Wednesday', 6], ['Thursday', 0], ['Friday', 5], ['Saturday', 6], ['Sunday', 0], ['Monday', 2], ['Tuesday', 6]"
$high_call=6
I can browse the example graphs on the jschart website no problem, so it has to be something in this code. But what?
Any help? Any Idea why the graph is killing internet explorer?
Thanks
Nick
Edited 1 time(s). Last edit at 03/25/2012 01:41AM by user1140836.
I was looking up and down my php script... WHY WHY doesn't it work in IE, works fine in chrome/firefox...
I had to cut and paste each section of code to find out where its happening.
myChart.draw();
kills internet explorer.
<head>
<title>Report</title>
<script type="text/javascript" src="/sources/jscharts.js"></script>
</head>
<div id="chart_container">Loading chart...</div>
<script type="text/javascript">
var myData = new Array(<?php echo $graph_str; ?>
var myChart = new JSChart('chart_container', 'line');
myChart.setDataArray(myData);
myChart.colorize(['#1A90A9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9']);
myChart.setIntervalY(0, <?php echo $high_call+1; ?>
myChart.setAxisValuesNumberY(<?php echo $high_call+2; ?>
myChart.setAxisValuesDecimals(0)
myChart.setSize(616, 321);
myChart.setAxisNameColor'#FFFFFF');
myChart.setAxisNameColorY('#FFFFFF');
myChart.setGridColor('#000000');
myChart.setBackgroundImage('chart_bg.jpg');
myChart.setLineWidth(5);
myChart.draw();
</script>
$graph_str="['Wednesday', 6], ['Thursday', 0], ['Friday', 5], ['Saturday', 6], ['Sunday', 0], ['Monday', 2], ['Tuesday', 6]"
$high_call=6
I can browse the example graphs on the jschart website no problem, so it has to be something in this code. But what?
Any help? Any Idea why the graph is killing internet explorer?
Thanks
Nick
Edited 1 time(s). Last edit at 03/25/2012 01:41AM by user1140836.
Re: graph killing internet explorer? March 25, 2012 01:42AM |
Registered: 12 years ago Posts: 2 |
Sorry, you do not have permission to post/reply in this forum.