<script type= "Text/javascript" src= "Http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js" ></script>
<script type= "Text/javascript" src= "Http://cdn.hcharts.cn/highcharts/highcharts.js" ></script>
<script type= "Text/javascript" src= "Http://cdn.hcharts.cn/highcharts/exporting.js" ></script> < Script type= "Text/javascript" >
$ (function () {
$ (' #container '). Highcharts ({
Chart: {
Plotbackgroundcolor:null,
Plotborderwidth:null,
Plotshadow:false
},
Title: {
Text: ' Total number of users {$cou} '
},
ToolTip: {
Pointformat: ' {series.name}: <b>{point.percentage:.1f}%</b> '
},
Plotoptions: {
Pie: {
Allowpointselect:true,
Cursor: ' pointer ',
DataLabels: {
Enabled:true,
Color: ' #000000 ',
Connectorcolor: ' #000000 ',
Format: ' <b>{point.name}</b>: {point.percentage:.1f}% '
}
}
},
Series: [{
Type: ' Pie ',
Name: ' Browser share ',
Data: [
<foreach name= "B" item= "VO" >
[' {$vo. A} ', {$vo. b}],
</foreach>
]
}]
});
});
</script>
JS of pie chart