Skip to content

Slider argument in Layout missing #288

Closed

Description

@rustacularApp

I am trying to animate plot and it seems sliders as an argument is not present. please include it in the next version.

please add sliders with a way to animate.

i tried picture perflecty to replicate this in rust: gapminder example

and ended up botching it up somewhere cuz everything except the pause button works normally...and i can't figure why pause button works

20250429-1935-18.0063389.mp4

Thankyou.

Activity

  1. andrei-ng commented on Jun 19, 2025

    @andrei-ng
    Collaborator

    Duplicate of #204 . Functionality related to sliders should be added as part of that issue

    EDIT: Actually, sliders and animation are two different features. Still this is a duplicat of both #204 and #58

  2. andrei-ng commented on Jun 25, 2025

    @andrei-ng
    Collaborator

    @h4ck4l1 support for sliders was added in #318.

    The examples now contain sliders examples, including the GDP / life expectancy example: https://github.com/plotly/plotly.rs/blob/main/examples/custom_controls/src/main.rs

    For animation support, it will be done when I get a change to look into it as part of #58

  3. andrei-ng commented on Jul 12, 2025

    @andrei-ng
    Collaborator

    @h4ck4l1 Animation support is now available since PR #335.
    I haven't tested all possible animation variations as I think it can blow up quickly, but minimal support is there and I replicated the gapminder example you have in the video above, it is part of the examples/custom_controls/src/main.rs now and also available in the mdBook.

    Please let me know if you spot anything.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions