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

[Bug] Unexpected draw of datazoom after resize #520

Closed
xiaoluoHe opened this issue Aug 14, 2023 · 0 comments · Fixed by #1270
Closed

[Bug] Unexpected draw of datazoom after resize #520

xiaoluoHe opened this issue Aug 14, 2023 · 0 comments · Fixed by #1270
Assignees
Labels
bug Something isn't working

Comments

@xiaoluoHe
Copy link
Contributor

Version

1.2.0

Link to Minimal Reproduction

none

Steps to Reproduce

  1. draw a bar chart with datazoom in bottom;
  2. call resize in console:
vchart.resize(500,500)
{
    type: 'bar',
    legends: [
      {
        visible: true,
        type: 'discrete',
        orient: 'bottom',
        item: {
          shape: {
            style: {
              symbolType: 'circle'
            }
          }
        }
      }
    ],
    label: {
      visible: false
    },
    bar: {
      style: {
        fillOpacity: 1
      },
      state: {
        hover: {
          stroke: 'black',
          lineWidth: 1
        }
      }
    },
    padding: {
      top: 25,
      left: 20,
      bottom: 10,
      right: 20
    },
    isNewVersion: true,
    xField: 'date',
    yField: 'count',
    seriesField: 'name',
    height: 300,
    data: [
      {
        name: 'tag',
        values: [
          {
            date: '2023-08-04',
            count: 4,
            name: '6-10次'
          },
          {
            date: '2023-08-06',
            count: 1,
            name: '3次'
          },
          {
            date: '2023-08-05',
            count: 1,
            name: '3次'
          },
          {
            date: '2023-08-04',
            count: 1,
            name: '3次'
          },
          {
            date: '2023-08-03',
            count: 1,
            name: '3次'
          }
        ]
      }
    ],
    tooltip: {
      visible: true,
      target: {
        visible: true
      },
      dimension: {
        visible: true
      }
    },
    dataZoom: [
      {
        orient: 'bottom',
        padding: {
          top: 10
        }
      }
    ]
  };

Current Behavior

bug

Expected Behavior

draw correctly

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants