Javascript examples for highcharts:Line Chart
draw single line graph using bullet chart
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container1 {// ww w . j ava 2 s .c o m max-width: 1000px; height: 90px; margin: 1em auto; border-radius: 20%; } .hc-cat-title { font-size: 13px; font-weight: bold; } </style> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/bullet.js"></script> <div id="container1"></div> <script type="text/javascript"> Highcharts.setOptions({ chart: { inverted: true, marginLeft: 135, type: 'bullet' }, title: { text: null }, legend: { enabled: false }, yAxis: { gridLineWidth: 0 }, plotOptions: { series: { borderWidth: 0, borderRadius: 10, color: '#819bc2', targetOptions: { width: '10%' }, grouping: false } }, credits: { enabled: false }, exporting: { enabled: false } }); Highcharts.chart('container1', { chart: { //marginTop: 40 }, series: [{ data: [{ y: 360, target: 300 }] }, { data: [{ y: 280, target: 250, color: '#c0ffee' }] }, { data: [{ y: 150, target: 250, color: '#bada55' }] }], tooltip: { pointFormat: '<b>{point.y}</b> (with target at {point.target})' } }); </script> </body> </html>