If the DateRangeFilter could work for the filtering part, you will
currently have to draw your own set of dates along the slider.  Handle the
control's statechange event to do that each time it is changed.

On Tue, Jan 23, 2018 at 5:25 AM, Nick Dunbar <[email protected]> wrote:

> 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 google-visualization-api@
> googlegroups.com.
> 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
> <https://groups.google.com/d/msgid/google-visualization-api/a8d61a04-5931-4eaa-a508-61cd00525d13%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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/CAOtcSJMhAM5pwqdZz%3DwWdPETV06OY2%3D%3DSxZu2gG6-Mrj%3DKk47A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to