0
嗨,我正在使用Material Design Lite Pie Chart。材料設計lite餅圖動態
下面是代碼:
<svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#piechart" mask="url(#piemask)"></use>
<text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">
82
<tspan font-size="0.2" dy="-0.07">%</tspan>
</text>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<mask id="piemask" maskContentUnits="objectBoundingBox">
<circle cx="0.5" cy="0.5" r="0.49" fill="white"></circle>
<circle cx="0.5" cy="0.5" r="0.40" fill="black"></circle>
</mask>
<g id="piechart">
<circle cx="0.5" cy="0.5" r="0.5"></circle>
<path d="M 0.5 0.5 0.5 0 A 0.5 0.5 0 0 1 0.95 0.28 z" stroke="none" fill="rgba(255, 255, 255, 0.75)"></path>
</g>
</defs>
</svg>
我怎樣才能使這個充滿活力的我的意思是,如果我加100的標籤應該填補100%圈..