8000 [Bug] After axis break, axis ticks display confusion · Issue #3656 · VisActor/VChart · GitHub 8000
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] After axis break, axis ticks display confusion #3656
Closed
@kkxxkk2019

Description

@kkxxkk2019

Version

latest

Link to Minimal Reproduction

none

Steps to Reproduce

const spec = {
    theme: {},
    type: 'scatter',
    xField: '240510153343043',
    yField: '240528105015081',
    invalidType: 'ignore',
    region: [
      {
        clip: true,
        id: 'region_0'
      }
    ],
    padding: 0,
    labelLayout: 'region',
    data: [
      {
        id: 'data',
        values: [
          {
            '30001': '方便面/拉面/面皮/面饼',
            '240510153343043': '2199506351.3700185',
            '240528105015081': '0.2578530909047903',
            '240708163439038': '2199506351.3700185',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '方便面/拉面/面皮/面饼'
          },
          {
            '30001': '方便粉丝/米线/螺蛳粉',
            '240510153343043': '2146695581.1300163',
            '240528105015081': '-0.008530528676447269',
            '240708163439038': '2146695581.1300163',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '方便粉丝/米线/螺蛳粉'
          },
          {
            '30001': '调味料',
            '240510153343043': '1258360658.1100037',
            '240528105015081': '0.28721076548239866',
            '240708163439038': '1258360658.1100037',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '调味料'
          },
          {
            '30001': '调味酱',
            '240510153343043': '980476618.7200005',
            '240528105015081': '0.9244818098208328',
            '240708163439038': '980476618.7200005',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '调味酱'
          },
          {
            '30001': '意大利面',
            '240510153343043': '821435644.1799995',
            '240528105015081': '0.281784028999371',
            '240708163439038': '821435644.1799995',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '意大利面'
          },
          {
            '30001': '干货/土特产',
            '240510153343043': '816275625.1400003',
            '240528105015081': '0.15286338311961928',
            '240708163439038': '816275625.1400003',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '干货/土特产'
          },
          {
            '30001': '粽子',
            '240510153343043': '507663934.13000005',
            '240528105015081': '0.4179010408475135',
            '240708163439038': '507663934.13000005',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '粽子'
          },
          {
            '30001': '日常调味品',
            '240510153343043': '473161626.76999915',
            '240528105015081': '-0.03806381275149538',
            '240708163439038': '473161626.76999915',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '日常调味品'
          },
          {
            '30001': '其它调味品',
            '240510153343043': '445846177.23999906',
            '240528105015081': '0.45805996394690396',
            '240708163439038': '445846177.23999906',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '其它调味品'
          },
          {
            '30001': '即食肉类/速食肠类',
            '240510153343043': '423556086.89',
            '240528105015081': '0.10222810992473869',
            '240708163439038': '423556086.89',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '即食肉类/速食肠类'
          },
          {
            '30001': '米类',
            '240510153343043': '386766059.4699998',
            '240528105015081': '-0.16965146100337522',
            '240708163439038': '386766059.4699998',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '米类'
          },
          {
            '30001': '烘培原料',
            '240510153343043': '288009753.1299996',
            '240528105015081': '0.561528547069239',
            '240708163439038': '288009753.1299996',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '烘培原料'
          },
          {
            '30001': '面条/挂面(待煮面条)',
            '240510153343043': '287297399.64000016',
            '240528105015081': '-0.43402334227425127',
            '240708163439038': '287297399.64000016',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '面条/挂面(待煮面条)'
          },
          {
            '30001': '熏腊/香肠/火腿制品',
            '240510153343043': '271552316.15000015',
            '240528105015081': '0.1108700468217336',
            '240708163439038': '271552316.15000015',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '熏腊/香肠/火腿制品'
          },
          {
            '30001': '玉米',
            '240510153343043': '197448738.10000002',
            '240528105015081': '-0.02457175508347428',
            '240708163439038': '197448738.10000002',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '玉米'
          },
          {
            '30001': '杂粮',
            '240510153343043': '189786059.79999995',
            '240528105015081': '0.4316361700235978',
            '240708163439038': '189786059.79999995',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '杂粮'
          },
          {
            '30001': '速食汤',
            '240510153343043': '188011120.85000008',
            '240528105015081': '0.20997472715220786',
            '240708163439038': '188011120.85000008',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '速食汤'
          },
          {
            '30001': '其他方便食品',
            '240510153343043': '170772229.91999996',
            '240528105015081': '0.5525526182656454',
            '240708163439038': '170772229.91999996',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '其他方便食品'
          },
          {
            '30001': '方便米饭',
            '240510153343043': '159770759.62000003',
            '240528105015081': '-0.11177044629702317',
            '240708163439038': '159770759.62000003',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '方便米饭'
          },
          {
            '30001': '速食粥',
            '240510153343043': '159077779.82000014',
            '240528105015081': '-0.10195019156950609',
            '240708163439038': '159077779.82000014',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '速食粥'
          },
          {
            '30001': '未知类目',
            '240510153343043': '153954662.57999983',
            '240528105015081': '-0.2811290283549263',
            '240708163439038': '153954662.57999983',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '未知类目'
          },
          {
            '30001': '腌菜/榨菜/酱菜/泡菜',
            '240510153343043': '128347961.77000001',
            '240528105015081': '0.25432606958569354',
            '240708163439038': '128347961.77000001',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '腌菜/榨菜/酱菜/泡菜'
          },
          {
            '30001': '即食腌菜/酱菜/泡菜',
            '240510153343043': '119824738.24000002',
            '240528105015081': '0.18148039859738346',
            '240708163439038': '119824738.24000002',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '即食腌菜/酱菜/泡菜'
          },
          {
            '30001': '花生油',
            '240510153343043': '107557282.74999993',
            '240528105015081': '0.1402610127573776',
            '240708163439038': '107557282.74999993',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '花生油'
          },
          {
            '30001': '菜籽油',
            '240510153343043': '106237719.50000004',
            '240528105015081': '1.2987327119180208',
            '240708163439038': '106237719.50000004',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '菜籽油'
          },
          {
            '30001': '罐头',
            '240510153343043': '99870530.88999993',
            '240528105015081': '0.44298115141890626',
            '240708163439038': '99870530.88999993',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '罐头'
          },
          {
            '30001': '其它粮食',
            '240510153343043': '92416058.91000003',
            '240528105015081': '0.9146364314392177',
            '240708163439038': '92416058.91000003',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '其它粮食'
          },
          {
            '30001': '其它',
            '240510153343043': '82532504.76000002',
            '240528105015081': '0.05358357057986388',
            '240708163439038': '82532504.76000002',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '其它'
          },
          {
            '30001': '玉米油',
            '240510153343043': '75069889.54000007',
            '240528105015081': '0.1264026824065421',
            '240708163439038': '75069889.54000007',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '玉米油'
          },
          {
            '30001': '葵花籽油',
            '240510153343043': '61449783.70999997',
            '240528105015081': '0.021314425934917457',
            '240708163439038': '61449783.70999997',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '葵花籽油'
          },
          {
            '30001': '蚝油',
            '240510153343043': '46524706.86999995',
            '240528105015081': '-0.14535122460933148',
            '240708163439038': '46524706.86999995',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '蚝油'
          },
          {
            '30001': '即食火锅',
            '240510153343043': '34650069.88',
            '240528105015081': '-0.1453122211683099',
            '240708163439038': '34650069.88',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '即食火锅'
          },
          {
            '30001': '成品原料',
            '240510153343043': '30282258.039999977',
            '240528105015081': '0.4894102085578129',
            '240708163439038': '30282258.039999977',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '成品原料'
          },
          {
            '30001': '豆腐乳',
            '240510153343043': '21292001.06999998',
            '240528105015081': '1.8447470465803415',
            '240708163439038': '21292001.06999998',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '豆腐乳'
          },
          {
            '30001': '面粉/食用粉',
            '240510153343043': '20938419.94999999',
            '240528105015081': '-0.34755214473341256',
            '240708163439038': '20938419.94999999',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '面粉/食用粉'
          },
          {
            '30001': '食用糖',
            '240510153343043': '20485319.41',
            '240528105015081': '0.5040883972794227',
            '240708163439038': '20485319.41',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '食用糖'
          },
          {
            '30001': '米类粉',
            '240510153343043': '18518619.59',
            '240528105015081': '1.088386291840836',
            '240708163439038': '18518619.59',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '米类粉'
          },
          {
            '30001': '果酱',
            '240510153343043': '18402933.320000008',
            '240528105015081': '0.7865140305537655',
            '240708163439038': '18402933.320000008',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '果酱'
          },
          {
            '30001': '轻食面(荞麦/魔芋/海藻)',
            '240510153343043': '18148900.08',
            '240528105015081': '-0.5564124697813987',
            '240708163439038': '18148900.08',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '轻食面(荞麦/魔芋/海藻)'
          },
          {
            '30001': '冷面',
            '240510153343043': '17945475.08',
            '240528105015081': '2.4139885200146214',
            '240708163439038': '17945475.08',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '冷面'
          },
          {
            '30001': '橄榄油',
            '240510153343043': '15882595.459999995',
            '240528105015081': '-0.21388084019732645',
            '240708163439038': '15882595.459999995',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '橄榄油'
          },
          {
            '30001': '烘培辅料',
            '240510153343043': '14808988.559999999',
            '240528105015081': '0.2430741861304381',
            '240708163439038': '14808988.559999999',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '烘培辅料'
          },
          {
            '30001': '杂粮粉',
            '240510153343043': '13217223.43',
            '240528105015081': '1.6776797426313719',
            '240708163439038': '13217223.43',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '杂粮粉'
          },
          {
            '30001': '麦类粉/面粉',
            '240510153343043': '12572863.940000001',
            '240528105015081': '8.49763769672761',
            '240708163439038': '12572863.940000001',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '麦类粉/面粉'
          },
          {
            '30001': '豆类',
            '240510153343043': '10376675.870000005',
            '240528105015081': '1.3850011526256738',
            '240708163439038': '10376675.870000005',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '豆类'
          },
          {
            '30001': '亚麻籽油/火麻油',
            '240510153343043': '10369042.46',
            '240528105015081': '-0.6792070110718804',
            '240708163439038': '10369042.46',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '亚麻籽油/火麻油'
          },
          {
            '30001': '寿司/饭团',
            '240510153343043': '7662460.530000006',
            '240528105015081': '-0.5507099901714121',
            '240708163439038': '7662460.530000006',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '寿司/饭团'
          },
          {
            '30001': '大豆油',
            '240510153343043': '7547544.660000012',
            '240528105015081': '0.22630359386991764',
            '240708163439038': '7547544.660000012',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '大豆油'
          },
          {
            '30001': '调和油',
            '240510153343043': '7521297.949999998',
            '240528105015081': '-0.05049727241181741',
            '240708163439038': '7521297.949999998',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '调和油'
          },
          {
            '30001': '山茶油',
            '240510153343043': '7477309.550000001',
            '240528105015081': '-0.7273812053862836',
            '240708163439038': '7477309.550000001',
            '240708163439046': '粮油米面/南北干货/调味品',
            '241230110758046': '山茶油'
          }
        ],
        fields: {
          '30001': {
            alias: '图例项 '
          },
          '240510153343043': {
            alias: '支付gmv'
          },
          '240528105015081': {
            alias: '同比增速'
          },
          '240708163439038': {
            alias: '支付gmv'
          },
          '240708163439046': {
            alias: '电商商品的门捷列夫一级类目名称',
            domain: ['粮油米面/南北干货/调味品'],
            sortIndex: 0
          },
          '241230110758046': {
            alias: '电商商品的门捷列夫三级类目名称'
          }
        }
      }
    ],
    axes: [
      {
        id: 'axes_0',
        type: 'linear',
        tick: {
          visible: false,
          tickMode: 'd3',
          style: {
            stroke: '#8D8D8D'
          }
        },
        niceType: 'accurateFirst',
        zIndex: 550,
        grid: {
          visible: false,
          style: {
            zIndex: 150,
            stroke: '#DADCDD',
            lineWidth: 1,
            lineDash: [4, 2],
            pickStrokeBuffer: 2
          }
        },
        orient: 'left',
        visible: true,
        domainLine: {
          visible: true,
          style: {
            lineWidth: 1,
            stroke: '#8D8D8D'
          }
        },
        title: {
          visible: true,
          text: '同比增速',
          space: 8,
          style: {
            fontSize: 12,
            fill: '#363839',
            fontWeight: 'normal'
          }
        },
        autoIndent: false,
        sampling: false,
        label
CEB7
: {
          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',
          autoLimit: false,
          _originStyle: {
            fontSize: 12,
            maxLineWidth: 174,
            fill: '#6F6F6F',
            angle: 0,
            fontWeight: 'normal',
            dy: 0,
            direction: 'horizontal'
          }
        },
        background: {
          visible: true,
          state: {
            hover: {
              fillOpacity: 0.08,
              fill: '#141414'
            },
            hover_reverse: {
              fillOpacity: 0.08,
              fill: '#141414'
            }
          }
        },
        innerOffset: {
          top: 15.065857732696886,
          right: 15.065857732696886
        },
        zero: true,
        nice: true,
        breaks: [
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [6.441166938084781, 6.441166938084781],
            scopeType: 'count'
          },
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [4.768232973244955, 4.768232973244955],
            scopeType: 'count'
          },
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [3.739795886609098, 3.739795886609098],
            scopeType: 'count'
          },
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [3.240955813710637, 3.240955813710637],
            scopeType: 'count'
          },
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [-1.3710677229376032, -1.3710677229376032],
            scopeType: 'count'
          }
        ]
      },
      {
        id: 'axes_1',
        type: 'linear',
        tick: {
          visible: false,
          tickMode: 'd3',
          style: {
            stroke: '#8D8D8D'
          }
        },
        niceType: 'accurateFirst',
        zIndex: 550,
        grid: {
          visible: false,
          style: {
            zIndex: 150,
            stroke: '#DADCDD',
            lineWidth: 1,
            lineDash: [4, 2],
            pickStrokeBuffer: 2
          }
        },
        orient: 'bottom',
        visible: true,
        domainLine: {
          visible: true,
          style: {
            lineWidth: 1,
            stroke: '#8D8D8D'
          }
        },
        title: {
          visible: true,
          text: '支付gmv',
          space: 8,
          style: {
            fontSize: 12,
            fill: '#363839',
            fontWeight: 'normal'
          }
        },
        autoIndent: false,
        sampling: false,
        label: {
          visible: true,
          space: 4,
          flush: true,
          padding: 0,
          style: {
            fontSize: 12,
            maxLineWidth: 174,
            fill: '#6F6F6F',
            angle: 0,
            fontWeight: 'normal',
            dy: 0,
            direction: 'horizontal'
          },
          autoHide: true,
          autoHideMethod: 'greedy',
          autoLimit: false,
          _originStyle: {
            fontSize: 12,
            maxLineWidth: 174,
            fill: '#6F6F6F',
            angle: 0,
            fontWeight: 'normal',
            dy: 0,
            direction: 'horizontal'
          }
        },
        background: {
          visible: true,
          state: {
            hover: {
              fillOpacity: 0.08,
              fill: '#141414'
            },
            hover_reverse: {
              fillOpacity: 0.08,
              fill: '#141414'
            }
          }
        },
        innerOffset: {
          top: 15.065857732696886,
          right: 15.065857732696886
        },
        zero: true,
        nice: true,
        breaks: [
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [1567486848.1636298, 1567486848.1636298],
            scopeType: 'count'
          },
          {
            breakSymbol: {
              style: {
                lineWidth: 1,
                pickable: false,
                size: 8,
                stroke: '#000'
              },
              visible: true
            },
            gap: 5,
            range: [1114686403.58916, 1114686403.58916],
            scopeType: 'count'
          }
        ]
      }
    ],
    label: {
      visible: true,
      offset: 6,
      overlap: {
        hideOnHit: true,
        avoidBaseMark: false,
        strategy: [
          {
            type: 'position',
            position: ['top', 'bottom']
          }
        ],
        clampForce: true
      },
      style: {
        fontSize: 12,
        fontWeight: 'normal',
        zIndex: 400,
        lineHeight: '100%',
        fill: '#363839',
        stroke: 'rgba(255, 255, 255, 0.8)',
        lineWidth: 2,
        strokeOpacity: 1
      },
      position: 'top',
      interactive: true
    },
    legends: [
      {
        type: 'discrete',
        visible: false,
        id: 'legend-discrete',
        orient: 'right',
        position: 'start',
        layoutType: 'normal-inline',
        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: {
          top: 0,
          bottom: 12,
          left: 16,
          right: 0
        },
        autoPage: false,
        interactive: false,
        _originalVisible: false
      },
      {
        type: 'size',
        slidable: true,
        visible: false,
        title: {
          visible: true,
          text: '支付gmv',
          textStyle: {
            fontSize: 12,
            fill: '#6F6F6F'
          },
          space: 0
        },
        handlerText: {
          style: {
            maxLineWidth: 50,
            fontSize: 12,
            fill: '#6F6F6F',
            textAlign: 'start',
            dx: 30
          }
        },
        id: 'legend-size',
        orient: 'right',
        position: 'start',
        layoutType: 'normal-inline',
        field: ['240708163439038'],
        layoutLevel: 50,
        maxHeight: 130,
        track: {
          style: {
            fill: 'rgba(20,20,20,0.1)'
          }
        },
        rail: {
          height: 100
        },
        handler: {
          style: {
            symbolType: 'M-5,0L-2.5,-3.5\n    h5\n    v7\n    h-5\n    Z',
            size: 8,
            shadowBlur: 0,
            shadowColor: false,
            outerBorder: {
              stroke: '#AEB8C6',
              lineWidth: 1,
              strokeOpacity: 0.5
            }
          }
        },
        align: 'left',
        alignSelf: 'end',
        startText: {
          visible: false
        },
        endText: {
          visible: false
        },
        padding: {
          top: 0,
          bottom: 12,
          left: 16,
          right: 0
        },
        autoPage: false,
        interactive: false,
        _originalVisible: true
      }
    ],
    seriesField: '240708163439046',
    color: {
      field: '240708163439046',
      type: 'ordinal',
      range: ['#2E62F1'],
      specified: {},
      domain: ['粮油米面/南北干货/调味品']
    },
    sizeField: '240708163439038',
    size: {
      type: 'linear',
      range: [7.0898154036220635, 28.359261614488254]
    },
    tooltip: {
      id: 'tooltip_0',
      mark: {},
      dimension: {}
    },
    point: {
      state: {
        hover: {
          cursor: 'pointer',
          fillOpacity: 0.8,
          stroke: '#58595B',
          lineWidth: 1,
          zIndex: 500
        }
      }
    },
    hover: {
      enable: true
    },
    select: {
      enable: true
    },
    markLine: [
      {
        startSymbol: {
          visible: true,
          symbolType: 'triangleDown',
          style: {
            size: 10,
            dy: -5,
            fill: '#f3a016'
          }
        },
        endSymbol: {
          visible: false
        },
        autoRange: true,
        label: {
          visible: true,
          style: {
            dx: 10,
            dy: 5,
            fontSize: 12,
            fontWeight: 'normal',
            fill: '#fff',
            cursor: 'pointer'
          },
          confine: true,
          position: 'insideStartTop',
          labelBackground: {
            visible: true,
            padding: {
              left: 5,
              right: 5,
              top: 2,
              bottom: 2
            },
            style: {
              fill: '#2F3B52',
              fillOpacity: 0.9,
              dx: 10,
              dy: 5
            }
          }
        },
        line: {
          style: {
            stroke: '#f3a016',
            lineWidth: 2,
            lineDash: [3, 3],
            cursor: 'pointer'
          }
        },
        relativeSeriesId: 'mainSeries',
        id: '92f8fec0-fc29-4f9b-857b-68c4729009df',
        interactive: true
      },
      {
        startSymbol: {
          visible: true,
          symbolType: 'triangleDown',
          style: {
            size: 10,
            dx: 5,
            fill: '#f3a016'
          }
        },
        endSymbol: {
          visible: false
        },
        autoRange: true,
        label: {
          visible: true,
          style: {
            dx: 10,
            dy: 0,
            fontSize: 12,
            fontWeight: 'normal',
            fill: '#fff',
            cursor: 'pointer'
          },
          confine: true,
          position: 'insideStartTop',
          labelBackground: {
            visible: true,
            padding: {
              left: 5,
              right: 5,
              top: 2,
              bottom: 2
            },
            style: {
              fill: '#2F3B52',
              fillOpacity: 0.9,
              dx: 10,
              dy: 0
            }
          }
        },
        line: {
          style: {
            stroke: '#f3a016',
            lineWidth: 2,
            lineDash: [3, 3],
            cursor: 'pointer'
          }
        },
        relativeSeriesId: 'mainSeries',
        id: '1902dd79-e8e0-4fd0-98e4-34ae2a2d47a3',
        interactive: true
      }
    ],
    animation: false,
    hash: 'bff48abaac00e964955c3988f8a5e29b',
    title: {
      visible: true,
      text: '双击添加标题',
      id: 'chart_title',
      minWidth: '100%',
      verticalAlign: 'middle',
      subtextStyle: {
        visible: false
      },
      textStyle: {
        lineHeight: '150%',
        fontSize: 16,
        fontWeight: 'bold',
        fontStyle: 'normal',
        underline: 0,
        stroke: false,
        align: 'left',
        textBaseline: 'middle',
        fill: '#ccc',
        background: false,
        fontFamily: 'D-Din'
      },
      _initialize_: true
    },
    _e
3D11
ditor_spec_text_field: ['241230110758046']
  };

Current Behavior

标签乱序,且重叠

image

Expected Behavior

fix it

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0