histoslider | : bar_chart : A D3 based histogram slider | Data Visualization library
kandi X-RAY | histoslider Summary
kandi X-RAY | histoslider Summary
A D3 based histogram slider component for React. Useful for exploring distributions of things within data visualisations.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of histoslider
histoslider Key Features
histoslider Examples and Code Snippets
Community Discussions
Trending Discussions on histoslider
QUESTION
In an earlier SO question here I have come to a point where I have a noUiSliderInput
that gets it's labels updated to a scientific notation format with the help of javascript
.
The remaining problem is that the noUiSliderInput
jumps to 10 when the input is 0 and it therefore should jump to 1. (10^0 is 1, not 10). I suspect a problem with Math.pow(10,x) is the cause but I am not sure
UPDATE:
The initial problem of the slider jumping to the maximum value has been fixed by changing the javascript
code, which now takes values from shiny
as input for the min, max and value of the slider.
I have changed the code of the app here in the question to represent the current situation.
#END UPDATE#
The behavior is simulated here with the use of a second sliderInput
and numericInput
boxes that causes all three values needed for the noUiSliderInput to cahange
In my real app
the noUiSliderInput
is linked to a plot
, and whatever data column
the user chooses to plot
. So, whatever data the user chooses to plot will require the noUiSliderInput
to update
it's range
. The slider
is also linked to a datatable
with earlier created settings (a datatable of threshold values for some of the columns in the data), and when the user clicks a datatable
entry, it will update
the drop down that selects which data is to be plotted (and thus the noUiSliderInput
range
), as well as at what height the threshold (noUiSliderInput
value
) should be based on the value in the datatable
.
This fires three changes at once, range (i.e. min & max of noUiSliderInput
), as well as value of the noUiSliderInput
.
I managed to get a dummy app
that simulates this behavior working, except the value
of the noUiSliderInput
gets updated wrong by the current javascript
it seems.
The schematic looks like this roughly
Where you can see that clicking on the table
will send a value to the noUiSliderInput
value, and a parameter name to the parameter selectInput
, which then gets the data, sends it to the plot
, and send the min, max: range
to the noUiSliderInput
.
It is build this way because the user can also select parameters (columns
) from the selectInput
directly (many of which are not in the table of thresholds)
App so far:
...ANSWER
Answered 2019-Feb-11 at 10:45Hmm that does look strange. It seems to work by using the set
method (set the value of the slider) instead of updating the start
option:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install histoslider
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page