<?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[State Chart X-Axis showing different time format]]></title><description><![CDATA[<p dir="auto">Hey Everyone,</p>
<p dir="auto">I am having some issues with the charts below.<br />
Firstly both charts are displaying a strange time signature along the x-axis, instead of just the date/time. And secondly The state chart does not appear to recognize any of the text rendering of the data points.</p>
<pre><code>&lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_BreakerState" point="point1" values="point1Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_State" point="point2" values="point2Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-state-chart series1-values="point1Values" series1-title="Breaker State" series2-values="point2Values" series2-title="Generator State" style="position: inherit; width: 100%; height: 100px;" options="{categoryAxis:{labelTime: transparent}}"&gt;&lt;/ma-state-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
                            &lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_Load" point= "point3" values="point3Values" from="dateBar.from" to="dateBar.to"&gt;&lt;/ma-point-values&gt;
                                    &lt;ma-serial-chart series-1-values="point3Values" series-1-points="point3" style="height: 200px; width: 100%"&gt;&lt;/ma-serial-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
</code></pre>
<p dir="auto"><img src="https://camo.nodebb.org/1e14e644ad604a0c31943f5899eeeb4bdc41d712?url=https%3A%2F%2Fi.imgur.com%2F4hnanLW.png" alt="0_1601026264953_910718ed-dd86-4130-a7d4-9adeb9b84c0f-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/topic/4950/state-chart-x-axis-showing-different-time-format</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 14:28:27 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4950.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Sep 2020 09:33:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Mon, 26 Oct 2020 02:33:32 GMT]]></title><description><![CDATA[<p dir="auto">Hey Craig, Thanks for all the help.<br />
I ended up figuring it out :)</p>
<pre><code>&lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-get-point-value point-xid="UAR-STN-DP_Gen_BreakerState" point="point1"&gt;&lt;/ma-get-point-value&gt;
                                    &lt;ma-get-point-value point-xid="UAR-STN-DP_Gen_State" point="point2"&gt;&lt;/ma-get-point-value&gt;
                                    &lt;ma-point-values point="point1" values="point1Values" from="dateBar.to | maMoment:'subtract':1:'day'" to="dateBar.to" rollup="FIRST" rollup-interval="1 hours"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-point-values point="point2" values="point2Values" from="dateBar.to | maMoment:'subtract':1:'day'" to="dateBar.to" rollup="FIRST" rollup-interval="1 hours"&gt;
                                    &lt;/ma-point-values&gt;
                                    
                                    &lt;ma-state-chart style="height: 500px; width: 100%" series-1-title="{{point1.name}}" series-1-values="point1Values" series-1-labels="point1.getTextRenderer().values" series-2-title="{{point2.name}}" series-2-values="point2Values" series-2-labels="point2.getTextRenderer().values"&gt;
                                    &lt;/ma-state-chart&gt;

                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/25938</link><guid isPermaLink="true">https://forum.mango-os.com/post/25938</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Mon, 26 Oct 2020 02:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Mon, 26 Oct 2020 01:54:23 GMT]]></title><description><![CDATA[<p dir="auto">Also just for validation, here's the result when I enter it into the example page:<br />
<img src="https://camo.nodebb.org/054e24b6ab8cc27e8a05cbdc85cf82dc7a008fbf?url=https%3A%2F%2Fi.imgur.com%2FZiCrmNN.png" alt="0_1603677258987_2487f39c-8919-4095-bfe1-7981bc7e6dac-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25937</link><guid isPermaLink="true">https://forum.mango-os.com/post/25937</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Mon, 26 Oct 2020 01:54:23 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Mon, 26 Oct 2020 01:49:38 GMT]]></title><description><![CDATA[<p dir="auto">Hey Craig,<br />
Yeah as I said before I originally did this in the example page and it worked perfectly, so I decided to put this in our dashboard then for some reason it's not working (still works on the example page).<br />
I've definitely done something absolutely STUPID to stop it from working but I just cannot figure out what it is hahaha.</p>
<pre><code>&lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_BreakerState" point="point1" values="point1Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_State" point="point2" values="point2Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;div style="position:inherit;width:100%;height:100px"&gt;{{point1.getTextRenderer().values}}&lt;/div&gt;
                                    
                                    &lt;ma-state-chart series1-values="point1Values" series1-title="Breaker State" series2-values="point2Values" series2-title="Generator State" style="position: inherit; width: 100%; height: 100px;" series-1-labels="point1.getTextRenderer().values" series-2-labels="point2.getTextRenderer().values"options="{categoryAxis:{labelTime: transparent}}"&gt;&lt;/ma-state-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
</code></pre>
<p dir="auto"><img src="https://camo.nodebb.org/7dc6162e9ff7cc989ede2b01689c0912d2e7d8a1?url=https%3A%2F%2Fi.imgur.com%2FIcHBbrp.png" alt="0_1603676937648_33c4df5d-8443-46fa-962e-eb6a871abc8e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25936</link><guid isPermaLink="true">https://forum.mango-os.com/post/25936</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Mon, 26 Oct 2020 01:49:38 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 23 Oct 2020 06:16:01 GMT]]></title><description><![CDATA[<p dir="auto">I copied your &lt;ma-state-chart&gt; to the state chart example and it works perfectly.<br />
<img src="https://camo.nodebb.org/079d3538db96c650c1f67795a624298c7d160e06?url=https%3A%2F%2Fi.imgur.com%2FxtjuY2W.png" alt="0_1603433689318_Screen Shot 2020-10-23 at 8.14.41 AM.png" class=" img-fluid img-markdown" /><br />
Can you put the following code below the charts: <code>{{point1.getTextRenderer().values}}</code> and see if you get the correct labels.</p>
]]></description><link>https://forum.mango-os.com/post/25932</link><guid isPermaLink="true">https://forum.mango-os.com/post/25932</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Fri, 23 Oct 2020 06:16:01 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 23 Oct 2020 00:28:26 GMT]]></title><description><![CDATA[<p dir="auto">Done, but still unfortunately nothing.</p>
<pre><code>&lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_BreakerState" point="point1" values="point1Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_State" point="point2" values="point2Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-state-chart series1-values="point1Values" series1-title="Breaker State" series2-values="point2Values" series2-title="Generator State" style="position: inherit; width: 100%; height: 100px;" series-1-labels="point1.getTextRenderer().values" series-2-labels="point2.getTextRenderer().values"options="{categoryAxis:{labelTime: transparent}}"&gt;&lt;/ma-state-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
                            &lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_Load" point= "point3" values="point3Values" from="dateBar.from" to="dateBar.to"&gt;&lt;/ma-point-values&gt;
                                    &lt;ma-serial-chart series-1-values="point3Values" series-1-points="point3" style="height: 200px; width: 100%"&gt;&lt;/ma-serial-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
