$chart = new Highchart(); $chart->chart->renderTo = "container"; $chart->chart->plotBackgroundColor = null; $chart->chart->plotBorderWidth = null; $chart->chart->plotShadow = false; $chart->title->text = "Browser market shares at a specific website, 2010"; $chart->tooltip->formatter = new HighchartJsExpr( "function() { return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %'; }"); $chart->plotOptions->pie->allowPointSelect = 1; $chart->plotOptions->pie->cursor = "pointer"; $chart->plotOptions->pie->dataLabels->enabled = false; $chart->plotOptions->pie->showInLegend = 1; $chart->series[] = array( 'type' => "pie", 'name' => "Browser share", 'data' => array( array( "Firefox", 45 ), array( "IE", 26.8 ), array( 'name' => 'Chrome', 'y' => 12.8, 'sliced' => true, 'selected' => true ), array( "Safari", 8.5 ), array( "Opera", 6.2 ), array( "Others", 0.7 ) ) );