Skip to content

in plotly-dash.How should I apply the FigureResampler if I use the px.line? #121

Answered by jvdd
sc303030 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I tested similar code to what you provided in your question and it worked as expected (the output of px.line which is a go.Figure was correctly transformed into a FigureResampler object).

Hence, in this response I'll answer two questions that in my belief are relevant for this discussion;

a) How does register_plotly_resampler(mode='auto') work?
=> I believe this is necessary to understand how & why your results were satisfactory.
b) How to use FigureResampler?
=> This answers the second & main part of your question.

A. How does register_plotly_resampler(mode='auto') work?

This function results in the use of plotly-resampler under the hood, meaning that plotly figures will be wrapped a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonasvdd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants