Remove whitespace from gauge chart? - Javascript highcharts

Javascript examples for highcharts:Gauge Chart

Description

Remove whitespace from gauge chart?

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
   </head> 
   <body> 
      <p>High Charts</p> 
      <div id="gauge_div" style="height: 200px;"> 
         <script>
     $('#gauge_div').highcharts({
        chart: {/* w w  w.  j a v  a  2 s.co  m*/
            type: 'gauge',
            plotBackgroundColor: null,
            plotBackgroundImage: null,
            plotBorderWidth: 0,
            plotShadow: false
        },
        title: {
            text: ''
        },
        pane: {
          size:[30],
            startAngle: -90,
            center: ['50%', '90%'],
            endAngle: 90,
          background: {backgroundColor: 'white', borderWidth: 0,innerradious:'10%'}
        },
        // the value axis
        yAxis: {
            min: 0,
            max: 100,
            minorTickInterval: 'auto',
            minorTickWidth: 0,
            minorTickLength: 10,
            minorTickPosition: 'inside',
            minorTickColor: '#666',
            tickPixelInterval: 30,
            tickWidth: 0,
            tickPosition: 'inside',
            tickLength: 10,
            tickColor: '#666',
            labels: {
                step: 2,
                rotation: 'auto'
            },
           /* title: {
                text: ''
            },*/
            plotBands: [{
                from: 0,
                to: 75,
                color: '#5c90e3' // blue
            }, {
                from: 75,
                to: 100,
                color: '#e6e6e6'
            }]
        },
        plotOptions: {
            gauge: {
                dataLabels: {
                    enabled: false
                },
                pivot: {
                    radius: 0
                },
                dial: {
                    backgroundColor: 'orange'
                }
            }
        },
        series: [{
            name: 'Progress',
            data: [75],
            tooltip: {
                valueSuffix: '%'
            }
        }]
    });

         </script>  
      </div>
   </body>
</html>

Related Tutorials