<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[dygraphOptions dateWindows]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/6/dygraphoptions-in-rexygen-hmi-designer">dygraphOptions in REXYGEN HMI Designer</a></p>
<p dir="auto">Hello,<br />
I'm looking into the possibility to zoom in by default, so when you open the page with the trend,  on a part of a trend plot in REXYGEN HMI software.<br />
<img src="/assets/uploads/files/1562790948565-range_selector.png" alt="0_1562790948065_range_selector.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">In the above mentioned topic on the old forum, that is referring to the options in dygraph, I found some <a href="http://dygraphs.com/gallery/#g/link-interaction">interesting link that referred to a "date Windows"</a>.</p>
<p dir="auto"><strong>dateWindow #</strong><br />
Initially zoom in on a section of the graph. Is of the form [earliest, latest], where earliest/latest are milliseconds since epoch. If the data for the x-axis is numeric, the values in dateWindow must also be numbers.</p>
<p dir="auto"><strong>Type:</strong> Array of two numbers<br />
<strong>Default:</strong> Full range of the input is shown</p>
<p dir="auto">Unfortunately I do not succeed to figure out the required code in the "options" to select for instance only the last 8 hours of a trendchart that is using for instance 3 full days.</p>
<p dir="auto">I'm sampling every 2 minutes (pfac = 2400) and have a trendplot of 3 days (l = 2160).<br />
<img src="/assets/uploads/files/1562790514794-trend-settings.png" alt="0_1562790514478_trend settings.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Unfortunately I don't find what exact code should be used to achieve the behavior as referred to in the example online.<br />
Any help would be greatly appreciated.</p>
<p dir="auto">Thanks,<br />
Peter</p>
]]></description><link>https://forum.rexygen.com/topic/44/dygraphoptions-datewindows</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 12:38:45 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/44.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Jul 2019 20:43:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to dygraphOptions dateWindows on Fri, 12 Jul 2019 19:35:10 GMT]]></title><description><![CDATA[<p dir="auto">Thank a lot for explanation Ondrej.<br />
I will proceed accordingly.</p>
<p dir="auto">Best regards,<br />
Peter</p>
]]></description><link>https://forum.rexygen.com/post/128</link><guid isPermaLink="true">https://forum.rexygen.com/post/128</guid><dc:creator><![CDATA[RexPeter]]></dc:creator><pubDate>Fri, 12 Jul 2019 19:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to dygraphOptions dateWindows on Fri, 12 Jul 2019 14:19:57 GMT]]></title><description><![CDATA[<p dir="auto">Hello Peter,<br />
we are using dateWindow function during trend refresh. Thus every time we get a new data the time widow is adjusted. So you are not able to use this attribute for custom default zoom. I suggest to follow the <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a> recommendation and create a 3 hour trend.</p>
<p dir="auto">Best regards,<br />
Ondrej</p>
]]></description><link>https://forum.rexygen.com/post/127</link><guid isPermaLink="true">https://forum.rexygen.com/post/127</guid><dc:creator><![CDATA[ondrej_severa]]></dc:creator><pubDate>Fri, 12 Jul 2019 14:19:57 GMT</pubDate></item><item><title><![CDATA[Reply to dygraphOptions dateWindows on Fri, 12 Jul 2019 12:44:53 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Tomas,</p>
<p dir="auto">Not exactly what I want.<br />
But what about this "Link-Interaction" Dygraph type?<br />
<img src="/assets/uploads/files/1562935386909-link_interaction_dygraphs-resized.png" alt="0_1562935381516_Link_Interaction_Dygraphs.PNG" class=" img-fluid img-markdown" /><br />
Here a possibility to zoom to an hour, day or week etc. and move this time span to the left or to the right with the Pan parameters listed....</p>
<p dir="auto">Can such a graph be implemented in Rexygen?</p>
<p dir="auto">Peter</p>
]]></description><link>https://forum.rexygen.com/post/126</link><guid isPermaLink="true">https://forum.rexygen.com/post/126</guid><dc:creator><![CDATA[RexPeter]]></dc:creator><pubDate>Fri, 12 Jul 2019 12:44:53 GMT</pubDate></item><item><title><![CDATA[Reply to dygraphOptions dateWindows on Fri, 12 Jul 2019 12:25:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi Peter,</p>
<p dir="auto">thanks for interesting feature request.</p>
<p dir="auto">It is possible to set dygraph options in REXYGEN HMI Designer - which means that it is static. According to the dygraph docs the dateWindow should be dynamically changed according to the desired time window (which is constantly moving):  "earliest/latest are milliseconds since epoch".<br />
The only workaround in my mind for now is to use two trend plots - one 8h and one 3 days long.</p>
<p dir="auto">Cheers,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/125</link><guid isPermaLink="true">https://forum.rexygen.com/post/125</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Fri, 12 Jul 2019 12:25:35 GMT</pubDate></item></channel></rss>