1
我正試圖降低融合donut2d圖表切片厚度。檢查下面的圖片,我已經手動減少了綠片的厚度,但我想要切實地爲所有片做。如何減少融合donut2d圖切片厚度?
- 那麼有沒有任何json鍵爲donut2d圖切片厚度減少?
- Fusionchart有可能嗎?如果是的話請引導我。
<html>
<head>
<title>My first chart using FusionCharts Suite XT</title>
<script type="text/javascript" src="fusioncharts.js"></script>
<script type="text/javascript" src="fusioncharts.theme.fint.js"></script>
<script type="text/javascript">
FusionCharts.ready(function(){
var revenueChart = new FusionCharts({
"type": "doughnut2d",
"renderAt": "chartContainer",
"width": '450',
"height": '450',
"dataFormat": "json",
"dataSource": {
"chart": {
"caption": "Split of Revenue by Product Categories",
"subCaption": "Last year",
"numberPrefix": "$",
"paletteColors": "#0075c2,#1aaf5d,#f2c500,#f45b00,#8e0000",
"bgColor": "#ffffff",
"showBorder": "0",
"use3DLighting": "0",
"showShadow": "0",
"enableSmartLabels": "0",
"startingAngle": "310",
"showPlotBorder": "1",
"showLabels": "0",
"showPercentValues": "1",
"showLegend": "1",
"legendShadow": "30",
"legendBorderAlpha": "0",
"defaultCenterLabel": "Total revenue: $64.08K",
"centerLabel": "Revenue from $label: $value",
"centerLabelBold": "1",
"showTooltip": "0",
"decimals": "1",
"captionFontSize": "14",
"subcaptionFontSize": "14",
"subcaptionFontBold": "0"
},
"data": [
{
"label": "Food",
"value": "12"
},
{
"label": "Apparels",
"value": "10"
},
{
"label": "Electronics",
"value": "20"
},
{
"label": "Household",
"value": "8"
},
{
"label": "Test",
"value": "5"
}
]
}
});
revenueChart.render();
})
</script>
</head>
<body>
<div id="chartContainer">FusionCharts XT will load here!</div>
</body>
</html>
完美,謝謝 –