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

Is there a way to re-render data without resetChart #261

Open
woodyiorl opened this issue Feb 4, 2022 · 1 comment
Open

Is there a way to re-render data without resetChart #261

woodyiorl opened this issue Feb 4, 2022 · 1 comment

Comments

@woodyiorl
Copy link

woodyiorl commented Feb 4, 2022

I use resetChart, but the problem is every time after resetting, the cursor will go back to the right head of data.

I am a front end newbie. Say I have the use case where user scroll to the left (reaches end of current data) and expect the chart to render the data incrementally and asynchronously fetched from backend, how can I do that?

@black-hawk85
Copy link

Not sure if this works but you can try using a key

<template
  <trading-vue :key="resetkey" ... />
</template>

<script>
export default {
  data() {
    return {
      resetkey: 0
    }
  }
  methods: {
    rerender() {
      this.resetkey++;
    }
  }
}
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants