我一直在試圖建立一個圓環圓餅圖,看起來像這樣一個外圓條添加到圓環圓餅圖
主要問題是外部帶..
我如何獲得這條外部。 。
請點我在正確的方向
我想使用flotchart,但我樂於使用任何行吟詩人[R建議,如果你能引導
這是我迄今
<div id="report_score_summary" class="chart" style="height:303px;width:100%">
<script>
data_score_summary = [
{ label: "Description Score", data: 20, color: '#BA2B6B' },
{ label: "Image Score", data: 30, color: '#375EAB' },
{ label: "Header Score", data: 50, color: '#4BB748' },
{ label: "Content Score", data: 10, color: '#F6871E' },
{ label: "Title Score", data: 18, color: '#E1DC3A' },
{ label: "Free", data: 16, color: '#E6E5E3' }
];
$.plot(report_score_summary, data_score_summary, {
series: {
pie: {
innerRadius: 0.5,
show: true
}
}
});
setCode([
"$.plot('#report_score_summary', data_score_summary, {",
" series: {",
" pie: {",
" innerRadius: 0.5,",
" show: true",
" }",
" }",
"});"
]);
</script>
</div>
這裏是jsfiddle
您可以加入你的代碼的工作示例?這應該是可能的覆蓋一個border-radious邊框div:在圖表頂部50% –
我會在這裏使用SVG .... –
如果有一個清晰的容器元素,您可以使用,我會使用psuedo-element來創建效果:http://codepen.io/ryantdecker/pen/pbOwpW 這是使用靜態值,但是如果你發佈你的代碼,我相信如果需要它可以是動態的(相對度量與示例中的設置px值 – ryantdecker