question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting initial active slider step to something else than 0 does not update the chart

See original GitHub issue

We have a grouped bar chart where each group consists of two or three bars. If a bar is above a certain threshold, we color it different than the others. There may be up to 1000 bar groups, but we only display 32 at once. For this purpose, we use a slider to allow the user to pan the chart horizontally. So far, so good. We have the requirement to automatically jump to the first bar group that is beyond the mentioned threshold. For this purpose, we calculate in which bar group the first bar resides, then detect the corresponding range and set the active property to its index. This move the slider to the correct position, but does not update the view. In fact, the view still remains at the first slider position.

As MCVE, one can use the Basic Slider example from the docs (https://plot.ly/javascript/sliders/#basic-slider). The slider is set to red by default, but the line color is blue. One has to select a different slider position first and then select red afterwards to actually get a red line instead of a blue one.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dioscuroicommented, Mar 3, 2019

Has there been any update on this issue about a starting frame other than 0?

2reactions
Miladiousscommented, Apr 29, 2021

I still have this issue, even with 0’th frame. I set my title in slider and unless I move the slider, I don’t get a title.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set SWIPER start with the first slide? - Stack Overflow
I tried every possible thing. It doesn't switch on the first slide, only on others. The only method that works is onpageshow but...
Read more >
Change the display of a 3-D chart - Microsoft Support
Change the display of a 3D chart in Office apps. You can change format, rotation, and scaling of 3D charts in Excel, Word,...
Read more >
Slider Question - Qualtrics
You can use the slider question type as a more interactive alternative to the matrix table question. Rather than simply selecting a scale...
Read more >
How to Use Sliders (The Java™ Tutorials > Creating a GUI ...
A JSlider component is intended to let the user easily enter a numeric value bounded by a minimum and maximum value. If space...
Read more >
Sliders in Python - Plotly
Sliders can be used in Plotly to change the data displayed or style of a plot. ... Figure() # Add traces, one for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found