# Interactive 'select all' on rangeselector date

**URL:** <https://community.plotly.com/t/interactive-select-all-on-rangeselector-date/10664>\
**Category:** Dash Python\
**Created:** [June 4, 2018, 6:30am UTC](https://community.plotly.com/t/interactive-select-all-on-rangeselector-date/10664 "2018-06-04T06:30:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMac](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@DMac](https://community.plotly.com/u/DMac)\
**Post date:** [June 4, 2018, 6:30am UTC](https://community.plotly.com/t/interactive-select-all-on-rangeselector-date/10664/1 "2018-06-04T06:30:43Z")

</div>

I have been following the tutorial on producing interactive dashes ([https://dash.plot.ly/interactive-graphing](https://dash.plot.ly/interactive-graphing)). I have successfully got the dash to display the selected data on a secondary graph, but what I am hoping to do is have this secondary graph display data relevant to the dates selected on the primary graph as selected by the rangeselector argument. Is this possible? Thanks!

---

<div class="post-metadata">

**Author:** ![charleyferrari](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/charleyferrari/32/3109_2.png) [@charleyferrari](https://community.plotly.com/u/charleyferrari)\
**Post date:** [June 4, 2018, 7:46pm UTC](https://community.plotly.com/t/interactive-select-all-on-rangeselector-date/10664/2 "2018-06-04T19:46:04Z")

</div>

Thanks for writing in. You can pretty easily do this with `relayoutData`. While there is no function that will automatically only select data that’s visible, you could use the output of `relayoutData` to filter data for a secondary graph.

`relayoutData` looks like this when it comes in:

```auto
{
  "xaxis.range[1]": 2.9200060016541145, 
  "yaxis.range[0]": 1.25, 
  "xaxis.range[0]": 2.2042721530568183, 
  "yaxis.range[1]": 5.951754385964913
}

```

that comes in as one argument in your callback, so you can just filter by the axis range in question.

One more thing to keep in mind when using `relayoutData`: You can disable filtering in a single axis if you wish. This is useful if you want users to use a graph like a range selector (filtering in the x axis) but you don’t want them to zoom in on the yaxis. To do this, just set `layout.xaxis.fixedrange` to `True`.
