<?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[Multiple time plots]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
is there a way to plot 2 different time ranges one one graph?<br />
I would like to have a graph where I can compare 2 points with 2 different time ranges. For example - I am logging kW of 2 compressors. Compressor 1 ran for one hour today between 14:00-15:00. Compressor 2 ran 3 days ago for one hour between 11:30-12:30.<br />
Can I plot the 2 series on one chart similar the image attached? <img src="https://camo.nodebb.org/1b05cbabd9e8f35f764f987d70287210e7f16a80?url=https%3A%2F%2Fi.imgur.com%2F7OKYzpQ.jpg" alt="0_1588336109623_Compare Point.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.mango-os.com/topic/4787/multiple-time-plots</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 23:02:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4787.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 May 2020 12:11:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multiple time plots on Mon, 04 May 2020 00:06:26 GMT]]></title><description><![CDATA[<p dir="auto">I can tell you if you're measuring power, you can at least make that work from the perspective of current will be greater than zero or at least a standby current, so then you will easily be able to detect your start and end times.<br />
You're still going to have to implement some code to automate what you want to do, but once it's in and running, it will make life a lot easier with what you are trying to achieve I assure you.<br />
Whilst cwangv's idea is a solid starting point, you're still going to want to pull by 24 hour window, then I'd recommend using a slider to add or remove up to twelve hours worth time to be able to overlay the two, the overlay part I can see is where an AngularJS controller will be required to make this work because I do not believe it's as easy to go through and parse and modify the timestamps in the dashboard post API pull.</p>
<p dir="auto">I'll leave cwangv to find the solution for if it can be realised without a controller, I'd be very impressed and a lot of people will benefit from it. However if some further help is required I'll put my hand up.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/25103</link><guid isPermaLink="true">https://forum.mango-os.com/post/25103</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 04 May 2020 00:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple time plots on Sun, 03 May 2020 22:41:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: MattFox">@<bdi>MattFox</bdi></a>  I'm not really thinking of any particular scenario, more of a generic tool. Say you have a motor which is getting old, you might want to compare some stats (current, power, temp etc.) from now to some time in the past or maybe you've recently had some PCBs fail, you could compare your power quality to how it was previously.<br />
Would it possible to retrospectively tag the start and end of the runtime events? That might work.<br />
Thanks.</p>
]]></description><link>https://forum.mango-os.com/post/25102</link><guid isPermaLink="true">https://forum.mango-os.com/post/25102</guid><dc:creator><![CDATA[Robmalone]]></dc:creator><pubDate>Sun, 03 May 2020 22:41:20 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple time plots on Sat, 02 May 2020 20:31:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robmalone" aria-label="Profile: robmalone">@<bdi>robmalone</bdi></a> said in <a href="/post/25097">Multiple time plots</a>:</p>
<blockquote>
<p dir="auto">but for now I have no way of triggering an event, there may be no event to trigger</p>
</blockquote>
<p dir="auto">It's not so much an event, is there anything that points out when the points in question are in use ie are they non zero when working?<br />
Are they negative or above a certain threshold. If so we can definitely use this to create your "runtime events" that can be selected from a drop down. Happy to assist with the JS code if desired.</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/25099</link><guid isPermaLink="true">https://forum.mango-os.com/post/25099</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sat, 02 May 2020 20:31:59 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple time plots on Sat, 02 May 2020 13:52:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robmalone" aria-label="Profile: robmalone">@<bdi>robmalone</bdi></a><br />
the sample you have shown is for different day on the same time range which is very similar to the Mango example.<br />
I think you can manipulate the 'from' and 'to' range within the serial chart object to suit your ranges. You will most likely need a couple of date pickers on the graph instead of using the build-in one at the top-right corner.<br />
I am doing something similar. I will see if I can come up with something close to what you want.</p>
]]></description><link>https://forum.mango-os.com/post/25098</link><guid isPermaLink="true">https://forum.mango-os.com/post/25098</guid><dc:creator><![CDATA[cwangv]]></dc:creator><pubDate>Sat, 02 May 2020 13:52:14 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple time plots on Sat, 02 May 2020 12:46:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the replies.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/mattfox" aria-label="Profile: MattFox">@<bdi>MattFox</bdi></a> I like your solution. It sounds great for certain situations which I will probably use at some point but for now I have no way of triggering an event, there may be no event to trigger. The 2 compressors was just an example. What I really need is to be able to select any 2 points at any 2 time ranges and plot them on the same graph. It could be very useful when comparing new/upgraded plant and equipment with old ones. Also a very useful tool for finding and diagnosing electrical/mechanical faults.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cwangv" aria-label="Profile: cwangv">@<bdi>cwangv</bdi></a> I have used this very nice chart before but it will only plot the same time ranges so I couldn't put 13:00-15:00 time range for point1 with 22:05-00:05 time range for point2.</p>
<p dir="auto">I figured it was a long shot. I think Ill just put one chart on top of the other and hide the time axis labels.<br />
Thanks again.</p>
]]></description><link>https://forum.mango-os.com/post/25097</link><guid isPermaLink="true">https://forum.mango-os.com/post/25097</guid><dc:creator><![CDATA[Robmalone]]></dc:creator><pubDate>Sat, 02 May 2020 12:46:24 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple time plots on Sat, 02 May 2020 04:41:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robmalone" aria-label="Profile: robmalone">@<bdi>robmalone</bdi></a><br />
I think there is a sample dashboard called 'Daily comparison chart' inside Mango<br />
that will help you out.<br />
I have created a dashboard similar to what you want for daily/monthly/yearly comparison on the same kWh point.<br />
Below is where you can find the aforementioned sample dashboard.<br />
Hope this helps.</p>
<p dir="auto"><img src="https://camo.nodebb.org/c34c1b07688febf06f41c04a4d553b6c083db7fb?url=https%3A%2F%2Fi.imgur.com%2FvgM7oqR.png" alt="0_1588395595135_Screen Shot 2020-05-02 at 2.46.48 pm.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25096</link><guid isPermaLink="true">https://forum.mango-os.com/post/25096</guid><dc:creator><![CDATA[cwangv]]></dc:creator><pubDate>Sat, 02 May 2020 04:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple time plots on Sat, 02 May 2020 04:23:25 GMT]]></title><description><![CDATA[<p dir="auto">Do you have a means to capture the times when each compressor is on and off?<br />
I would say yes, but not in the way you're doing it because you'd need to know when they are on and off to show them on the same chart.<br />
By doing this I mean each run time is an event that you go by and then you compare each running event, (each event states the datetimes of each) but then using some momentJS voodoo to set both timestamps to the same date range in order to allow you to see some overlap.</p>
<p dir="auto">I've done something similar but not without extra status information to remove any funny values/false running positives</p>
<p dir="auto">Fox</p>
]]></description><link>https://forum.mango-os.com/post/25095</link><guid isPermaLink="true">https://forum.mango-os.com/post/25095</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Sat, 02 May 2020 04:23:25 GMT</pubDate></item></channel></rss>