0

I tried enable:false

but i cannot remove highchart's link from my chart (pie). I got bit confused This is my Javascript code.

<script language="JavaScript">
   $(document).ready(function() {  

   var chart = {
   plotBackgroundColor: null,
   plotBorderWidth: null,
   plotShadow: false,
   credits: false ///<= HERE I TRIED IT LAST

   };
   var title = {
   text: ''   
   };      
   var tooltip = {
   pointFormat: '{series.name}: <b>{point.y:.1f} Coupon(s)</b>'
   };
    var plotOptions = 
     {
     pie: {
     allowPointSelect: true,
     cursor: 'pointer',
     dataLabels: {
        enabled: false           
     },
     showInLegend: true,
     borderWidth: 0 
   },
    series: {
        states: {
            hover: {
                halo: 
                    {
                      size: 0
                    }
                   }
                }
            },

  };

  var series= [{
  type: 'pie',
  name: 'Source',
  data: [
        <?php
        for($x=0; $x<sizeof($data); $x++)
        {
        echo $data[$x];
        echo ",";
        }
        ?>
        ]
 }];     

var json = {};   
json.chart = chart; 
json.title = title;     
json.tooltip = tooltip;  
json.series = series;
json.plotOptions = plotOptions;
$('#container').highcharts(json);  
});
</script>

I tried to put this code at multiple positions. But it is showing no result. Thanks in advance

danish.ahmad
  • 135
  • 1
  • 8

1 Answers1

0
var license = {
             enabled: false
       };

then at bottom:

 json.credits = license;

previously asked and answered here If you are using the free version, you CAN remove the attribution link, but if you are using free code the honour system is there so at least you can leave a "hat tip" to the developers as a thank you for saving you time.

Community
  • 1
  • 1