用融合图的饼图里面显示图例 [英] Display legend inside a pie chart with fusion chart

查看:200
本文介绍了用融合图的饼图里面显示图例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示的传说与它的饼图内在价值。我用Google搜索了很多,但没有得到任何解决方案。此外,还有在融合图表没有选项直接实现这一目标。任何人都可以请建议我可以申请这样做有什么诀窍?我想我需要修改很多东西在库,我也不想这样,请帮助我。

I want to display legend with it's value inside pie chart. I googled it a lot but didn't get any solution. Also, there is no option in fusion charts to achieve this directly. Can anyone please suggest what trick can I apply to do so? I think I need to modify lot of things in library which I don't want so please help me.

请参考下图片

我使用的角度融合图表库,所以我想这样做的角方式。

I'm using angular-fusion charts library so I want to do this in angular way.

推荐答案

如果你正在使用的FusionCharts可以使用属性实现这个placeValues​​Inside ='1'

If you are using FusionCharts you can achieve this using the attribute "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"
    }]
}

这篇关于用融合图的饼图里面显示图例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