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

Dynamic heatmap data #35

Open
HYWuCharles opened this issue Dec 17, 2020 · 3 comments
Open

Dynamic heatmap data #35

HYWuCharles opened this issue Dec 17, 2020 · 3 comments
Assignees

Comments

@HYWuCharles
Copy link

Hi I am trying to build a heatmap function in my SPA.

My idea is that each time I am in a new route (using Vue Router), I could click a button (lets name it as "Toggle Heatmap") to show the current route heatmap data -> I could fetch the collected data every time after entering a new route

However, the only way I saw in your package is to preload those data to the plugin. Is there a way of dynamically change the preloaded data?

Anyway thank you for your package!

@BrockReece BrockReece self-assigned this Dec 17, 2020
@BrockReece
Copy link
Owner

I don't think there is a way to do this now because of how we are loading the heatmap.
But it could be something I look into.

@HYWuCharles
Copy link
Author

Hi thank you for your reply.

Besides I am also wondering if there's a way to load scroll map and heat map data separatly?

@BrockReece
Copy link
Owner

I think we may have hit the limits of our current implementation.
I have been playing around with porting this to the Composition API and I think it will be a lot easier to use and extend.

https://codesandbox.io/s/stupefied-fog-xhpgb

What do you think?

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

No branches or pull requests

2 participants