echarts tree map render 选择 svg,在点击一些很小的矩形时候,会出现字体更新位置出错的问题

xiozqbni  于 2022-11-05  发布在  Echarts
关注(0)|答案(2)|浏览(152)

Version

5.2.1

Steps to reproduce

  1. svg render
  2. 使用下面的data, 在点击一些很小的矩形时候,会出现字体更新位置出错的问题

What is expected?

没有重影

What is actually happening?

出现重影

const option = {
  series: [
    {
      type: 'treemap',
      data: [
        {
          name: '东北',
          children: [
            {name: '吉林', children: [], value: 449410.71},
            {name: '辽宁', children: [], value: 638855.71},
            {name: '黑龙江', children: [], value: 676015.88}
          ]
        },
        {
          name: '华东',
          children: [
            {name: '上海', children: [], value: 54448.43},
            {name: '安徽', children: [], value: 1130428.06},
            {name: '山东', children: [], value: 1613447.62},
            {name: '江苏', children: [], value: 1109577.81},
            {name: '江西', children: [], value: 623047.56},
            {name: '浙江', children: [], value: 1000819.38},
            {name: '福建', children: [], value: 454029.35}
          ]
        },
        {
          name: '华中',
          children: [
            {name: '河南', children: [], value: 1020851.15},
            {name: '湖北', children: [], value: 640135.03},
            {name: '湖南', children: [], value: 1158043.49}
          ]
        },
        {
          name: '华北',
          children: [
            {name: '内蒙古', children: [], value: 338630.96},
            {name: '北京', children: [], value: 62589.24},
            {name: '天津', children: [], value: 45470.02},
            {name: '山西', children: [], value: 456595.65},
            {name: '河北', children: [], value: 903204.48}
          ]
        },
        {
          name: '华南',
          children: [
            {name: '广东', children: [], value: 2784471.66},
            {name: '广西', children: [], value: 908261.41},
            {name: '海南', children: [], value: 629036.59},
            {name: '澳门', children: [], value: 8485.8},
            {name: '香港', children: [], value: 13401.06}
          ]
        },
        {
          name: '西北',
          children: [
            {name: '宁夏', children: [], value: 56803.04},
            {name: '新疆', children: [], value: 614084.24},
            {name: '甘肃', children: [], value: 350315.49},
            {name: '陕西', children: [], value: 361018.38},
            {name: '青海', children: [], value: 74386.53}
          ]
        },
        {
          name: '西南',
          children: [
            {name: '云南', children: [], value: 586232.51},
            {name: '四川', children: [], value: 1292938.65},
            {name: '西藏', children: [], value: 78873.56},
            {name: '贵州', children: [], value: 221885.9},
            {name: '重庆', children: [], value: 21363.22}
          ]
        }
      ]
    }
  ]
};

ubof19bj

ubof19bj1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it containsa minimum reproducible demoand necessaryimagesto illustrate. Otherwise, our committers will ask you to do so.

  • A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list .

Have a nice day! 🍵

voase2hg

voase2hg2#

@DoubleCorner It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

The rectangular tree map is rendered using svg, and the text appears to be ghosted

BODY

Version

5.2.1

Steps to reproduce

  1. svg render
  2. Using the data below, when you click on some small rectangles, the font update position will be wrong.

What is expected?

No ghosting

What is actually happening?

Ghosting

相关问题