Javascript examples for highcharts:Chart CSV Data
using grouped_categories for csv URL
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container {/*from w w w . ja v a 2 s .c o m*/ min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto } </style> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/data.js"></script> <script src="https://blacklabel.github.io/grouped_categories/grouped-categories.js"></script> <div id="container"></div> <script type="text/javascript"> Highcharts.chart('container', { series: [{ type: 'column' }], data: { csvURL: 'https://demo-live-data.highcharts.com/vs-load.csv', seriesMapping: [{ x: 0 }], enablePolling: true, complete: function(e) { var categories = [{ name: "Fruit", categories: [Math.random(), "Banana", "Orange"] }, { name: "Vegetable", categories: ["Carrot", "Potato", "Tomato"] }, { name: "Fish", categories: ["Cod", "Salmon", "Tuna"] }]; Highcharts.charts[0].xAxis[0].update({ categories: categories }); }, dataRefreshRate: 5 } }); </script> </body> </html>