Javascript examples for highcharts:Column Chart
reduce gap between legend and chart in column chart
<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 ww w . j a 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> <div id="container"></div> <script type="text/javascript"> Highcharts.chart('container', { chart: { //marginTop: 50 }, title: { text: '' }, series: [{ type: 'column', data: [1, 2, 3] }, { type: 'column', data: [1, 2, 3] }], legend: { verticalAlign: 'top', margin: 0, padding: 0 } }); </script> </body> </html>