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

Add better method for redrawing chart #5

Open
blackary opened this issue Feb 22, 2023 · 0 comments
Open

Add better method for redrawing chart #5

blackary opened this issue Feb 22, 2023 · 0 comments

Comments

@blackary
Copy link
Collaborator

Right now it's a pain to redraw the chart if you don't call .animate, for example if the underlying data changes upstream -- need to figure out a way to allow the user to set the key easily based on a set of values. For example, I can set the key myself using a method like this

def hash_things(*things: Any) -> str:
    return hashlib.sha256("".join(str(t) for t in things).encode("utf-8")).hexdigest()

And then setting the key like:

VizzuChart(key=hash_things(start_date, end_date)

Where I pass in a set of values, or perhaps even the dataframe underlying the data. This should be an easier way to set this.

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

1 participant