</code></pre>
<p dir="auto"><img src="https://camo.nodebb.org/98e84d0f16bda6a73a9d3747434fff7bc3c68e77?url=https%3A%2F%2Fi.imgur.com%2FcN0LFoG.png" alt="0_1603412845395_c48f1d03-e5d3-4aac-acca-35c6857757c6-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25931</link><guid isPermaLink="true">https://forum.mango-os.com/post/25931</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Fri, 23 Oct 2020 00:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Thu, 22 Oct 2020 10:20:21 GMT]]></title><description><![CDATA[<p dir="auto">add <code>series-1-labels="point1.getTextRenderer().values" series-2-labels="point2.getTextRenderer().values"</code><br />
to your state chart.</p>
]]></description><link>https://forum.mango-os.com/post/25925</link><guid isPermaLink="true">https://forum.mango-os.com/post/25925</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Thu, 22 Oct 2020 10:20:21 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Thu, 22 Oct 2020 06:53:49 GMT]]></title><description><![CDATA[<pre><code>&lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_BreakerState" point="point1" values="point1Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_State" point="point2" values="point2Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}}"&gt;
                                    &lt;/ma-point-values&gt;
                                    &lt;ma-state-chart series1-values="point1Values" series1-title="Breaker State" series2-values="point2Values" series2-title="Generator State" style="position: inherit; width: 100%; height: 100px;" options="{categoryAxis:{labelTime: transparent}}"&gt;&lt;/ma-state-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
                            &lt;md-card flex=""&gt;
                                &lt;md-card-content&gt;
                                    &lt;ma-point-values point-xid="UAR-STN-DP_Gen_Load" point= "point3" values="point3Values" from="dateBar.from" to="dateBar.to"&gt;&lt;/ma-point-values&gt;
                                    &lt;ma-serial-chart series-1-values="point3Values" series-1-points="point3" style="height: 200px; width: 100%"&gt;&lt;/ma-serial-chart&gt;
                                &lt;/md-card-content&gt;
                            &lt;/md-card&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/25922</link><guid isPermaLink="true">https://forum.mango-os.com/post/25922</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Thu, 22 Oct 2020 06:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Wed, 21 Oct 2020 08:27:18 GMT]]></title><description><![CDATA[<p dir="auto">Please share your code as it is now.</p>
]]></description><link>https://forum.mango-os.com/post/25915</link><guid isPermaLink="true">https://forum.mango-os.com/post/25915</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Wed, 21 Oct 2020 08:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Wed, 21 Oct 2020 07:59:06 GMT]]></title><description><![CDATA[<p dir="auto">Hey Craig,</p>
<p dir="auto">I'm fairly new to this, as I'm sure you can tell. But I had originally tried the chart out in the examples/state-chart section, where it does work. The rollup is set to none and the points are definitely multistate points using the range renderer.<br />
Funny enough, at some point (this is something I only work on when I have the time), the time issue seems to have rectified itself and it's now presenting correctly. The text rendering however is still not working :(</p>
<p dir="auto"><img src="https://camo.nodebb.org/12c4d4ddce5c0c3f001ecdbcceb765967de6dc8f?url=https%3A%2F%2Fi.imgur.com%2FJemgfpK.png" alt="0_1603267137986_21df6450-167c-4046-8fb5-d592152b4bfd-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25914</link><guid isPermaLink="true">https://forum.mango-os.com/post/25914</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Wed, 21 Oct 2020 07:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 25 Sep 2020 11:02:33 GMT]]></title><description><![CDATA[<p dir="auto">Have you tried getting it working in the statechart example with the points you want to use? at  /ui/examples/charts/state-chart<br />
and what rollup do you have set on the dateBar?</p>
<p dir="auto">The &lt;ma-start-chart&gt; is only for multistate points. Are they perhaps not using the range renderer?</p>
]]></description><link>https://forum.mango-os.com/post/25814</link><guid isPermaLink="true">https://forum.mango-os.com/post/25814</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Fri, 25 Sep 2020 11:02:33 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 25 Sep 2020 10:16:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craigweb" aria-label="Profile: craigweb">@<bdi>craigweb</bdi></a> said in <a href="/post/25812">State Chart X-Axis showing different time format</a>:</p>
<blockquote>
<p dir="auto">series-1-labels="point1.getTextRenderer().values"</p>
</blockquote>
<p dir="auto">Hey Craig,<br />
Thats another thing I had tried, then removed, I've put it back in, but still no luck. Neither of the charts have changed at all :(</p>
<p dir="auto"><img src="https://camo.nodebb.org/963f180b688e9f13d9bdf4bc9263f5361e8d35b5?url=https%3A%2F%2Fi.imgur.com%2F2v4lBrL.png" alt="0_1601028966404_67bc22b1-0489-4416-a8f2-0691b56b1ef1-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25813</link><guid isPermaLink="true">https://forum.mango-os.com/post/25813</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Fri, 25 Sep 2020 10:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 25 Sep 2020 10:09:40 GMT]]></title><description><![CDATA[<p dir="auto">I just looked at the &lt;ma-start-chart&gt; example and I see you are missing this. :<br />
<code>series-1-labels="point1.getTextRenderer().values"</code></p>
<p dir="auto">Did the typo fixes, fix the serial chart?</p>
]]></description><link>https://forum.mango-os.com/post/25812</link><guid isPermaLink="true">https://forum.mango-os.com/post/25812</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Fri, 25 Sep 2020 10:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 25 Sep 2020 10:04:52 GMT]]></title><description><![CDATA[<p dir="auto">Hey Craig,</p>
<p dir="auto">Thanks for the reply, still no cigar. The redered="true" was in place originally but i think i removed it to see if anything would change.</p>
<p dir="auto"><img src="https://camo.nodebb.org/d0f3f2957eed1770b46d0ceeeb6130a730b40089?url=https%3A%2F%2Fi.imgur.com%2Fctznrzc.png" alt="0_1601028268335_c74dd86b-6378-4eae-8a75-6781d268c0d5-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.mango-os.com/post/25811</link><guid isPermaLink="true">https://forum.mango-os.com/post/25811</guid><dc:creator><![CDATA[zenvakil]]></dc:creator><pubDate>Fri, 25 Sep 2020 10:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to State Chart X-Axis showing different time format on Fri, 25 Sep 2020 10:02:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/zenvakil" aria-label="Profile: zenvakil">@<bdi>zenvakil</bdi></a></p>
<p dir="auto">Firstly I would suggest taking the time to run through this tutorial: <a href="https://docs.angularjs.org/tutorial" rel="nofollow ugc">https://docs.angularjs.org/tutorial</a><br />
It will help to understand the basic concepts of angularJS.</p>
<p dir="auto">I see a few issues that I suspect are causing your problems:</p>
<ul>
<li>
<p dir="auto"><code>&lt;ma-point-values point-xid="UAR-STN-DP_Gen_Load" point= "point3" values="point3Values" from="dateBar.from" to="dateBar.to"&gt;&lt;/ma-point-values&gt;</code><br />
should be have <code>rendered="true"</code> to receive the rendered value.</p>
</li>
<li>
<p dir="auto">you have some typos in your components:<br />
<code>&lt;ma-state-chart series1-values="point1Values" series1-title="Breaker State" series2-values="point2Values" series2-title="Generator State" style="position: inherit; width: 100%; height: 100px;" options="{categoryAxis:{labelTime: transparent}}"&gt;&lt;/ma-state-chart&gt;</code></p>
</li>
</ul>
<p dir="auto"><code>series1-values="point1Values" series1-title="Breaker State" series2-values="point2Values" series2-title="Generator State"</code><br />
should be:<br />
<code>series-1-values="point1Values" series-1-title="Breaker State" series-2-values="point2Values" series-2-title="Generator State"</code></p>
<p dir="auto"><code>&lt;ma-serial-chart series-1-values="point3Values" series-1-points="point3" style="height: 200px; width: 100%"&gt;&lt;/ma-serial-chart&gt;</code><br />
should be:<br />
<code>&lt;ma-serial-chart series-1-values="point3Values" series-1-point="point3" style="height: 200px; width: 100%"&gt;&lt;/ma-serial-chart&gt;</code> (point not points)</p>
]]></description><link>https://forum.mango-os.com/post/25810</link><guid isPermaLink="true">https://forum.mango-os.com/post/25810</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Fri, 25 Sep 2020 10:02:48 GMT</pubDate></item></channel></rss>