Home
> Discussions & Support
> Topic
setAxisName'', ) = bug ?
Posted by user1402781
setAxisName'', ) = bug ? September 24, 2012 08:40AM |
Registered: 11 years ago Posts: 2 |
Hi,
If I try this code below there is no result (no graph, just "Loading chart...":
But if I delete the 2 lines below:
The graph display.
Do you confirm?
Bruno
If I try this code below there is no result (no graph, just "Loading chart...":
<html> <head> <title>JS Charts</title> <script type="text/javascript" src="scripts/jscharts.js"></script> </head> <body> <div id="chart_container">Loading chart...</div> <script type="text/javascript"> var myChart = new JSChart('chart_container', 'line', ''); myChart.setDataArray([[0, 220],[0.50, 240],[1.00, 235],[1.50, 215],[2.00, 170],[2.50, 150],[3.00, 190],[3.50, 210],[4.00, 110],[4.50, 120],[5.00, 115],[5.50, 190],[6.00, 220],[6.50, 230],[7.00, 210],[7.50, 205],[8.00, 230],[8.50, 235],[9.00, 180],[9.50, 230],[10.00, 240],[10.50, 170],[11.00, 155],[11.50, 180],[12.00, 160],[12.50, 150],[13.00, 200],[14.00, 250],[15.00, 270],[15.50, 275],[16.00, 300],[16.50, 320],[17.00, 200],[18.00, 160],[19.00, 130],[20.00, 150],[20.50, 200],[21.00, 210],[21.50, 200],[22.00, 220],[23.00, 195],[23.50, 175],[24.00, 210]]); myChart.colorize(['#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9']); myChart.setSize(550, 300); myChart.setLineColor('#CA3333'); myChart.setTitle('Singapore Circuit - K.Raikkonen - Speed Telemetry - Lap 2 (km/h)'); myChart.setTitleColor('#B71317'); myChart.setTitleFontSize(9); myChart.setIntervalStartY(0); myChart.setIntervalEndY(400); myChart.setAxisName'', ); myChart.setAxisNameY('', ); myChart.setLabel[4.00,'Sector 1']); myChart.setLabel[12.00,'Sector 2']); myChart.setLabel[20.00,'Sector 3']); myChart.setShowXValues(false); myChart.setGridColor('#d0bB10'); myChart.setAxisColor('#F0DB30'); myChart.setAxisValuesColor('#C13236'); myChart.setAxisValuesFontSize(9); myChart.setAxisValuesNumberY(5); myChart.setAxisWidth(1); myChart.draw(); </script> </body> </html>
But if I delete the 2 lines below:
myChart.setAxisName'', ); myChart.setAxisNameY('', );
The graph display.
Do you confirm?
Bruno
Re: setAxisName'', ) = bug ? November 05, 2012 01:06PM |
Admin Registered: 15 years ago Posts: 32 |
Sorry, you do not have permission to post/reply in this forum.