VisActor / VChart

VChart, more than just a cross-platform charting library, but also an expressive data storyteller.
https://www.visactor.io/vchart
MIT License
1.01k stars 73 forks source link

[Bug] PivotChart's tooltip throw error #3428

Closed kkxxkk2019 closed 1 week ago

kkxxkk2019 commented 1 week ago

Version

lastest

Link to Minimal Reproduction

none

Steps to Reproduce

复现 Spec:

const option = {
  "widthMode": "adaptive",
  "heightMode": "adaptive",
  "columnTree": [
    {
      "dimensionKey": "230803111942020",
      "value": "一级"
    },
    {
      "dimensionKey": "230803111942020",
      "value": "TEST二级"
    },
    {
      "dimensionKey": "230803111942020",
      "value": "当日"
    },
    {
      "dimensionKey": "230803111942020",
      "value": "标准级"
    }
  ],
  "rowTree": [
    {
      "dimensionKey": "230803111942023",
      "value": "办公用品"
    },
    {
      "dimensionKey": "230803111942023",
      "value": "家具"
    },
    {
      "dimensionKey": "230803111942023",
      "value": "技术"
    }
  ],
  "columns": [
    {
      "dimensionKey": "230803111942020",
      "title": "邮寄方式"
    }
  ],
  "rows": [
    {
      "dimensionKey": "230803111942023",
      "title": "类别"
    }
  ],
  "axes": [
    {
      "id": "axes_0",
      "type": "band",
      "tick": {
        "visible": false
      },
      "grid": {
        "visible": false,
        "style": {
          "zIndex": 150,
          "stroke": "#DADCDD",
          "lineWidth": 1,
          "lineDash": [
            4,
            2
          ]
        }
      },
      "orient": "bottom",
      "visible": true,
      "domainLine": {
        "visible": true,
        "style": {
          "lineWidth": 1,
          "stroke": "#989999"
        }
      },
      "title": {
        "visible": false,
        "space": 5,
        "text": "细分",
        "style": {
          "fontSize": 12,
          "fill": "#363839",
          "fontWeight": "normal"
        }
      },
      "maxHeight": null,
      "autoIndent": false,
      "sampling": false,
      "zIndex": 200,
      "label": {
        "visible": true,
        "space": 4,
        "style": {
          "fontSize": 12,
          "fill": "#6F6F6F",
          "angle": 0,
          "fontWeight": "normal",
          "direction": "horizontal",
          "maxLineWidth": 174
        },
        "autoHide": true,
        "autoHideMethod": "greedy",
        "flush": true,
        "lastVisible": true
      },
      "hover": true,
      "background": {
        "visible": true,
        "state": {
          "hover": {
            "fillOpacity": 0.08,
            "fill": "#141414"
          },
          "hover_reverse": {
            "fillOpacity": 0.08,
            "fill": "#141414"
          }
        }
      },
      "paddingInner": [
        0.15,
        0.1
      ],
      "paddingOuter": [
        0.075,
        0.1
      ]
    },
    {
      "id": "axes_1",
      "type": "linear",
      "tick": {
        "visible": false,
        "tickMode": "d3",
        "style": {
          "stroke": "rgba(255, 255, 255, 0)"
        }
      },
      "niceType": "accurateFirst",
      "zIndex": 200,
      "grid": {
        "visible": true,
        "style": {
          "zIndex": 150,
          "stroke": "#DADCDD",
          "lineWidth": 1,
          "lineDash": [
            4,
            2
          ]
        }
      },
      "orient": "left",
      "visible": true,
      "domainLine": {
        "visible": true,
        "style": {
          "lineWidth": 1,
          "stroke": "rgba(255, 255, 255, 0)"
        }
      },
      "title": {
        "visible": false,
        "text": "销售额",
        "space": 8,
        "style": {
          "fontSize": 12,
          "fill": "#363839",
          "fontWeight": "normal"
        }
      },
      "autoIndent": false,
      "sampling": false,
      "label": {
        "visible": true,
        "space": 6,
        "flush": true,
        "padding": 0,
        "style": {
          "fontSize": 12,
          "maxLineWidth": 174,
          "fill": "#6F6F6F",
          "angle": 0,
          "fontWeight": "normal",
          "dy": 0,
          "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
    }
  ],
  "indicators": [
    {
      "indicatorKey": "10002",
      "title": "",
      "width": "auto",
      "cellType": "chart",
      "chartModule": "vchart",
      "style": {
        "padding": [
          1,
          1,
          0,
          1
        ]
      },
      "chartSpec": {
        "type": "bar",
        "theme": {},
        "xField": [
          "230803112404023",
          "10001"
        ],
        "yField": [
          "10002"
        ],
        "direction": "vertical",
        "sortDataByAxis": true,
        "seriesField": "20001",
        "padding": 0,
        "labelLayout": "region",
        "data": {
          "id": "data",
          "fields": {
            "10001": {
              "alias": "指标名称 "
            },
            "10002": {
              "alias": "指标值 "
            },
            "20001": {
              "alias": "图例项 ",
              "domain": [
                "销售额",
                "利润"
              ],
              "sortIndex": 0,
              "lockStatisticsByDomain": true
            },
            "230803111942014": {
              "alias": "销售额"
            },
            "230803111942020": {
              "alias": "邮寄方式"
            },
            "230803111942023": {
              "alias": "类别"
            },
            "230803112404012": {
              "alias": "利润"
            },
            "230803112404023": {
              "alias": "细分"
            }
          }
        },
        "stackInverse": true,
        "axes": [
          {
            "type": "band",
            "tick": {
              "visible": false
            },
            "grid": {
              "visible": false,
              "style": {
                "zIndex": 150,
                "stroke": "#DADCDD",
                "lineWidth": 1,
                "lineDash": [
                  4,
                  2
                ]
              }
            },
            "orient": "bottom",
            "visible": true,
            "domainLine": {
              "visible": true,
              "style": {
                "lineWidth": 1,
                "stroke": "#989999"
              }
            },
            "title": {
              "visible": false,
              "space": 5,
              "text": "细分",
              "style": {
                "fontSize": 12,
                "fill": "#363839",
                "fontWeight": "normal"
              }
            },
            "maxHeight": null,
            "autoIndent": false,
            "sampling": false,
            "zIndex": 200,
            "label": {
              "visible": true,
              "space": 4,
              "style": {
                "fontSize": 12,
                "fill": "#6F6F6F",
                "angle": 0,
                "fontWeight": "normal",
                "direction": "horizontal",
                "maxLineWidth": 174
              },
              "autoHide": true,
              "autoHideMethod": "greedy",
              "flush": true,
              "lastVisible": true
            },
            "hover": false,
            "background": {
              "visible": true,
              "state": {
                "hover": {
                  "fillOpacity": 0.08,
                  "fill": "#141414"
                },
                "hover_reverse": {
                  "fillOpacity": 0.08,
                  "fill": "#141414"
                }
              }
            },
            "paddingInner": [
              0.15,
              0.1
            ],
            "paddingOuter": [
              0.075,
              0.1
            ]
          },
          {
            "type": "linear",
            "tick": {
              "visible": false,
              "tickMode": "d3",
              "style": {
                "stroke": "rgba(255, 255, 255, 0)"
              }
            },
            "niceType": "accurateFirst",
            "zIndex": 200,
            "grid": {
              "visible": true,
              "style": {
                "zIndex": 150,
                "stroke": "#DADCDD",
                "lineWidth": 1,
                "lineDash": [
                  4,
                  2
                ]
              }
            },
            "orient": "left",
            "visible": true,
            "domainLine": {
              "visible": true,
              "style": {
                "lineWidth": 1,
                "stroke": "rgba(255, 255, 255, 0)"
              }
            },
            "title": {
              "visible": false,
              "text": "销售额",
              "space": 8,
              "style": {
                "fontSize": 12,
                "fill": "#363839",
                "fontWeight": "normal"
              }
            },
            "autoIndent": false,
            "sampling": false,
            "label": {
              "visible": true,
              "space": 6,
              "flush": true,
              "padding": 0,
              "style": {
                "fontSize": 12,
                "maxLineWidth": 174,
                "fill": "#6F6F6F",
                "angle": 0,
                "fontWeight": "normal",
                "dy": 0,
                "direction": "horizontal"
              },
              "autoHide": true,
              "autoHideMethod": "greedy"
            },
            "hover": false,
            "background": {
              "visible": true,
              "state": {
                "hover": {
                  "fillOpacity": 0.08,
                  "fill": "#141414"
                },
                "hover_reverse": {
                  "fillOpacity": 0.08,
                  "fill": "#141414"
                }
              }
            },
            "zero": true,
            "nice": true
          }
        ],
        "color": {
          "field": "20001",
          "type": "ordinal",
          "range": [
            "#2E62F1",
            "#4DC36A"
          ],
          "specified": {},
          "domain": [
            "销售额",
            "利润"
          ]
        },
        "label": {
          "visible": true,
          "offset": 3,
          "overlap": {
            "hideOnHit": true,
            "avoidBaseMark": false,
            "strategy": [
              {
                "type": "position",
                "position": []
              }
            ],
            "clampForce": true
          },
          "style": {
            "fontSize": 12,
            "fontWeight": "normal",
            "zIndex": 400,
            "lineHeight": "100%",
            "boundsPadding": [
              1,
              0,
              0,
              0
            ],
            "fill": "#363839",
            "lineWidth": 2,
            "strokeOpacity": 1
          },
          "position": "inside",
          "smartInvert": {
            "fillStrategy": "invertBase",
            "strokeStrategy": "similarBase",
            "outsideEnable": true,
            "mode": "lightness"
          }
        },
        "tooltip": {
          "mark": {},
          "dimension": {}
        },
        "hover": {
          "enable": true
        },
        "select": {
          "enable": true
        },
        "bar": {
          "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,
              "lineWidth": 0.3
            }
          }
        },
        "region": [
          {
            "clip": true
          }
        ],
        "background": "rgba(255, 255, 255, 0)",
        "animation": false,
        "crosshair": {
          "xField": {
            "visible": true,
            "line": {
              "type": "rect",
              "style": {
                "fillOpacity": 0.2,
                "fill": "#b2bacf"
              }
            }
          },
          "gridZIndex": 100
        }
      }
    }
  ],
  "indicatorsAsCol": false,
  "records": [
    {
      "10001": "销售额",
      "10002": "380464.75713825226",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "380464.75713825226",
      "230803111942020": "一级",
      "230803111942023": "办公用品",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "56833.61558970064",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "办公用品",
      "230803112404012": "56833.61558970064",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "117794.93595695496",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "117794.93595695496",
      "230803111942020": "一级",
      "230803111942023": "办公用品",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "22200.416000008583",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "办公用品",
      "230803112404012": "22200.416000008583",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "156846.78741645813",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "156846.78741645813",
      "230803111942020": "一级",
      "230803111942023": "办公用品",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "14911.568156942725",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "办公用品",
      "230803112404012": "14911.568156942725",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "588745.8375930786",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "588745.8375930786",
      "230803111942020": "TEST二级",
      "230803111942023": "办公用品",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "82210.4365491271",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "办公用品",
      "230803112404012": "82210.4365491271",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "165261.46086597443",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "165261.46086597443",
      "230803111942020": "TEST二级",
      "230803111942023": "办公用品",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "31517.359821110964",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "办公用品",
      "230803112404012": "31517.359821110964",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "344174.0122413635",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "344174.0122413635",
      "230803111942020": "TEST二级",
      "230803111942023": "办公用品",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "56259.391975969076",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "办公用品",
      "230803112404012": "56259.391975969076",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "86379.0474395752",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "86379.0474395752",
      "230803111942020": "当日",
      "230803111942023": "办公用品",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "12436.367780320346",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "办公用品",
      "230803112404012": "12436.367780320346",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "101161.92803001404",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "101161.92803001404",
      "230803111942020": "当日",
      "230803111942023": "办公用品",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "14305.928269684315",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "办公用品",
      "230803112404012": "14305.928269684315",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "63471.21199798584",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "63471.21199798584",
      "230803111942020": "当日",
      "230803111942023": "办公用品",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "13650.672092795372",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "办公用品",
      "230803112404012": "13650.672092795372",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "1473156.8073101044",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "1473156.8073101044",
      "230803111942020": "标准级",
      "230803111942023": "办公用品",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "228931.16524784267",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "办公用品",
      "230803112404012": "228931.16524784267",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "490936.9370174408",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "490936.9370174408",
      "230803111942020": "标准级",
      "230803111942023": "办公用品",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "81160.1556096971",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "办公用品",
      "230803112404012": "81160.1556096971",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "897196.0767812729",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "897196.0767812729",
      "230803111942020": "标准级",
      "230803111942023": "办公用品",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "143223.2765512094",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "办公用品",
      "230803112404012": "143223.2765512094",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "262147.25077819824",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "262147.25077819824",
      "230803111942020": "一级",
      "230803111942023": "家具",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "32112.54852294922",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "家具",
      "230803112404012": "32112.54852294922",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "447311.92111206055",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "447311.92111206055",
      "230803111942020": "一级",
      "230803111942023": "家具",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "30604.581623375416",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "家具",
      "230803112404012": "30604.581623375416",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "241266.1718597412",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "241266.1718597412",
      "230803111942020": "一级",
      "230803111942023": "家具",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "21737.352279663086",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "家具",
      "230803112404012": "21737.352279663086",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "198037.90341949463",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "198037.90341949463",
      "230803111942020": "TEST二级",
      "230803111942023": "家具",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "28058.722805976868",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "家具",
      "230803112404012": "28058.722805976868",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "572375.5385437012",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "572375.5385437012",
      "230803111942020": "TEST二级",
      "230803111942023": "家具",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "73886.35817527771",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "家具",
      "230803112404012": "73886.35817527771",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "420066.40171051025",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "420066.40171051025",
      "230803111942020": "TEST二级",
      "230803111942023": "家具",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "56566.20194362849",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "家具",
      "230803112404012": "56566.20194362849",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "140785.80603027344",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "140785.80603027344",
      "230803111942020": "当日",
      "230803111942023": "家具",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "22207.906154602766",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "家具",
      "230803112404012": "22207.906154602766",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "26433.00079345703",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "26433.00079345703",
      "230803111942020": "当日",
      "230803111942023": "家具",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "4554.221017837524",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "家具",
      "230803112404012": "4554.221017837524",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "97536.88723754883",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "97536.88723754883",
      "230803111942020": "当日",
      "230803111942023": "家具",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "12155.226836547256",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "家具",
      "230803112404012": "12155.226836547256",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "1123872.2183876038",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "1123872.2183876038",
      "230803111942020": "标准级",
      "230803111942023": "家具",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "129899.65761941671",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "家具",
      "230803112404012": "129899.65761941671",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "576266.5649185181",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "576266.5649185181",
      "230803111942020": "标准级",
      "230803111942023": "家具",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "69053.98503825068",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "家具",
      "230803112404012": "69053.98503825068",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "1628241.163204193",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "1628241.163204193",
      "230803111942020": "标准级",
      "230803111942023": "家具",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "157898.86729355156",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "家具",
      "230803112404012": "157898.86729355156",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "225407.27980041504",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "225407.27980041504",
      "230803111942020": "一级",
      "230803111942023": "技术",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "13366.780400276184",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "技术",
      "230803112404012": "13366.780400276184",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "422234.42849731445",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "422234.42849731445",
      "230803111942020": "一级",
      "230803111942023": "技术",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "76715.68765038252",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "技术",
      "230803112404012": "76715.68765038252",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "149919.13972473145",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "149919.13972473145",
      "230803111942020": "一级",
      "230803111942023": "技术",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "7798.559708595276",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "一级",
      "230803111942023": "技术",
      "230803112404012": "7798.559708595276",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "356660.58421325684",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "356660.58421325684",
      "230803111942020": "TEST二级",
      "230803111942023": "技术",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "24531.583904236555",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "技术",
      "230803112404012": "24531.583904236555",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "670605.2943267822",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "670605.2943267822",
      "230803111942020": "TEST二级",
      "230803111942023": "技术",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "93237.45214748383",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "技术",
      "230803112404012": "93237.45214748383",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "182850.6668395996",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "182850.6668395996",
      "230803111942020": "TEST二级",
      "230803111942023": "技术",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "29621.648061841726",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "TEST二级",
      "230803111942023": "技术",
      "230803112404012": "29621.648061841726",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "144017.271774292",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "144017.271774292",
      "230803111942020": "当日",
      "230803111942023": "技术",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "34618.471593379974",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "技术",
      "230803112404012": "34618.471593379974",
      "230803112404023": "公司"
    },
    {
      "10001": "销售额",
      "10002": "59922.1845703125",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "59922.1845703125",
      "230803111942020": "当日",
      "230803111942023": "技术",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "5426.484020233154",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "技术",
      "230803112404012": "5426.484020233154",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "107783.59265136719",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "107783.59265136719",
      "230803111942020": "当日",
      "230803111942023": "技术",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "15019.032051563263",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "当日",
      "230803111942023": "技术",
      "230803112404012": "15019.032051563263",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "1492205.1197357178",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "1492205.1197357178",
      "230803111942020": "标准级",
      "230803111942023": "技术",
      "230803112404023": "消费者"
    },
    {
      "10001": "利润",
      "10002": "201241.60064932704",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "技术",
      "230803112404012": "201241.60064932704",
      "230803112404023": "消费者"
    },
    {
      "10001": "销售额",
      "10002": "618928.464225769",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "618928.464225769",
      "230803111942020": "标准级",
      "230803111942023": "技术",
      "230803112404023": "小型企业"
    },
    {
      "10001": "利润",
      "10002": "97699.08449694514",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "技术",
      "230803112404012": "97699.08449694514",
      "230803112404023": "小型企业"
    },
    {
      "10001": "销售额",
      "10002": "1038489.4787902832",
      "10003": "230803111942014",
      "20001": "销售额",
      "230803111942014": "1038489.4787902832",
      "230803111942020": "标准级",
      "230803111942023": "技术",
      "230803112404023": "公司"
    },
    {
      "10001": "利润",
      "10002": "151886.55948847532",
      "10003": "230803112404012",
      "20001": "利润",
      "230803111942020": "标准级",
      "230803111942023": "技术",
      "230803112404012": "151886.55948847532",
      "230803112404023": "公司"
    }
  ],
  "indicatorTitle": "",
  "autoWrapText": true,
  "legends": {
    "type": "discrete",
    "visible": true,
    "id": "legend-discrete",
    "orient": "right",
    "position": "start",
    "layoutType": "normal",
    "maxCol": 1,
    "title": {
      "textStyle": {
        "fontSize": 12,
        "fill": "#6F6F6F"
      }
    },
    "layoutLevel": 60,
    "item": {
      "focus": true,
      "focusIconStyle": {
        "size": 14
      },
      "maxWidth": 0,
      "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",
          "size": 10,
          "fillOpacity": 1
        }
      }
    },
    "pager": {
      "layout": "horizontal",
      "padding": {
        "left": -18
      },
      "textStyle": {},
      "space": 0,
      "handler": {
        "preShape": "triangleLeft",
        "nextShape": "triangleRight",
        "style": {},
        "state": {
          "disable": {}
        }
      }
    },
    "alignSelf": "end",
    "padding": [
      0,
      0,
      16,
      16
    ],
    "data": [
      {
        "label": "销售额",
        "shape": {
          "fill": "#2E62F1",
          "stroke": "#2E62F1",
          "symbolType": "square"
        }
      },
      {
        "label": "利润",
        "shape": {
          "fill": "#4DC36A",
          "stroke": "#4DC36A",
          "symbolType": "square"
        }
      }
    ]
  },
  "tooltip": {
    "isShowOverflowTextTooltip": true,
    "id": "tooltip_0"
  },
  "eventOptions": {
    "preventDefaultContextMenu": false
  },
  "corner": {
    "titleOnDimension": "row"
  },
  "title": {
    "text": "邮寄方式",
    "align": "center",
    "orient": "top",
    "padding": [
      0,
      0,
      0,
      0
    ],
    "textStyle": {
      "fontSize": 12,
      "fill": "#333333",
      "fontWeight": "bold"
    },
    "id": "title_0"
  },
  "defaultHeaderColWidth": [
    80,
    "auto"
  ],
  "theme": {
    "underlayBackgroundColor": "rgba(255,255,255,0)",
    "bodyStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "borderLineWidth": [
        1,
        0,
        0,
        1
      ],
      "bgColor": "rgba(255,255,255,0)",
      "padding": 1
    },
    "headerStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "fontSize": 12,
      "color": "#333333",
      "textAlign": "center",
      "borderLineWidth": [
        0,
        0,
        1,
        1
      ],
      "padding": [
        4,
        0,
        4,
        0
      ],
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": "rgba(178,186,207, 0.2)"
      }
    },
    "rowHeaderStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "fontSize": 12,
      "color": "#333333",
      "padding": [
        0,
        0,
        0,
        4
      ],
      "borderLineWidth": [
        1,
        1,
        0,
        0
      ],
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": "rgba(178,186,207, 0.2)"
      }
    },
    "cornerHeaderStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "textAlign": "center",
      "fontSize": 12,
      "color": "#333333",
      "fontWeight": "bold",
      "borderLineWidth": [
        0,
        1,
        1,
        0
      ],
      "padding": 0,
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": ""
      }
    },
    "cornerRightTopCellStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "borderLineWidth": [
        0,
        0,
        1,
        1
      ],
      "padding": 0,
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": ""
      }
    },
    "cornerLeftBottomCellStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "borderLineWidth": [
        1,
        0,
        0,
        0
      ],
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": ""
      }
    },
    "cornerRightBottomCellStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "borderLineWidth": [
        1,
        0,
        0,
        1
      ],
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": ""
      }
    },
    "rightFrozenStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "borderLineWidth": [
        1,
        0,
        1,
        1
      ],
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": "rgba(178,186,207, 0.2)"
      }
    },
    "bottomFrozenStyle": {
      "borderColor": "rgba(0,4,20,0.2)",
      "borderLineWidth": [
        1,
        0,
        0,
        1
      ],
      "padding": 0,
      "bgColor": "rgba(255,255,255,0)",
      "hover": {
        "cellBgColor": "rgba(178,186,207, 0.2)"
      }
    },
    "selectionStyle": {
      "cellBgColor": "",
      "cellBorderColor": ""
    },
    "frameStyle": {
      "borderLineWidth": 0,
      "bgColor": "rgba(255,255,255,0)"
    }
  },
  "hash": "60b041b24c2174a7f2773ff396bffac2",
  "chartType": "column",
  "viewBox": {
    "x1": 0,
    "y1": 0,
    "x2": 1046,
    "y2": 417
  },
  // "canvas": {},
  "animation": false,
  "disableDirtyBounds": false,
  "mode": "desktop-browser",
  "dpr": 2,
  "interactive": true,
  "pixelRatio": 2
};
const. tableInstance =  new VTable.PivotChart(document.getElementById(CONTAINER_ID),option);

Current Behavior

从一个 cell 移到另一个 cell 的时候,控制台会报错,发现是 tooltip 实例被销毁了,但是后续触发的 mousemove 事件中仍然使用了这个被销毁的 tooltip 示例

20241114165400_rec_

Expected Behavior

不报错

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response