long dataLabels and style width - Javascript highcharts

Javascript examples for highcharts:Width

Description

long dataLabels and style width

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
      <script type="text/javascript">
$(function () {/*from ww w .j  ava2s . c om*/
    $(document).ready(function () {
        $('#container').highcharts({
            chart: {
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: 'Browser market shares at a specific website, 2014'
            },
            tooltip: {
                pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: false
                    },
                    showInLegend: true
                }
            },
            series: [{
                type: 'pie',
                name: 'Browser share',
                data: [
                    ['Firefox test test test test test test test test  uygiuygiuyg',   45.0],
                    ['IE',       26.8],
                    {
                        name: 'Chrome uygiuygiuyg ',
                        y: 12.8,
                        sliced: true,
                        selected: true
                    },
                    ['Safariiuyg iuygiuyg',    8.5],
                    ['Opera uiy giu y giuy',     6.2],
                    ['Others iuygiuygiuyg',   0.7]
                ]
            }]
        });
    });
});

      </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; max-width: 600px; margin: 0 auto"></div>  
   </body>
</html>

Related Tutorials