Javascript examples for highcharts:Chart Data
use data attribute value in chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> $(function () {//from ww w . j ava 2s. c om var $container = $('#container'); $container.highcharts({ series: [{ name: 'Tokyo', data: $container.data('values') }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto" data-values="[1,2,3]"></div> </body> </html>