Javascript examples for highcharts:Column Chart
negative value in column chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.js"></script> <style id="compiled-css" type="text/css"> .highcharts-tooltip span{ direction:rtl; } .highcharts-tooltip b{ direction:ltr; display:inline-block; } </style> <script type="text/javascript"> $(function () {/*from w ww. j ava 2 s . c o m*/ Highcharts.chart('container', { chart: { type: 'column' }, title: { text: 'Column chart with negative values' }, xAxis: { categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas'] }, tooltip:{ useHTML : true, }, credits: { enabled: false }, series: [{ name: '???', data: [5, 3, -4, 7, -2] }, { name: '??', data: [2, -2, -3, 2, 1] }] }); }); </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"></div> </body> </html>