Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/371.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript FusionCharts中的图例(饼图)-PHP_Javascript_Php_Charts_Data Visualization_Fusioncharts - Fatal编程技术网

Javascript FusionCharts中的图例(饼图)-PHP

Javascript FusionCharts中的图例(饼图)-PHP,javascript,php,charts,data-visualization,fusioncharts,Javascript,Php,Charts,Data Visualization,Fusioncharts,是否可以在饼图(FUSIONCHARTS)-PHP中显示图例 showLegend属性名称处于活动状态,但未显示 图表属性名称: caption='Vendor Wise Data Volume'startingAngle='90'showLegend='1'showPercentInToolTip='0'bgColor='f7f2ea'chartTopMargin='20'chartBottomMargin='20'FormatNumbers Scale='0'pieRadius='100'

是否可以在饼图(FUSIONCHARTS)-PHP中显示图例

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

图表属性名称:
caption='Vendor Wise Data Volume'startingAngle='90'showLegend='1'showPercentInToolTip='0'bgColor='f7f2ea'chartTopMargin='20'chartBottomMargin='20'FormatNumbers Scale='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();
});

希望这对你有帮助。如果需要任何进一步的帮助,我不知道fusioncharts,我只是找到了这个:;你试过了吗?你能分享你的全部数据、图表尺寸和你正在使用的版本吗。您正在使用PHP包装器吗?如果是,请尝试在不使用PHP的情况下正常呈现图表(纯HTML.JS),然后查看它是否有效。只有在你提供足够的数据后,我们才能进行检查。到目前为止,
showLegend
属性呈现我们这边的图例。@zeflex是的,我已经读过了。。。并使用上面提到的相同属性showLegend='1',但没有任何用处。感谢您的支持。