Streamlit-ipyvizzu icon indicating copy to clipboard operation
Streamlit-ipyvizzu copied to clipboard

duration argument not included in animate function

Open avrabyt opened this issue 3 years ago • 1 comments

**kwargs can do the trick for duration inclusion

chart.animate(
        Config(
            {
                "channels": {
                    "y": Y,
                    "x": X,                   
                }
            }
            ),
            Style(
                {
                "plot":{"paddingLeft": "12em"}
            }
            ),

            y = {
                "duration": 3,   
        }
    )

avrabyt avatar Oct 14 '22 22:10 avrabyt

Workaround

As suggested :

Simon (Vizzu) 25 minutes ago The calculation of the default value is complex, the duration depends on what parts (position, color, coordinate system, etc) vizzu should animate between two charts.

..... just omit the parameter if it has been set to None by the user

To-do
initial argument as None or Auto , if used, then use it as int.

avrabyt avatar Oct 15 '22 10:10 avrabyt