Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

slider组件在vue2.6中报错 #5383

Closed
amipei opened this issue Aug 9, 2023 · 1 comment
Closed

slider组件在vue2.6中报错 #5383

amipei opened this issue Aug 9, 2023 · 1 comment
Labels

Comments

@amipei
Copy link

amipei commented Aug 9, 2023

1691572130485

      const chart = new Chart({
        container: rootEle.value,
        theme: 'classic',
        autoFit: true,
        paddingBottom: 68,
        paddingLeft: 50,
      });

      chart
        .interval()
        .data([])
        .transform({ type: 'dodgeX' })
        .encode('y', 'value')
        .encode('x', 'name')
        .encode('color', 'category')
        .scale('color', { type: 'ordinal', range: ['#02a7ff', '#ffa201'] })
        .axis('y', { labelFormatter: '~s', title: 'xxxx' })
        .axis('x', {
          title: null,
          labelAutoHide: true
        })
        .slider('x', { values: [0,1]})
@hustcc
Copy link
Member

hustcc commented Aug 11, 2023

  • 看看是否在执行图表渲染的时候,rootEle.value 还不存在。
  • 我这里并没有报错,只是数据为空,所以渲染出来都是空白的。

@pearmini pearmini added the V5 label Aug 14, 2023
@hustcc hustcc closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants