Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] RoseChart, Tooltip Error. #1263

Closed
youngwinds opened this issue Oct 23, 2023 · 0 comments · Fixed by #1317
Closed

[Bug] RoseChart, Tooltip Error. #1263

youngwinds opened this issue Oct 23, 2023 · 0 comments · Fixed by #1317
Assignees
Labels
bp bug Something isn't working

Comments

@youngwinds
Copy link
Contributor

Image

{
    "type": "rose",
    "categoryField": "20001",
    "valueField": "10002",
    "seriesField": "20001",
    "padding": 0,
    "axes": [
        {
            "orient": "radius",
            "zero": true,
            "nice": false
        }
    ],
    "data": [
        {
            "id": "data",
            "values": [
                {
                    "10001": "数_量",
                    "10002": "37534",
                    "10003": "231021185249544",
                    "20001": "数_量",
                    "231021185249544": "37534"
                },
                {
                    "10001": "利润",
                    "10002": "2147538.9271282256",
                    "10003": "231021185249687",
                    "20001": "利润",
                    "231021185249687": "2147538.9271282256"
                },
                {
                    "10001": "折扣",
                    "10002": "1059.7000162974",
                    "10003": "231021185249690",
                    "20001": "折扣",
                    "231021185249690": "1059.7000162974"
                },
                {
                    "10001": "LOD字段",
                    "10002": "16068954.132933617",
                    "10003": "231021185249693",
                    "20001": "LOD字段",
                    "231021185249693": "16068954.132933617"
                }
            ],
            "fields": {
                "10001": {
                    "alias": "指标名称 "
                },
                "10002": {
                    "alias": "指标值 "
                },
                "20001": {
                    "alias": "图例项 ",
                    "domain": [
                        "数_量",
                        "利润",
                        "折扣",
                        "LOD字段"
                    ],
                    "sortIndex": 0
                },
                "231021185249544": {
                    "alias": "数_量"
                },
                "231021185249687": {
                    "alias": "利润"
                },
                "231021185249690": {
                    "alias": "折扣"
                },
                "231021185249693": {
                    "alias": "LOD字段"
                }
            }
        }
    ],
    "outerRadius": 0.8,
    "label": {
        "visible": true,
        "overlap": {
            "hideOnHit": true,
            "avoidBaseMark": false,
            "strategy": [
                {
                    "type": "moveY",
                    "offset": [
                        -20,
                        -19,
                        -18,
                        -17,
                        -16,
                        -15,
                        -14,
                        -13,
                        -12,
                        -11,
                        -10,
                        -9,
                        -8,
                        -7,
                        -6,
                        -5,
                        -4,
                        -3,
                        -2,
                        -1,
                        0,
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20
                    ]
                },
                {
                    "type": "moveX",
                    "offset": [
                        -20,
                        -19,
                        -18,
                        -17,
                        -16,
                        -15,
                        -14,
                        -13,
                        -12,
                        -11,
                        -10,
                        -9,
                        -8,
                        -7,
                        -6,
                        -5,
                        -4,
                        -3,
                        -2,
                        -1,
                        0,
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20
                    ]
                }
            ]
        },
        "style": {
            "fontSize": 12,
            "zIndex": 400,
            "fill": null,
            "lineWidth": 0,
            "strokeOpacity": 1,
            "angle": 0
        },
        "layout": {
            "tangentConstraint": false
        },
        "position": "outside",
        "smartInvert": false,
        "interactive": false
    },
    "color": {
        "field": "20001",
        "type": "ordinal",
        "range": [
            "#2E62F1",
            "#4DC36A",
            "#FF8406",
            "#FFCC00"
        ],
        "specified": {},
        "domain": [
            "数_量",
            "利润",
            "折扣",
            "LOD字段"
        ]
    },
    "legends": [
        {
            "type": "discrete",
            "id": "legend-discrete",
            "orient": "right",
            "position": "start",
            "layoutType": "normal",
            "visible": true,
            "maxCol": 1,
            "title": {
                "textStyle": {
                    "fontSize": 12,
                    "fill": "#6F6F6F"
                }
            },
            "layoutLevel": 60,
            "item": {
                "focus": true,
                "focusIconStyle": {
                    "size": 14
                },
                "maxWidth": 326,
                "spaceRow": 0,
                "spaceCol": 0,
                "padding": {
                    "top": 1,
                    "bottom": 2,
                    "left": 3,
                    "right": 2
                },
                "background": {
                    "visible": false,
                    "style": {
                        "fillOpacity": 0.001
                    }
                },
                "label": {
                    "style": {
                        "fontSize": 12,
                        "fill": "#6F6F6F"
                    }
                },
                "shape": {
                    "style": {
                        "lineWidth": 0,
                        "symbolType": "square"
                    }
                }
            },
            "pager": {
                "layout": "horizontal",
                "padding": {
                    "left": -18
                },
                "textStyle": {},
                "space": 0,
                "handler": {
                    "preShape": "triangleLeft",
                    "nextShape": "triangleRight",
                    "style": {},
                    "state": {
                        "disable": {}
                    }
                }
            },
            "padding": {
                "top": 0,
                "bottom": 0,
                "left": 16,
                "right": 0
            }
        }
    ],
    "hover": {
        "enable": true
    },
    "select": {
        "enable": true
    },
    "rose": {
        "state": {
            "hover": {
                "cursor": "pointer",
                "fillOpacity": 0.8,
                "stroke": "#58595B",
                "lineWidth": 1,
                "zIndex": 500
            },
            "selected": {
                "cursor": "pointer",
                "fillOpacity": 1,
                "stroke": "#58595B",
                "lineWidth": 1
            },
            "selected_reverse": {
                "fillOpacity": 0.3,
                "strokeWidth": 0.3
            }
        }
    },
    "tooltip": {
        "handler": {}
    },
    "pie": {},
    "region": [
        {
            "clip": true
        }
    ],
    "background": "rgba(255, 255, 255, 0)",
    "animation": false,
    "hash": "d382aff7684524d796a331462cbfadc4"
}
@youngwinds youngwinds added bug Something isn't working bp labels Oct 23, 2023
@simaQ simaQ assigned zamhown and unassigned kkxxkk2019 Oct 24, 2023
@zamhown zamhown mentioned this issue Oct 25, 2023
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bp bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants