Bug JS Charts in Opera

Posted by fant 
Bug JS Charts in Opera
March 11, 2010 11:45AM
I tested jscharts with follow html:
<html>
<head>
<script type="text/javascript" src="../../../sources/jscharts.js"></script>
</head>

<body>
<div id="graph">Loading graph...</div>

<script type="text/javascript">
	var myData = new Array(['18:00',1], ['.',3], ['.',0], ['.',0], ['.',0], ['.',0], ['.',0],
               ['19:00',0], ['.',0], ['.',0], ['.',0], ['.',0], ['.',0], ['.',0]);

	var myChart = new JSChart('graph', 'bar');
	myChart.setDataArray(myData);
	myChart.setSize(800, 600);
	myChart.draw();
</script>

</body>
</html>


In Opera 10.10 bug: axis value and title not show.
In console error:
JavaScript - file://localhost/media/010B-3892/JS-charts_demo/examples/bar-charts/example-1/index.html
Inline script thread
Unhandled exception: [Object DOMException]
name: Error
message: INDEX_SIZE_ERR
stacktrace: n/a; see  opera:config#UserPrefs|Exceptions Have Stacktrace

If set size myChart.setSize(800, 601); it`s show very well.

Andrej Taran



Edited 1 time(s). Last edit at 03/11/2010 12:09PM by fant.
Sorry, you do not have permission to post/reply in this forum.