【问题标题】:Display legend inside a pie chart with fusion chart在带有融合图的饼图中显示图例
【发布时间】:2015-08-01 15:56:33
【问题描述】:

我想在饼图中显示带有它的值的图例。我用谷歌搜索了很多,但没有得到任何解决方案。此外,融合图表中没有选项可以直接实现这一点。谁能建议我可以申请什么技巧?我想我需要修改库中很多我不想要的东西,所以请帮助我。

Refer below image

我正在使用角度融合图表库,所以我想以角度方式执行此操作。

【问题讨论】:

    标签: javascript angularjs fusioncharts


    【解决方案1】:

    如果您使用的是 FusionCharts,您可以使用属性“placeValuesInside='1'”来实现这一点

    // Sample data
    {
    "chart": {
        "showpercentagevalues": "1",
        "use3dlighting": "0",
        "showshadow": "0",
        "placevaluesinside": "1",
        "animation": "0"
    },
    "data": [{
            "label": "ST_Clean",
            "value": "33",
            "color": "f7bc34"
        }, {
            "label": "ST_Eff",
            "value": "67",
            "color": "e24b1a"
        }]
    }
    

    【讨论】:

      【解决方案2】:

      试过了,对我有用

      "valuePosition"=>"inside",
      "labelPosition"=>"inside",
      

      https://www.fusioncharts.com/dev/chart-guide/standard-charts/pie-and-doughnut-charts

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-12-13
        • 2014-07-14
        • 1970-01-01
        • 2012-10-29
        • 2014-11-30
        • 2015-05-30
        • 1970-01-01
        • 2010-10-04
        相关资源
        最近更新 更多