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] tooltip do not update correctly when theme is updated #3619

Open
purpose233 opened this issue Dec 26, 2024 · 0 comments
Open

[Bug] tooltip do not update correctly when theme is updated #3619

purpose233 opened this issue Dec 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@purpose233
Copy link
Contributor

Version

1.13.2

Link to Minimal Reproduction

null

Steps to Reproduce

const spec = {
  type: 'line',
  data: {
    values: [
      {
        time: '2:00',
        value: 8
      },
      {
        time: '4:00',
        value: 9
      },
      {
        time: '6:00',
        value: 11
      },
      {
        time: '8:00',
        value: 14
      },
      {
        time: '10:00',
        value: 16
      },
      {
        time: '12:00',
        value: 17
      },
      {
        time: '14:00',
        value: 17
      },
      {
        time: '16:00',
        value: 16
      },
      {
        time: '18:00',
        value: 15
      }
    ]
  },
  xField: 'time',
  yField: 'value'
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;

setTimeout(() => {
  VChart.ThemeManager.setCurrentTheme('dark');
}, 1000);

Current Behavior

image

Expected Behavior

correct tooltip style

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@purpose233 purpose233 added the bug Something isn't working label Dec 26, 2024
@xile611 xile611 self-assigned this Dec 27, 2024
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

No branches or pull requests

2 participants