Javascript examples for highcharts:Chart Axis
marker alignment matched with Axis gridlines in line chart
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 400px; width: 600px; margin: 0 auto"></div> <script type="text/javascript"> Highcharts.chart('container', { title: {/* ww w . j a v a 2 s . co m*/ text: 'Custom tick positions' }, xAxis: { tickPositions: [0, 1, 2, 4, 8] }, series: [{ data: [ [0, 1], [1, 3], [2, 2], [4, 4], [8, 3] ] }] }); </script> </body> </html>