VChart icon indicating copy to clipboard operation
VChart copied to clipboard

[Bug] bilateral bar background error

Open skie1997 opened this issue 1 year ago • 1 comments

Version

1.9.0

Link to Minimal Reproduction

vscreen

Steps to Reproduce

    const spec = {
    "type": "common",
    "region": [
        {
            "clip": true,
            "id": "mainRegion"
        },
        {
            "id": "subRegion"
        }
    ],
    "series": [
        {
            "id": "mainSeries",
            "type": "bar",
            "yField": "ur7vPwY7lxha",
            "xField": "10011",
            "seriesField": "30001",
            "direction": "horizontal",
            "regionId": "mainRegion",
            "data": {
                "id": "mainSeriesData",
                "values": [
                    {
                        "10001": "Sales",
                        "10003": "0b2h60Cd1f86",
                        "10011": 20,
                        "30001": "Sales",
                        "ur7vPwY7lxha": "河北",
                        "0b2h60Cd1f86": 20
                    },
                    {
                        "10001": "Sales",
                        "10003": "0b2h60Cd1f86",
                        "10011": 50,
                        "30001": "Sales",
                        "ur7vPwY7lxha": "山西",
                        "0b2h60Cd1f86": 50
                    },
                    {
                        "10001": "Sales",
                        "10003": "0b2h60Cd1f86",
                        "10011": 40,
                        "30001": "Sales",
                        "ur7vPwY7lxha": "内蒙古",
                        "0b2h60Cd1f86": 40
                    },
                    {
                        "10001": "Sales",
                        "10003": "0b2h60Cd1f86",
                        "10011": 50,
                        "30001": "Sales",
                        "ur7vPwY7lxha": "辽宁",
                        "0b2h60Cd1f86": 50
                    },
                    {
                        "10001": "Sales",
                        "10003": "0b2h60Cd1f86",
                        "10011": 35,
                        "30001": "Sales",
                        "ur7vPwY7lxha": "吉林",
                        "0b2h60Cd1f86": 35
                    }
                ],
                "fields": {
                    "10001": {
                        "alias": "指标名称"
                    },
                    "10011": {
                        "alias": "指标值(主轴)"
                    },
                    "10012": {
                        "alias": "指标值(次轴)"
                    },
                    "30001": {
                        "alias": "图例项",
                        "domain": [
                            "Sales",
                            "Profit"
                        ],
                        "sortIndex": 0
                    },
                    "ur7vPwY7lxha": {
                        "alias": "Province",
                        "domain": [
                            "河北",
                            "山西",
                            "内蒙古",
                            "辽宁",
                            "吉林",
                            "河北",
                            "山西",
                            "内蒙古",
                            "辽宁",
                            "吉林"
                        ],
                        "sortIndex": 0
                    },
                    "0b2h60Cd1f86": {
                        "alias": "Sales"
                    },
                    "ubskhJmGe20y": {
                        "alias": "Profit"
                    }
                }
            },
            barBackground: {
              visible: true,
              style: {
                fill: 'white'
              }
            },
            "stack": false,
            "label": {
                "visible": true,
                "offset": 3,
                "overlap": {
                    "hideOnHit": true,
                    "avoidBaseMark": false,
                    "strategy": [
                        {
                            "type": "position",
                            "position": []
                        }
                    ],
                    "clampForce": true
                },
                "style": {
                    "fontSize": 32,
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal",
                    "zIndex": 400,
                    "lineHeight": "100%",
                    "fill": "rgba(255,255,255,1)",
                    "strokeOpacity": 0
                },
                "position": "outside",
                "smartInvert": false
            },
            "hover": {
                "enable": true
            },
            "select": {
                "enable": true
            },
            "bar": {
                "state": {
                    "selected": {
                        "cursor": "pointer",
                        "fillOpacity": 1,
                        "stroke": "#58595B",
                        "lineWidth": 1
                    },
                    "selected_reverse": {
                        "fillOpacity": 0.3,
                        "lineWidth": 0.3
                    }
                },
                "style": {
                    "cornerRadius": 0,
                    "fill": {
                        "gradient": "linear",
                        "x0": 0,
                        "y0": 1,
                        "stops": [
                            {
                                "offset": 0
                            },
                            {
                                "offset": 1
                            }
                        ]
                    }
                }
            },
            "animation": false,
            "barWidth": "60%",
            "animationAppear": {
                "bar": [
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            },
                            "strokeOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            }
                        }
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 1
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": true
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 1,
                                "to": 0.2
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": true
                    }
                ]
            },
            "animationEnter": {
                "bar": [
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            },
                            "strokeOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            }
                        },
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 1
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 1,
                                "to": 0.2
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    }
                ]
            },
            "animationUpdate": {
                "bar": [
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            },
                            "strokeOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            }
                        },
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 1
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 1,
                                "to": 0.2
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    }
                ]
            }
        },
        {
            "id": "subSeries",
            "type": "bar",
            "yField": "ur7vPwY7lxha",
            "xField": "10012",
            "seriesField": "30001",
            "direction": "horizontal",
            "regionId": "subRegion",
            "data": {
                "id": "subSeriesData",
                "values": [
                    {
                        "10001": "Profit",
                        "10003": "ubskhJmGe20y",
                        "10012": 60,
                        "30001": "Profit",
                        "ubskhJmGe20y": 60,
                        "ur7vPwY7lxha": "河北"
                    },
                    {
                        "10001": "Profit",
                        "10003": "ubskhJmGe20y",
                        "10012": 30,
                        "30001": "Profit",
                        "ubskhJmGe20y": 30,
                        "ur7vPwY7lxha": "山西"
                    },
                    {
                        "10001": "Profit",
                        "10003": "ubskhJmGe20y",
                        "10012": 50,
                        "30001": "Profit",
                        "ubskhJmGe20y": 50,
                        "ur7vPwY7lxha": "内蒙古"
                    },
                    {
                        "10001": "Profit",
                        "10003": "ubskhJmGe20y",
                        "10012": 10,
                        "30001": "Profit",
                        "ubskhJmGe20y": 10,
                        "ur7vPwY7lxha": "辽宁"
                    },
                    {
                        "10001": "Profit",
                        "10003": "ubskhJmGe20y",
                        "10012": 20,
                        "30001": "Profit",
                        "ubskhJmGe20y": 20,
                        "ur7vPwY7lxha": "吉林"
                    }
                ],
                "fields": {
                    "10001": {
                        "alias": "指标名称"
                    },
                    "10011": {
                        "alias": "指标值(主轴)"
                    },
                    "10012": {
                        "alias": "指标值(次轴)"
                    },
                    "30001": {
                        "alias": "图例项",
                        "domain": [
                            "Sales",
                            "Profit"
                        ],
                        "sortIndex": 0
                    },
                    "ur7vPwY7lxha": {
                        "alias": "Province",
                        "domain": [
                            "河北",
                            "山西",
                            "内蒙古",
                            "辽宁",
                            "吉林",
                            "河北",
                            "山西",
                            "内蒙古",
                            "辽宁",
                            "吉林"
                        ],
                        "sortIndex": 0
                    },
                    "0b2h60Cd1f86": {
                        "alias": "Sales"
                    },
                    "ubskhJmGe20y": {
                        "alias": "Profit"
                    }
                }
            },
            barBackground: {
              visible: true,
              fieldLevel: 1,
              style: {
                fill: 'red',
                // height: 100
              }
            },
            "stack": false,
            "label": {
                "visible": true,
                "offset": 3,
                "overlap": {
                    "hideOnHit": true,
                    "avoidBaseMark": false,
                    "strategy": [
                        {
                            "type": "position",
                            "position": []
                        }
                    ],
                    "clampForce": true
                },
                "style": {
                    "fontSize": 32,
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal",
                    "zIndex": 400,
                    "lineHeight": "100%",
                    "fill": "rgba(255,255,255,1)",
                    "strokeOpacity": 0
                },
                "position": "outside",
                "smartInvert": false
            },
            "hover": {
                "enable": true
            },
            "select": {
                "enable": true
            },
            "bar": {
                "state": {
                    "selected": {
                        "cursor": "pointer",
                        "fillOpacity": 1,
                        "stroke": "#58595B",
                        "lineWidth": 1
                    },
                    "selected_reverse": {
                        "fillOpacity": 0.3,
                        "lineWidth": 0.3
                    }
                },
                "style": {
                    "cornerRadius": 0,
                    "fill": {
                        "gradient": "linear",
                        "x0": 0,
                        "y0": 1,
                        "stops": [
                            {
                                "offset": 0
                            },
                            {
                                "offset": 1
                            }
                        ]
                    }
                }
            },
            "animation": false,
            "barWidth": "60%",
            "animationAppear": {
                "bar": [
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            },
                            "strokeOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            }
                        }
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 1
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": true
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 1,
                                "to": 0.2
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": true
                    }
                ]
            },
            "animationEnter": {
                "bar": [
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            },
                            "strokeOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            }
                        },
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 1
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 1,
                                "to": 0.2
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    }
                ]
            },
            "animationUpdate": {
                "bar": [
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            },
                            "strokeOpacity": {
                                "from": 0.2,
                                "to": 0.2
                            }
                        },
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 0.2,
                                "to": 1
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    },
                    {
                        "channel": {
                            "fillOpacity": {
                                "from": 1,
                                "to": 0.2
                            }
                        },
                        "oneByOne": 500,
                        "easing": "linear",
                        "controlOptions": {
                            "immediatelyApply": false
                        },
                        "duration": 1500,
                        "delayAfter": 4000,
                        "loop": false
                    }
                ]
            }
        }
    ],
    "padding": {
        "left": 6,
        "right": 6,
        "top": 6,
        "bottom": 6
    },
    "labelLayout": "region",
    "layout": {
        "type": "grid",
        "row": 3,
        "col": 4,
        "elements": [
            {
                "modelId": "legend-discrete",
                "col": 0,
                "colSpan": 4,
                "row": 0
            },
            {
                "modelId": "mainRegion",
                "col": 0,
                "row": 1
            },
            {
                "modelId": "dimensionAxis",
                "col": 1,
                "row": 1
            },
            {
                "modelId": "subRegion",
                "col": 3,
                "row": 1
            },
            {
                "modelId": "measureAxisLeft",
                "col": 0,
                "row": 2
            },
            {
                "modelId": "measureAxisRight",
                "col": 3,
                "row": 2
            },
            {
                "modelId": "dimensionAxis2",
                "col": 2,
                "row": 1
            }
        ]
    },
    "data": [
        {
            "id": "data",
            "values": [
                {
                    "10001": "Sales",
                    "10003": "0b2h60Cd1f86",
                    "10011": 20,
                    "30001": "Sales",
                    "ur7vPwY7lxha": "河北",
                    "0b2h60Cd1f86": 20
                },
                {
                    "10001": "Sales",
                    "10003": "0b2h60Cd1f86",
                    "10011": 50,
                    "30001": "Sales",
                    "ur7vPwY7lxha": "山西",
                    "0b2h60Cd1f86": 50
                },
                {
                    "10001": "Sales",
                    "10003": "0b2h60Cd1f86",
                    "10011": 40,
                    "30001": "Sales",
                    "ur7vPwY7lxha": "内蒙古",
                    "0b2h60Cd1f86": 40
                },
                {
                    "10001": "Sales",
                    "10003": "0b2h60Cd1f86",
                    "10011": 50,
                    "30001": "Sales",
                    "ur7vPwY7lxha": "辽宁",
                    "0b2h60Cd1f86": 50
                },
                {
                    "10001": "Sales",
                    "10003": "0b2h60Cd1f86",
                    "10011": 35,
                    "30001": "Sales",
                    "ur7vPwY7lxha": "吉林",
                    "0b2h60Cd1f86": 35
                },
                {
                    "10001": "Profit",
                    "10003": "ubskhJmGe20y",
                    "10012": 60,
                    "30001": "Profit",
                    "ubskhJmGe20y": 60,
                    "ur7vPwY7lxha": "河北"
                },
                {
                    "10001": "Profit",
                    "10003": "ubskhJmGe20y",
                    "10012": 30,
                    "30001": "Profit",
                    "ubskhJmGe20y": 30,
                    "ur7vPwY7lxha": "山西"
                },
                {
                    "10001": "Profit",
                    "10003": "ubskhJmGe20y",
                    "10012": 50,
                    "30001": "Profit",
                    "ubskhJmGe20y": 50,
                    "ur7vPwY7lxha": "内蒙古"
                },
                {
                    "10001": "Profit",
                    "10003": "ubskhJmGe20y",
                    "10012": 10,
                    "30001": "Profit",
                    "ubskhJmGe20y": 10,
                    "ur7vPwY7lxha": "辽宁"
                },
                {
                    "10001": "Profit",
                    "10003": "ubskhJmGe20y",
                    "10012": 20,
                    "30001": "Profit",
                    "ubskhJmGe20y": 20,
                    "ur7vPwY7lxha": "吉林"
                }
            ],
            "fields": {
                "10001": {
                    "alias": "指标名称"
                },
                "10011": {
                    "alias": "指标值(主轴)"
                },
                "10012": {
                    "alias": "指标值(次轴)"
                },
                "30001": {
                    "alias": "图例项",
                    "domain": [
                        "Sales",
                        "Profit"
                    ],
                    "sortIndex": 0
                },
                "ur7vPwY7lxha": {
                    "alias": "Province",
                    "domain": [
                        "河北",
                        "山西",
                        "内蒙古",
                        "辽宁",
                        "吉林",
                        "河北",
                        "山西",
                        "内蒙古",
                        "辽宁",
                        "吉林"
                    ],
                    "sortIndex": 0
                },
                "0b2h60Cd1f86": {
                    "alias": "Sales"
                },
                "ubskhJmGe20y": {
                    "alias": "Profit"
                }
            }
        }
    ],
    "axes": [
        {
            "id": "dimensionAxis",
            "type": "band",
            "tick": {
                "visible": false
            },
            "grid": {
                "visible": false,
                "style": {
                    "zIndex": 150,
                    "stroke": "#FFFFFF",
                    "lineWidth": 1,
                    "lineDash": []
                }
            },
            "orient": "left",
            "visible": true,
            "domainLine": {
                "visible": false
            },
            "title": {
                "visible": false,
                "space": 5,
                "text": "",
                "style": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.5)",
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal"
                }
            },
            "maxHeight": null,
            "autoIndent": false,
            "sampling": false,
            "zIndex": 200,
            "label": {
                "visible": true,
                "space": 16,
                "style": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.65)",
                    "angle": 0,
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal",
                    "direction": "horizontal",
                    "maxLineWidth": 174
                },
                "autoHide": true,
                "autoHideMethod": "greedy",
                "flush": true,
                "lastVisible": true,
                "containerAlign": "center"
            },
            "hover": true,
            "background": {
                "visible": true,
                "state": {
                    "hover": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    },
                    "hover_reverse": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    }
                }
            },
            "paddingInner": 0.35,
            "paddingOuter": 0.2,
            "maxWidth": 190,
            "inverse": true,
            "offsetX": 8,
            "regionId": [
                "mainRegion"
            ],
            "seriesId": [
                "mainSeries"
            ],
            "ticks": false,
            "rangeType": "rough",
            "bandPadding": 0.2
        },
        {
            "id": "measureAxisLeft",
            "type": "linear",
            "tick": {
                "visible": false,
                "tickMode": "d3",
                "style": {
                    "stroke": "#d5d7e2"
                }
            },
            "niceType": "accurateFirst",
            "zIndex": 200,
            "grid": {
                "visible": true,
                "style": {
                    "zIndex": 150,
                    "stroke": "rgba(255,255,255,0.15)",
                    "lineWidth": 1,
                    "lineDash": []
                }
            },
            "orient": "bottom",
            "visible": true,
            "domainLine": {
                "visible": false,
                "style": {
                    "lineWidth": 1,
                    "stroke": "#d5d7e2"
                }
            },
            "title": {
                "visible": false,
                "text": "",
                "space": 8,
                "style": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.5)",
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal"
                }
            },
            "autoIndent": false,
            "sampling": false,
            "label": {
                "visible": true,
                "space": 4,
                "flush": true,
                "padding": 0,
                "style": {
                    "fontSize": 12,
                    "maxLineWidth": 174,
                    "fill": "rgba(255,255,255,0.65)",
                    "angle": 0,
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal",
                    "dy": -1,
                    "direction": "horizontal"
                },
                "autoHide": true,
                "autoHideMethod": "greedy",
                "rotateAngle": [
                    null
                ],
                "labelOverlap": "custom",
                "tighten": false
            },
            "background": {
                "visible": true,
                "state": {
                    "hover": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    },
                    "hover_reverse": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    }
                }
            },
            "zero": true,
            "nice": true,
            "regionId": ["mainRegion"],
            "seriesId": ["mainSeries"],
            "inverse": true,
            "rangeType": "rough",
            "bandPadding": 0.2
        },
        {
            "id": "measureAxisRight",
            "type": "linear",
            "tick": {
                "visible": false,
                "tickMode": "d3",
                "style": {
                    "stroke": "#d5d7e2"
                }
            },
            "niceType": "accurateFirst",
            "zIndex": 200,
            "grid": {
                "visible": true,
                "style": {
                    "zIndex": 150,
                    "stroke": "rgba(255,255,255,0.15)",
                    "lineWidth": 1,
                    "lineDash": []
                }
            },
            "orient": "bottom",
            "visible": true,
            "domainLine": {
                "visible": false,
                "style": {
                    "lineWidth": 1,
                    "stroke": "#d5d7e2"
                }
            },
            "title": {
                "visible": false,
                "text": "",
                "space": 8,
                "style": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.5)",
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal"
                }
            },
            "autoIndent": false,
            "sampling": false,
            "label": {
                "visible": true,
                "space": 4,
                "flush": true,
                "padding": 0,
                "style": {
                    "fontSize": 12,
                    "maxLineWidth": 174,
                    "fill": "rgba(255,255,255,0.65)",
                    "angle": 0,
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal",
                    "dy": -1,
                    "direction": "horizontal"
                },
                "autoHide": true,
                "autoHideMethod": "greedy"
            },
            "background": {
                "visible": true,
                "state": {
                    "hover": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    },
                    "hover_reverse": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    }
                }
            },
            "zero": true,
            "nice": true,
            "regionId": ["subRegion"],
            "seriesId": ["subSeries"],
            "bandPadding": 0.2
        },
        {
            "id": "dimensionAxis2",
            "type": "band",
            "tick": {
                "visible": false
            },
            "grid": {
                "visible": false,
                "style": {
                    "zIndex": 150,
                    "stroke": "#FFFFFF",
                    "lineWidth": 1,
                    "lineDash": []
                }
            },
            "orient": "left",
            "visible": false,
            "domainLine": {
                "visible": false
            },
            "title": {
                "visible": false,
                "space": 5,
                "text": "",
                "style": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.5)",
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal"
                }
            },
            "maxHeight": null,
            "autoIndent": false,
            "sampling": false,
            "zIndex": 200,
            "label": {
                "visible": true,
                "space": 16,
                "style": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.65)",
                    "angle": 0,
                    "fontFamily": "D-DIN",
                    "fontWeight": "normal",
                    "direction": "horizontal",
                    "maxLineWidth": 174
                },
                "autoHide": true,
                "autoHideMethod": "greedy",
                "flush": true,
                "lastVisible": true,
                "containerAlign": "center"
            },
            "hover": true,
            "background": {
                "visible": true,
                "state": {
                    "hover": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    },
                    "hover_reverse": {
                        "fillOpacity": 0.08,
                        "fill": "#141414"
                    }
                }
            },
            "paddingInner": 0.35,
            "paddingOuter": 0.2,
            "maxWidth": 190,
            "inverse": true,
            "offsetX": 8,
            "regionId": ["subRegion"],
            "seriesId": ["subSeries"],
            "ticks": false,
            "rangeType": "rough",
            "bandPadding": 0.2
        }
    ],
    "seriesField": "30001",
    "color": {
        "field": "30001",
        "type": "ordinal",
        "range": [
            "rgb(0,110,255)",
            "rgb(0,229,229)"
        ],
        "specified": {}
    },
    "colorGradient": {
        "type": "linear",
        "x0": {
            "field": "30001",
            "type": "ordinal",
            "range": [
                0,
                0
            ]
        },
        "y0": {
            "field": "30001",
            "type": "ordinal",
            "range": [
                1,
                1
            ]
        },
        "x1": {
            "field": "30001",
            "type": "ordinal",
            "range": [
                1,
                1
            ]
        },
        "y1": {
            "field": "30001",
            "type": "ordinal",
            "range": [
                1,
                1
            ]
        },
        "stops": [
            {
                "offset": 0,
                "color": {
                    "field": "30001",
                    "type": "ordinal",
                    "range": [
                        "rgb(0,110,255)",
                        "rgba(0,229,229,0.2)"
                    ]
                }
            },
            {
                "offset": 1,
                "color": {
                    "field": "30001",
                    "type": "ordinal",
                    "range": [
                        "rgba(0,110,255,0.2)",
                        "rgb(0,229,229)"
                    ]
                }
            }
        ]
    },
    "legends": [
        {
            "type": "discrete",
            "visible": true,
            "id": "legend-discrete",
            "orient": "top",
            "position": "end",
            "layoutType": "normal",
            "maxRow": 1,
            "title": {
                "textStyle": {
                    "fontSize": 12,
                    "fill": "rgba(255,255,255,0.45)"
                }
            },
            "layoutLevel": 70,
            "item": {
                "focus": true,
                "focusIconStyle": {
                    "size": 14
                },
                "maxWidth": 400,
                "spaceRow": 0,
                "spaceCol": 0,
                "padding": {
                    "top": 1,
                    "bottom": 1,
                    "left": 1,
                    "right": 1
                },
                "background": {
                    "visible": false,
                    "style": {
                        "fillOpacity": 0.001
                    }
                },
                "label": {
                    "style": {
                        "fontSize": 12,
                        "fill": "rgba(255,255,255,0.45)",
                        "fontFamily": "D-DIN",
                        "fontWeight": "normal"
                    },
                    "state": {
                        "unSelected": {
                            "fillOpacity": 0.2
                        }
                    }
                },
                "shape": {
                    "style": {
                        "lineWidth": 0,
                        "symbolType": "square",
                        "size": 12,
                        "fillOpacity": 1,
                        "width": 12,
                        "height": 7.416
                    }
                }
            },
            "pager": {
                "layout": "horizontal",
                "padding": 0,
                "textStyle": {},
                "space": 0,
                "handler": {
                    "preShape": "triangleLeft",
                    "nextShape": "triangleRight",
                    "style": {},
                    "state": {
                        "disable": {}
                    }
                }
            },
            "padding": {
                "top": 0,
                "bottom": 16,
                "left": 0,
                "right": 0
            }
        }
    ],
    "tooltip": {
        "renderMode": "canvas",
        "mark": {
            "visible": true
        },
        "style": {
            "panel": {
                "padding": {
                    "top": 5,
                    "bottom": 10,
                    "left": 10,
                    "right": 10
                },
                "backgroundColor": "rgba(47, 59, 82, 0.9)",
                "border": {
                    "color": "#fff",
                    "width": 0,
                    "radius": 4
                },
                "shadow": {
                    "x": 0,
                    "y": 4,
                    "blur": 12,
                    "spread": 0,
                    "color": "rgba(0, 0, 0, 0.2)"
                }
            },
            "titleLabel": {
                "fontSize": 14,
                "fontColor": "#fff",
                "align": "left",
                "lineHeight": 18
            },
            "keyLabel": {
                "fontSize": 12,
                "fontColor": "#fff",
                "align": "left",
                "lineHeight": 18
            },
            "valueLabel": {
                "fontSize": 12,
                "fontColor": "#fff",
                "align": "right",
                "lineHeight": 18
            },
            "shape": {
                "size": 10,
                "spacing": 10
            },
            "spaceRow": 10
        },
        "dimension": {
            "visible": true
        }
    },
    "background": "rgba(0, 0, 0, 1)",
    "crosshair": {
        "yField": {
            "visible": true,
            "line": {
                "type": "rect",
                "style": {
                    "fillOpacity": 0.2,
                    "fill": "#b2bacf"
                }
            }
        },
        "gridZIndex": 100,
        "xField": {
            "line": {
                "style": {
                    "fillOpacity": 0.2
                }
            }
        }
    },
    "morph": {
        "enable": false
    },
    "label": {
        "fontWeight": "normal",
        "style": {
            "fontFamily": "D-DIN"
        }
    },
    "axesPadding": true,
    "plotLayout": {
        "clip": false
    },
    "select": {
        "enable": true
    },
    "scales": [
        {
            "id": "gradientFillStop0",
            "type": "ordinal",
            "range": [
                "rgb(0,110,255)",
                "rgba(0,229,229,0.2)",
                "rgba(46,85,234,0.2)",
                "rgba(184,231,254,0.2)",
                "rgba(0,214,137,0.2)",
                "rgba(183,249,245,0.2)",
                "rgba(251,204,113,0.2)",
                "rgba(244,110,80,0.2)"
            ],
            "domain": [
                {
                    "dataId": "data",
                    "fields": [
                        "30001"
                    ]
                }
            ]
        },
        {
            "id": "gradientFillStop1",
            "type": "ordinal",
            "range": [
                "rgba(0,110,255,0.2)",
                "rgb(0,229,229)",
                "rgb(46,85,234)",
                "rgb(184,231,254)",
                "rgb(0,214,137)",
                "rgb(183,249,245)",
                "rgb(251,204,113)",
                "rgb(244,110,80)"
            ],
            "domain": [
                {
                    "dataId": "data",
                    "fields": [
                        "30001"
                    ]
                }
            ]
        },
        {
            "id": "gradientStrokeStop0",
            "type": "ordinal",
            "range": [
                "rgba(51, 139, 255, 1)",
                "rgba(25, 255, 255, 0.2)",
                "rgba(92, 123, 239, 0.2)",
                "rgba(234, 248, 255, 0.2)",
                "rgba(10, 255, 167, 0.2)",
                "rgba(230, 253, 252, 0.2)",
                "rgba(252, 222, 163, 0.2)",
                "rgba(247, 150, 128, 0.2)"
            ],
            "domain": [
                {
                    "dataId": "data",
                    "fields": [
                        "30001"
                    ]
                }
            ]
        },
        {
            "id": "gradientStrokeStop1",
            "type": "ordinal",
            "range": [
                "rgba(51, 139, 255, 0.2)",
                "rgba(25, 255, 255, 1)",
                "rgba(92, 123, 239, 1)",
                "rgba(234, 248, 255, 1)",
                "rgba(10, 255, 167, 1)",
                "rgba(230, 253, 252, 1)",
                "rgba(252, 222, 163, 1)",
                "rgba(247, 150, 128, 1)"
            ],
            "domain": [
                {
                    "dataId": "data",
                    "fields": [
                        "30001"
                    ]
                }
            ]
        },
        {
            "id": "gradientX1",
            "type": "ordinal",
            "range": [
                1,
                1,
                1,
                1,
                1,
                1,
                1,
                1
            ],
            "domain": [
                {
                    "dataId": "data",
                    "fields": [
                        "30001"
                    ]
                }
            ]
        },
        {
            "id": "gradientY1",
            "type": "ordinal",
            "range": [
                1,
                1,
                1,
                1,
                1,
                1,
                1,
                1
            ],
            "domain": [
                {
                    "dataId": "data",
                    "fields": [
                        "30001"
                    ]
                }
            ]
        }
    ],
    "hash": "4a8d08a156dd2ebff7ba123e617093ef",
    "animation": false
}

Current Behavior

image

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

skie1997 avatar Jan 30 '24 09:01 skie1997

暂时通过配置hack, 正常迭代节奏修复

skie1997 avatar Jan 30 '24 10:01 skie1997

1.13.2 is normal

xile611 avatar Dec 25 '24 07:12 xile611