microsoft / datamations

https://microsoft.github.io/datamations/
Other
67 stars 14 forks source link

Possible to have dynamic width of slider bar / description? #57

Closed sharlagelfand closed 3 years ago

sharlagelfand commented 3 years ago

Curious if it's possible to have the width of the slider bar and description adjust to the width of the actual plot (which isn't fixed):

e.g. instead of spanning the whole container

Screen Shot 2021-05-25 at 10 41 49 AM Screen Shot 2021-05-25 at 10 43 25 AM

only being as wide as the final plot is? @giorgi-ghviniashvili is this possible?

Screen Shot 2021-05-25 at 10 42 08 AM
giorgi-ghviniashvili commented 3 years ago

@sharlagelfand yes it is possible, we need to set same pixels width to div.control-bar and description as chart's.

giorgi-ghviniashvili commented 3 years ago

Implemented it:

https://user-images.githubusercontent.com/6615532/119670888-56ea8700-be4a-11eb-8766-cd826ab42742.mov

sharlagelfand commented 3 years ago

Thanks, this looks great!!

sharlagelfand commented 3 years ago

This is in the latest version of the app, so closing this now!