Fusion 图表垂直轴标签

问题描述 投票:0回答:1

我试图描述垂直轴上的值,将它们标记为文本。例如,值 25 表示“低”,50 表示“中”,75 表示“高”。我在文档中看不到可以完成的任何地方。下图是我想要的结果:

风险评估

1

事实上,似乎没有办法在 Excel 或 Google 表格中执行此操作(除非我遗漏了什么)。

任何帮助将不胜感激。

我搜索了文档,没有找到任何可以帮助解决我的问题的东西。我还研究了 Excel 和 Google 表格,但无济于事。

customization axis-labels fusioncharts yaxis
1个回答
0
投票

由于您标记了 fusioncharts,是的,您可以在 fusioncharts 中使用注释对象实现 - https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations/real-life-use-cases#provide-more -关于数据图的信息

快速看一下物体会是这样的-

 "annotations": {
    "origw": "600",
    "origh": "450",
    "autoscale": "1",
    "groups": [{
        "id": "ds1tips",
        "items": [{
            "id": "indicator-line",
            "type": "line",
            "dashed": "1"
        }, {
            "id": "tip1_1",
            "type": "rectangle",
            "fillcolor": "#6baa01",
            "x": "$dataset.0.set.0.x + 5",
            "y": "$dataset.0.set.0.y - 30",
            "tox": "$dataset.0.set.0.x + 80",
            "toy": "$dataset.0.set.0.y - 10",
            "visible": "0"
        }]
    }, {
        "id": "yaxisline",
        "items": [{
            "id": "line",
            "type": "line",
            "color": "#f8bd19",
            "x": "$canvasstartx - 5",
            "y": "$canvasstarty",
            "tox": "$canvasstartx - 5",
            "toy": "$canvasendy",
            "thickness": "3"
        }, {
            "id": "none-label-bg",
            "type": "rectangle",
            "fillcolor": "#f8bd19",
            "x": "$canvasstartx - 60",
            "tox": "$canvasstartx - 15",
            "y": "$canvasendy - 20",
            "toy": "$canvasendy",
            "radius": "3"
        }, {
            "id": "none-dot",
            "type": "circle",
            "radius": "5",
            "x": "$canvasstartx - 5",
            "y": "$canvasendy - 10",
            "color": "#f8bd19"
        }, {
            "id": "none-label",
            "type": "text",
            "fillcolor": "#ffffff",
            "text": "None",
            "x": "$canvasstartx - 37",
            "y": "$canvasendy - 12",
            "fontsize": "12",
            "bold": "1"
        }, {
            "id": "few-label-bg",
            "type": "rectangle",
            "fillcolor": "#f8bd19",
            "x": "$canvasstartx - 55",
            "tox": "$canvasstartx - 15",
            "y": "$canvasendy - 100",
            "toy": "$canvasendy - 80",
            "radius": "3"
        }, {
            "id": "few-dot",
            "type": "circle",
            "radius": "5",
            "x": "$canvasstartx - 5",
            "y": "$canvasendy - 90",
            "color": "#f8bd19"
        }, {
            "id": "few-label",
            "type": "text",
            "fillcolor": "#ffffff",
            "text": "Few",
            "x": "$canvasstartx - 35",
            "y": "$canvasendy - 92",
            "fontsize": "12",
            "bold": "1"
        }, {
            "id": "moderate-label-bg",
            "type": "rectangle",
            "fillcolor": "#f8bd19",
            "x": "$canvasstartx - 85",
            "tox": "$canvasstartx - 15",
            "y": "$canvasendy - 180",
            "toy": "$canvasendy - 160",
            "radius": "3"
        }, {
            "id": "moderate-dot",
            "type": "circle",
            "radius": "5",
            "x": "$canvasstartx - 5",
            "y": "$canvasendy - 170",
            "color": "#f8bd19"
        }, {
            "id": "moderate-label",
            "type": "text",
            "fillcolor": "#ffffff",
            "text": "Moderate",
            "x": "$canvasstartx - 50",
            "y": "$canvasendy - 172",
            "fontsize": "12",
            "bold": "1"
        }, {
            "id": "maximum-label-bg",
            "type": "rectangle",
            "fillcolor": "#f8bd19",
            "x": "$canvasstartx - 88",
            "tox": "$canvasstartx - 15",
            "y": "$canvasendy - 260",
            "toy": "$canvasendy - 240",
            "radius": "3"
        }, {
            "id": "maximum-dot",
            "type": "circle",
            "radius": "5",
            "x": "$canvasstartx - 5",
            "y": "$canvasendy - 252",
            "color": "#f8bd19"
        }, {
            "id": "maximum-label",
            "type": "text",
            "fillcolor": "#ffffff",
            "text": "High",
            "x": "$canvasstartx - 52",
            "y": "$canvasendy - 252",
            "fontsize": "12",
            "bold": "1"
        }]
}
© www.soinside.com 2019 - 2024. All rights reserved.