簡體   English   中英

FusionCharts中的圖例(餅圖)-PHP

[英]Legend in FusionCharts (Pie chart) - PHP

是否可以在PIE圖表(FUSIONCHARTS)-PHP中顯示圖例?

showLegend屬性名稱處於活動狀態,但未顯示!

餅圖圖像

Chart Attribute Name:
caption='Vendor Wise Data Volume' startingAngle ='90' showLegend='1' showPercentInToolTip='0' bgColor='f7f2ea' chartTopMargin='20' chartBottomMargin='20' formatNumberScale='0' pieRadius='100' exportEnabled='1' exportAtClient='1' exportHandler='index.php' labelDisplay='ROTATE'

根據您的問題,我已經使用FusionCharts的圖表小提琴進行了嘗試。

    FusionCharts.ready(function() {
    var ageGroupChart = new FusionCharts({
        type: 'pie3d',
        renderAt: 'chart-container',
        width: '450',
        height: '300',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Vendor Wise Data Volume",
                "paletteColors": "#FFFF00, #6495ED",
                "bgColor": "#f7f2ea",
                "showBorder": "0",
                "use3DLighting": "0",
                "showShadow": "0",
                "enableSmartLabels": "0",
                "startingAngle": "0",
                "labelDisplay": "Rotate",
                "showPercentValues": "1",
                "showPercentInTooltip": "0",
                "pieRadius": "100",
                "exportEnabled": "1",
                "decimals": "1",
                "captionFontSize": "14",
                "subcaptionFontSize": "14",
                "subcaptionFontBold": "0",
                "toolTipColor": "#ffffff",
                "toolTipBorderThickness": "0",
                "toolTipBgColor": "#000000",
                "toolTipBgAlpha": "80",
                "toolTipBorderRadius": "2",
                "toolTipPadding": "5",
                "showHoverEffect": "1",
                "startingAngle": "90",
                "showLegend": "1",
                "legendBgColor": "#ffffff",
                "legendBorderAlpha": '0',
                "legendShadow": '0',
                "legendItemFontSize": '10',
                "legendItemFontColor": '#666666'
            },
            "data": [
                {
                    "label": "2015-04-21, 813,740.59",
                    "value": "813740.59"
            },
                {
                    "label": "2015-04-14, 6,580,863",
                    "value": "6580863"
            }
        ]
        }
    }).render();
});

希望這會幫助你。 如需進一步的幫助,請聯系Chart Fiddle

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM