| [Chart:Pie]????2014-03-10 11:15:41by ??? 如下图是浏览器的市场份额,考虑以下几个重点
<a:dataSets> <a:dataSet id="ds"> <a:datas> <a:record browser="Firefox" shares="45"/> <a:record browser="IE" shares="26.8"/> <a:record browser="Chrome" shares="12.8"/> <a:record browser="Safari" shares="8.5"/> <a:record browser="Opera" shares="6.2"/> <a:record browser="Others" shares="0.7"/> </a:datas> <a:fields> <a:field name="browser" prompt="浏览器"/> <a:field name="shares" datatype="float" prompt="份额"/> </a:fields> </a:dataSet> </a:dataSets> <a:chart bindTarget="ds" plotBackgroundColor="null" plotBorderWidth="null" plotShadow="false" type="pie"> <a:title text="浏览器的市场份额" align="center" verticalAlign="middle" y="50" /> <a:tooltip pointFormat="{series.name}: <b>{point.percentage:.1f}%</b>"/> <a:plotOptions> <a:pie startAngle="-90" endAngle="90" center="'50%','70%'" innerSize="50%"> <a:dataLabels distance="-50" enabled="true" style="fontWeight:bold;color:white;text-shadow:0px 1px 2px black"/> </a:pie> </a:plotOptions> <a:xAxis> <a:xAxi name="browser"/> </a:xAxis> <a:yAxis> <a:yAxi name="shares"/> </a:yAxis> </a:chart> Demo Attachments |
Comments
1 Responses to the article匿名用户不能发表评论
登录 | 注册