jQuery饼状图表数据分布插件 数据经过显示详细数据的饼状图
XML/HTML Code
- <table id='myTable5'>
- <caption>会员地区分布</caption>
- <thead>
- <tr>
- <th></th>
- <th>河北</th>
- <th>河南</th>
- <th>湖北</th>
- <th>湖南</th>
- <th>山东</th>
- <th>山西</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th>1200</th>
- <td>540</td>
- <td>300</td>
- <td>150</td>
- <td>180</td>
- <td>120</td>
- <td>180</td>
- </tr>
- </tbody>
- </table>
JavaScript Code
- <script type="text/javascript">
- gvChartInit();
- $(document).ready(function(){
- $('#myTable5').gvChart({
- chartType: 'PieChart',
- gvSettings: {
- vAxis: {title: 'No of players'},
- hAxis: {title: 'Month'},
- width: 600,
- height: 350
- }
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_612.html