<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TimeSlider: Displaying data with 30 year window in 1 year steps in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1203311#M78310</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope I am following what you are asking here. In any case, just set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#stops" target="_self"&gt;TimeSlider.stops&lt;/A&gt; to your desired &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByInterval" target="_self"&gt;interval steps&lt;/A&gt; (e.g 1 year).&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const timeSlider = new TimeSlider({
  ...
  stops: {
    interval: {
      value: 1,
      unit: "years"
     }
  }
 });&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 16 Aug 2022 15:13:10 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-08-16T15:13:10Z</dc:date>
    <item>
      <title>TimeSlider: Displaying data with 30 year window in 1 year steps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1202332#M78270</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have created a service that contains 30Y rolling mean values.&lt;/P&gt;&lt;P&gt;The raster layer (MapServer) has values values for intervals from 1950 to 2022. So, we have 1950-1980, 1951-1981, 1952-1982, ..., 1992-2022.&lt;/P&gt;&lt;P&gt;When I use the &lt;EM&gt;timeSlider&lt;/EM&gt; in mode &lt;EM&gt;time-window&lt;/EM&gt; it only displays the intervals 1950-1980, 1980-2010, ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  const timeSlider = new TimeSlider({
	container: "timeSlider",
	mode: "time-window",
	view: view,
	timeVisible: false,
	fullTimeExtent: {
	  start: new Date(-631152000000), // Jan 1, 1950,
	  end: new Date(1640995200000) // Jan 1, 2022
	},
	stops: {
	  interval: {
		value: 30,
		unit: "years"
	  }
	}
  });
  view.ui.add(timeSlider, "bottom-left");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to set the stepping interval to 1 or 5 year steps, like it is possible in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MBenn22_0-1660305842080.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48505i44155160688094A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MBenn22_0-1660305842080.png" alt="MBenn22_0-1660305842080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is it possible to configure custom ranges (not &lt;A href="http://%20 https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#stops" target="_blank" rel="noopener"&gt;stops&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;JavaScript API is quite new to me, so please point me out to the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 12:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1202332#M78270</guid>
      <dc:creator>MBenn22</dc:creator>
      <dc:date>2022-08-12T12:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: TimeSlider: Displaying data with 30 year window in 1 year steps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1203311#M78310</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope I am following what you are asking here. In any case, just set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#stops" target="_self"&gt;TimeSlider.stops&lt;/A&gt; to your desired &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByInterval" target="_self"&gt;interval steps&lt;/A&gt; (e.g 1 year).&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const timeSlider = new TimeSlider({
  ...
  stops: {
    interval: {
      value: 1,
      unit: "years"
     }
  }
 });&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1203311#M78310</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-08-16T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: TimeSlider: Displaying data with 30 year window in 1 year steps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1204563#M78369</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt; for the hint. I had to set&amp;nbsp; &lt;EM&gt;stops, fullTimeExtent &lt;/EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt; &lt;EM&gt;timeExtent. &lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const timeSlider = new TimeSlider({
  container: "timeSlider",
  view: view,
  mode: "time-window",
  fullTimeExtent: { 
        start: new Date(1950, 0, 1),
        end: new Date(2020, 0, 1)
  },
  timeExtent: { 
        start: new Date(1951, 0, 1),
        end: new Date(1981, 0, 1)
  },
  stops: {
    interval: {
        value: 1,
        unit: "years"
    }
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Previously I had only set the &lt;EM&gt;fullTimeExtent &lt;/EM&gt;and&lt;EM&gt; stops.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 15:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/timeslider-displaying-data-with-30-year-window-in/m-p/1204563#M78369</guid>
      <dc:creator>MBenn22</dc:creator>
      <dc:date>2022-08-19T15:22:32Z</dc:date>
    </item>
  </channel>
</rss>

