<?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[How to draw a chart for only one data point.]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">Working with the Dashboard I've seen multiple examples of charts, gauges, etc. and in them always is showed a selection list of data points, and when you select one, his chart is shown. But I'd like to make a Dashboard to show only one data point with his chart and that the user can't select another one (because there is no selection list). Could this be done? How?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/topic/2554/how-to-draw-a-chart-for-only-one-data-point</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 11:28:57 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2554.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Nov 2016 14:32:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to draw a chart for only one data point. on Mon, 21 Nov 2016 17:24:55 GMT]]></title><description><![CDATA[<p dir="auto">Thank both of you.</p>
<p dir="auto">It is true, the solution is to change the attribute "point":<br />
&lt;ma-point-values point="point1"</p>
<p dir="auto">by the attribute "point-xid" with the XID of the data point you want to draw:<br />
&lt;ma-point-values point-xid="myXID"</p>
<p dir="auto">Could be a good idea to add an example to the "Mango Dashboard Examples" with this option to draw a chart.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/post/13308</link><guid isPermaLink="true">https://forum.mango-os.com/post/13308</guid><dc:creator><![CDATA[jefero]]></dc:creator><pubDate>Mon, 21 Nov 2016 17:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to draw a chart for only one data point. on Mon, 21 Nov 2016 16:13:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jefero" aria-label="Profile: jefero">@<bdi>jefero</bdi></a><br />
Have a look at the API documentation for <code>ma-point-values</code> you can pass in a point's XID as an attribute.</p>
]]></description><link>https://forum.mango-os.com/post/13307</link><guid isPermaLink="true">https://forum.mango-os.com/post/13307</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Mon, 21 Nov 2016 16:13:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to draw a chart for only one data point. on Mon, 21 Nov 2016 15:48:34 GMT]]></title><description><![CDATA[<p dir="auto">Here's how I did it.</p>
<pre><code> &lt;!-- Get point values --&gt;
 &lt;ma-point-values point-xid="hallsFanInletAirTemp" point="inletAir"&gt;&lt;/ma-point-values&gt;

 &lt;!-- Create a way to manupulate point values to 12 previous hours and update.  In this example, I am getting previous 12 hours at a 1 minute average.  You only have to do this once --&gt;

&lt;ma-now update-interval="1 minutes" output="to"&gt;&lt;/ma-now&gt;
&lt;ma-calc input="to | moment:'subtract':12:'hours'" output="from"&gt;&lt;/ma-calc&gt;

&lt;!-- Manipulate the actual values of the point.  This code can be multiplied for as many points as you want --&gt;

&lt;ma-point-values point="inletAir" values="inletAirValues" from="from" to="to" rollup="AVERAGE" rollup-interval="1 minutes"&gt;
&lt;/ma-point-values&gt;

 &lt;!-- Display Chart --&gt;
	&lt;ma-serial-chart 
                style="height: 500px; width: 100%" 
                series-1-values="inletAirValues" 
                series-1-point="inletAir" 
                series-1-color="green" 
                series-1-axis="left"
                series-1-type="line"
                legend="true" 
                baloon="false"
                options="{
                    valueAxes:[
                        {
                            axisColor:'black', 
                            color:'black', 
                            title: 'Temperature °F', 
                            titleColor: 'black', 
                            minimum:-40, 
                            maximum:140,
                            fontSize:26,
                            titleFontSize:26,
                        }, 
                    ]
                }"
            &gt;
            &lt;/ma-serial-chart&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/13306</link><guid isPermaLink="true">https://forum.mango-os.com/post/13306</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Mon, 21 Nov 2016 15:48:34 GMT</pubDate></item></channel></rss>