FusionCharts中的传奇(饼图) - PHP

时间:2021-03-30 23:45:56

Is it possible to display legend in PIE CHART (FUSIONCHARTS) - PHP ?

是否可以在PIE CHART(FUSIONCHARTS)中显示图例 - PHP?

showLegend Attribute Name is active but not displaying !!!

showLegend属性名称处于活动状态但未显示!!!

FusionCharts中的传奇(饼图) -  PHP

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'

图表属性名称:caption ='供应商明智数据量'startingAngle = '90'showLegend ='1'showPercentInToolTip ='0'bgColor ='f7f2ea'chartTopMargin ='20'schartBottomMargin ='20'formatNumberScale ='0'pieRadius =' 100'deportEnabled ='1'exportAtClient ='1'importHandler ='index.php'labelDisplay ='ROTATE'

1 个解决方案

#1


According To your problem, i have tried it out using the Chart Fiddle Of FusionCharts.

根据你的问题,我已经尝试使用FusionCharts的Chart Fiddle。

    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();
});

Hope this will help you. For any further assistance @ Chart Fiddle

希望这会帮助你。 @ Chart Fiddle的任何进一步帮助

#1


According To your problem, i have tried it out using the Chart Fiddle Of FusionCharts.

根据你的问题,我已经尝试使用FusionCharts的Chart Fiddle。

    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();
});

Hope this will help you. For any further assistance @ Chart Fiddle

希望这会帮助你。 @ Chart Fiddle的任何进一步帮助