Home
> Discussions & Support
> Topic
Graph and html code position
Posted by user1402781
Graph and html code position September 24, 2012 08:04AM |
Registered: 11 years ago Posts: 2 |
Hi,
I try this code below but I have a problem with the position of my text (in ma table). This text display first (before the graph), why? How to place the text in my table after the graph?
Thank you for your help.
Bruno
I try this code below but I have a problem with the position of my text (in ma table). This text display first (before the graph), why? How to place the text in my table after the graph?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[www.w3.org]; <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([[1, 80],[2, 40],[3, 60],[4, 65],[5, 50],[6, 50],[7, 60],[8, 80],[9, 150],[10, 100]], 'blue'); myChart.setDataArray([[1, 100],[2, 55],[3, 80],[4, 115],[5, 80],[6, 70],[7, 30],[8, 130],[9, 160],[10, 170]], 'green'); myChart.setDataArray([[1, 150],[2, 25],[3, 100],[4, 80],[5, 20],[6, 65],[7, 0],[8, 155],[9, 190],[10, 200]], 'gray'); myChart.colorize(['#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9','#3E90C9']); myChart.setSize(550, 300); myChart.setAxisValuesNumberY(5); myChart.setIntervalStartY(0); myChart.setIntervalEndY(200); myChart.setLabel[2,'p1']); myChart.setLabel[4,'p2']); myChart.setLabel[6,'p3']); myChart.setLabel[8,'p4']); myChart.setLabel[10,'p5']); myChart.setAxisValuesNumber5); myChart.setShowXValues(false); myChart.setTitleColor('#454545'); myChart.setAxisValuesColor('#454545'); myChart.setLineColor('#A4D314', 'green'); myChart.setLineColor('#BBBBBB', 'gray'); myChart.setTooltip([1,'']); myChart.setTooltip([2,'']); myChart.setTooltip([3,'']); myChart.setTooltip([4,'']); myChart.setTooltip([5,'']); myChart.setTooltip([6,'']); myChart.setTooltip([7,'']); myChart.setTooltip([8,'']); myChart.setTooltip([9,'']); myChart.setTooltip([10,'']); myChart.setFlagColor('#9D16FC'); myChart.setFlagRadius(4); myChart.setLegendShow(true); myChart.setLegendPosition('right top'); myChart.draw(); </script> <br> <table border="0" align="center" cellpadding="2" cellspacing="1" width="100%"> <tr> <td valign="top">Hello it's a trial!</td> <td valign="top">How are you?</td> </tr> </table> </body> </html>
Thank you for your help.
Bruno
Re: Graph and html code position November 05, 2012 01:13PM |
Admin Registered: 15 years ago Posts: 32 |
Sorry, you do not have permission to post/reply in this forum.