javascript - Highcharts error #13: www.highcharts.com/errors/13 how to solve this error -


i new charts have index.jsp page.in page contains css ,javascript also.i want display bar chart in jsp page..

i getting type of error::uncaught error: highcharts error #13: www.highcharts.com/errors/13

thanks in advance

index.jsp

<%@ page language="java" contenttype="text/html; charset=iso-8859-1"     pageencoding="iso-8859-1"%> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>line charts</title> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script>  <style type="text/css"> container {     min-width: 310px;     max-width: 800px;     height: 400px;     margin: 0 auto } </style> <script type="text/javascript"> highcharts.chart('container', {      title: {         text: 'solar employment growth sector, 2010-2016'     },      subtitle: {         text: 'source: thesolarfoundation.com'     },      yaxis: {         title: {             text: 'number of employees'         }     },     legend: {         layout: 'vertical',         align: 'right',         verticalalign: 'middle'     },      plotoptions: {         series: {             pointstart: 2010         }     },      series: [{         name: 'installation',         data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]     }, {         name: 'manufacturing',         data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]     }, {         name: 'sales & distribution',         data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]     }, {         name: 'project development',         data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]     }, {         name: 'other',         data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]     }]  }); </script> </head> <body>     <h1 style="color:red" align="center">welcome line charts</h1>   <div id="container" name="container"></div> </body> </html> 

this means need move <div id="container" name="container"></div> before call highcharts.chart

highcharts.chart('container', {          title: {            text: 'solar employment growth sector, 2010-2016'        },          subtitle: {            text: 'source: thesolarfoundation.com'        },          yaxis: {            title: {                text: 'number of employees'            }        },        legend: {            layout: 'vertical',            align: 'right',            verticalalign: 'middle'        },          plotoptions: {            series: {                pointstart: 2010            }        },          series: [{            name: 'installation',            data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]        }, {            name: 'manufacturing',            data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]        }, {            name: 'sales & distribution',            data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]        }, {            name: 'project development',            data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]        }, {            name: 'other',            data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]        }]      });
<script src="https://code.highcharts.com/highcharts.js"></script>  <script src="https://code.highcharts.com/modules/exporting.js"></script>  <h1 style="color:red" align="center">welcome line charts</h1>      <div id="container" name="container"></div>


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -