简体   繁体   English

雷达安卡上的标签

[英]label on radar amchart

I realized an amChart with the online generator. 我通过在线生成器实现了一个amChart。 This is the result: 这是结果:

在此输入图像描述 https://live.amcharts.com/ODVhY/ https://live.amcharts.com/ODVhY/

As you can see, the label with the value is visible only on the red bulled. 如您所见,带有该值的标签仅在红色的Bulled上可见。

How can I extend it to all 5 bullet? 如何将其扩展到所有5个子弹?

My configuration 我的配置

{
    "type": "radar",
    "categoryField": "areas",
    "colors": [
        "#64cbd5",
        "#7cdae3"
    ],
    "startDuration": 1,
    "startEffect": "easeOutSine",
    "addClassNames": true,
    "color": "#EEEEEE",
    "fontFamily": "Ubuntu",
    "fontSize": 12,
    "theme": "dark",
    "graphs": [
        {
            "balloonText": "[[value]] in [[category]]",
            "bullet": "round",
            "bulletAlpha": 0,
            "bulletBorderAlpha": 1,
            "bulletSize": 17,
            "clustered": false,
            "columnWidth": 0,
            "connect": false,
            "cursorBulletAlpha": 0,
            "descriptionField": "score",
            "fillAlphas": 0.79,
            "fillColors": "#64CBD5",
            "gapPeriod": 2,
            "id": "AmGraph-1",
            "labelAnchor": "middle",
            "labelOffset": 10,
            "labelPosition": "bottom",
            "labelText": "[[score]]",
            "legendAlpha": 0,
            "lineAlpha": 1,
            "lineColor": "#64CBD5",
            "lineColorField": "color",
            "lineThickness": 0,
            "minDistance": 0,
            "negativeBase": 2,
            "showAllValueLabels": true,
            "stackable": false,
            "switchable": false,
            "title": "[[value]] in [[category]]",
            "topRadius": 0,
            "valueField": "score",
            "visibleInLegend": false
        }
    ],
    "guides": [],
    "valueAxes": [
        {
            "axisTitleOffset": 20,
            "gridType": "circles",
            "id": "ValueAxis-1",
            "minimum": 0,
            "axisAlpha": 1,
            "gridAlpha": 0.35,
            "labelOffset": 2,
            "labelsEnabled": false,
            "tickLength": 3
        }
    ],
    "allLabels": [],
    "balloon": {},
    "titles": [],
    "dataProvider": [
        {
            "score": 156.9,
            "areas": "MEM",
            "color": "#22BCA7"
        },
        {
            "score": 131.1,
            "areas": "AGI",
            "color": "#76C741"
        },
        {
            "score": 115.8,
            "areas": "ATN",
            "color": "#FC385A"
        },
        {
            "score": 109.9,
            "areas": "PRS",
            "color": "#AD78AC"
        },
        {
            "score": 108.3,
            "areas": "VSP",
            "color": "#FC683E"
        }
    ]
}

As @martynasma said in the comments, it was a bug of amcharts. 就像@martynasma在评论中说的那样,这是amcharts的错误。 It is now fixed in the latest version. 现在,它已在最新版本中修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM