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

change smoothie function properties dynamically #142

Open
mkeyno opened this issue Feb 18, 2022 · 3 comments
Open

change smoothie function properties dynamically #142

mkeyno opened this issue Feb 18, 2022 · 3 comments

Comments

@mkeyno
Copy link

mkeyno commented Feb 18, 2022

hi
I make an instance of the chart for my real data input, however my data variation is changed and I was wondering if I can change the smoothie function properties such as maxValue, minValue: dynamically

@WofWca
Copy link
Collaborator

WofWca commented Feb 18, 2022

Would smoothie.options.maxValue = myValue be sufficient?

@mkeyno
Copy link
Author

mkeyno commented Feb 21, 2022

thanks, @WofWca , now I can change my scope of data, but I think automatic dynamic scope changing would be a good option for such a drawing library

@WofWca
Copy link
Collaborator

WofWca commented Feb 21, 2022

It does change automatically by default, if you omit the maxValue and minValue options, see the default builder example: http://smoothiecharts.org/builder/

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