Range sliders specs
See original GitHub issue@mdtusz @alexcjohnson @jackparmer @chriddyp
Range sliders à la Highcharts are coming to plotly.js.
I’m thinking that the most intuitive way to plug them into our attribute schema would be as part of the layout.xaxis
object (and the layout.yaxis
object down the road).
Range sliders would be an axis component similar to axis titles. They would be drawn below their corresponding axes, and in the bottom margin if necessary.
Here’s a tentative version of the specs:
layout: {
xaxis: {
rangeslider: {
visible: true, // or xaxis.showrangeslider ?
range: [0, 2], // range of the highlighted region (in data coordinates)
// some attribute combination to determine what to show in the slider box e.g.
mode: 'traces', // or 'array' or maybe 'mean'
showtraces: [0], // would show the first trace (this is the Highcharts default)
array: [] // would show custom data in the slider box
len: 0.1, // length in the vertical in normalized coordinates
// (N.B. len is a colorbar attribute)
// some border options e.g.
borderwidth: 1,
bordercolor: '#fff',
// maybe later
side: 'bottom' // 'top'
}
}
}
Some re-factoring in axes.js
may be required to ensure that slider changes don’t have to go through Plotly.relayout
on every update.
Issue Analytics
- State:
- Created 8 years ago
- Comments:21 (13 by maintainers)
Top Results From Across the Web
How To Create Range Sliders - W3Schools
Learn how to create custom range sliders with CSS and JavaScript. ... <input type="range" min="1" max="100" value="50" class="slider" id="myRange">
Read more ><input type="range"> - HTML: HyperText Markup Language
elements of type range let the user specify a numeric value which must be no less than a given value, and no more...
Read more >Sliders - Material Design
Sliders allow users select from a range of values. ... dimensions specifications for a continuous slider showing 3 measurements. Active track: 6dp height...
Read more >How to Create a Range Slider in HTML + CSS - HubSpot Blog
A range slider is an input where you select a value from a control or sliding bar. We can slide the handlebar to...
Read more >21 CSS Range Sliders - Free Frontend
Slider Range. Range slider for weight in HTML, CSS and JavaScript. Compatible browsers: Chrome, Firefox, Opera, Safari. Dependencies: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Exactly.
Getting the API right will be tricky, but I’m thinking something like:
Hi Guys,
My company adopted Plot.ly js partially because we were excited about the range slider. However, in development we noticed that the range slider renders the whole graph again and it doubles rendering time. Our customers are used to viewing a lot of data all at once. We decided the performance hit wasn’t acceptable so we’re shipping without it.
What do you think about providing a more basic skin for the range slider behavior that doesn’t introduce 100% more rendering cost? Something like:
from: http://codepen.io/davidchin/full/GpNvqw/