Hi, 

I have a chart whose data source can be selected from one of several 
discrete dates, such as "2015-12-31", "2016-12-31" etc, which are contained 
in an array.

I need a slider that selects one of these date values, uses it to filter 
the data, and runs the chart drawing function (the selected values can 
either be Javascript dates, strings or their index position on the array). 
The idea is that the values are equally positioned along the slider range. 
Dragging the button and releasing it detects the nearest one and passes 
that value to the function for charting. 

I’ve found something like this in HTML: 

<form action="/action_page.php" method="get">
  Date:
  <input type="range" name="dateSelect" min="0" max="10">
  <input type="submit">
</form>

But this doesn’t let you set the values on the range yourself, and it 
requires a ‘submit’ button which I don’t want. There are few jQuery slider 
add ins on Github but they look overspecified for my requirements. 

Could this be done instead using the Date Range Filter? Thanks as always…

Nick 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/a8d61a04-5931-4eaa-a508-61cd00525d13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to