<?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[Hiding or Refreshing chart data in Angular JS]]></title><description><![CDATA[<p dir="auto">I have a desire to build a chart that shows 4 values.  But I want to be able to use a switch to show/unshow the 4th data points.  Is this in the options section of AMcharts?  Do you have an example of code I could use to do that function?</p>
<p dir="auto">Also, I am trying to use 4 radio buttons to display different data points.  I am looking for an example code to refresh the chart data when I change the radio button.</p>
]]></description><link>https://forum.mango-os.com/topic/2432/hiding-or-refreshing-chart-data-in-angular-js</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 15:44:28 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2432.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Sep 2016 14:32:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hiding or Refreshing chart data in Angular JS on Tue, 06 Sep 2016 16:52:41 GMT]]></title><description><![CDATA[<p dir="auto">That worked great!!!</p>
]]></description><link>https://forum.mango-os.com/post/12562</link><guid isPermaLink="true">https://forum.mango-os.com/post/12562</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Tue, 06 Sep 2016 16:52:41 GMT</pubDate></item><item><title><![CDATA[Reply to Hiding or Refreshing chart data in Angular JS on Tue, 06 Sep 2016 16:23:13 GMT]]></title><description><![CDATA[<p dir="auto">I would try wrapping the <code>&lt;ma-point-values&gt;</code> for temp in an <code>ng-if</code> statement. Note you will need to restructure your variables a little, if you assign a variable inside a <code>ng-if</code> statement you will not be able to see its value  outside the <code>ng-if</code> statement. You get around this by assigning properties on an object. See below.</p>
<pre><code>&lt;div ng-init="myVars={}"&gt;&lt;/div&gt;

&lt;div ng-if="showFourth"&gt;
  &lt;ma-get-point-value point-xid="DP_749465" point="myVars.temp"&gt;&lt;/ma-get-point-value&gt;
  &lt;ma-point-values point="myVars.temp" values="myVars.tempValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;
&lt;/div&gt;
&lt;!-- reset the variables to undefined when the switch is turned off --&gt;
&lt;div ng-if="!showFourth"&gt;
  &lt;ma-calc input="undefined" output="myVars.temp"&gt;&lt;/ma-calc&gt;
  &lt;ma-calc input="undefined" output="myVars.tempValues"&gt;&lt;/ma-calc&gt;
&lt;/div&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12561</link><guid isPermaLink="true">https://forum.mango-os.com/post/12561</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 06 Sep 2016 16:23:13 GMT</pubDate></item><item><title><![CDATA[Reply to Hiding or Refreshing chart data in Angular JS on Tue, 06 Sep 2016 15:40:36 GMT]]></title><description><![CDATA[<p dir="auto">Jared. Im stuck still</p>
<p dir="auto">Here is code for a page I am making.  I have it working great, except I can't figure out how to use the switch to turn off the weather data series graph (I have named it "temp" and in all of the charts it is series-4-data).  I am trying to find a way to tell the page to hide the graph when I click the weather switch.</p>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;

&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta http-equiv="x-ua-compatible" content="ie=edge"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;

    &lt;link rel="stylesheet" href="/resources/angular-csp.css"&gt;&lt;/link&gt;
    &lt;link rel="stylesheet" href="../../../../vendor/angular-material/angular-material.css"&gt;
    &lt;link rel="stylesheet" href="../../../../vendor/material-design-icons/iconfont/material-icons.css"&gt;
    &lt;link rel="stylesheet" href="../../../../vendor/mdPickers/mdPickers.css"&gt;
    &lt;link rel ="stylesheet" ng-href="/modules/dashboards/web/clayground/styles/vitality.css"&gt;

&lt;/head&gt;


&lt;!--  USER INPUT SECTION --&gt;
&lt;!--vvvvvvvvvvvvvvvvvvvvvv--&gt;

&lt;!--  Instructions:   
            1)  Line 37:  CHANGE the name of the building between the single quotes to the corresponding name of the building you are monitoring.
            2)  Line 41:  VERIFY/CHANGE the name of the image file between the single quotes to match the file in the server corresponding to the building you are monitoring.
            3)  Lines 46,49,52,55,58,61,64,67,70; Verify/Change the Point-XID's to the corresponding xid of the meter you are using for the building.
            
--&gt;

    &lt;!-- BUILDING NAME and assign it to an output variable "bldgName" --&gt;
    &lt;div ng-app="" ng-init="utilName=

        'Power'; 

        "&gt;
    
        &lt;!-- LIVE AMPS A XID and assign it to an output variable "liveAmpsA" --&gt;
        &lt;!-- &lt;ma-get-point-value point-xid="DP_243067" point="liveAmpsA" &gt;&lt;/ma-get-point-value&gt; --&gt;

        &lt;!-- LIVE AMPS B XID and assign it to an output variable "liveAmpsB" --&gt;
        &lt;!-- &lt;ma-get-point-value point-xid="DP_864173" point="liveAmpsB" &gt;&lt;/ma-get-point-value&gt; --&gt;
        
        &lt;!-- LIVE AMPS C XID and assign it to an output variable "liveAmpsC" --&gt;
        &lt;!-- &lt;ma-get-point-value point-xid="DP_726944" point="liveAmpsC" &gt;&lt;/ma-get-point-value&gt; --&gt;
        
        &lt;!-- LIVE PF XID and assign it to an output variable "livepf" --&gt;
        &lt;!-- &lt;ma-get-point-value point-xid="DP_744536" point="livepf" latest="1"&gt;&lt;/ma-get-point-value&gt; --&gt;

        &lt;!-- MONTHLY DELTA KWH XID and assign it to an output variable "monthlydeltakwh" --&gt;
        &lt;!-- &lt;ma-get-point-value point-xid="DP_355369" point="monthlylowpf"&gt;&lt;/ma-get-point-value&gt; --&gt;
        
        &lt;!-- TEMP XID and assign it to an output variable "temp" --&gt;
        &lt;ma-get-point-value point-xid="DP_749465" point="temp"&gt;&lt;/ma-get-point-value&gt;

        &lt;!-- Server side query for points with given device name, and server side sort --&gt;
        &lt;ma-point-query query="{deviceName:deviceName}" sort="'name'" points="points"&gt;&lt;/ma-point-query&gt;
        &lt;ma-get-point-value points="points" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes"&gt;&lt;/ma-get-point-value&gt;

        &lt;!-- Client side filter by name --&gt;
        &lt;ma-calc input="points | filter:{name:'KWH'} | first" output="energy"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Amps A'} | first" output="currentA"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Amps B'} | first" output="currentB"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Amps C'} | first" output="currentC"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Volts AB'} | first" output="voltageAB"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Volts BC'} | first" output="voltageBC"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Volts AC'} | first" output="voltageAC"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Volts AN'} | first" output="voltageAN"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Volts BN'} | first" output="voltageBN"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'Volts CN'} | first" output="voltageCN"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'KW'} | first" output="kW"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="points | filter:{name:'PF'} | first" output="powerFactor"&gt;&lt;/ma-calc&gt;

        &lt;ma-point-values point="temp" values="tempValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="kW" values="kWValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="energy" values="energyValues" from="from" to="to" rollup="DELTA" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="currentA" values="currentAValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="currentB" values="currentBValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="currentC" values="currentCValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="voltageAB" values="voltageABValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="voltageBC" values="voltageBCValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="voltageAC" values="voltageACValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="voltageAN" values="voltageANValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="voltageBN" values="voltageBNValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="voltageCN" values="voltageCNValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="powerFactor" values="powerFactorValues" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;
    &lt;/div&gt;

&lt;!--^^^^^^^^^^^^^^^^^^^^^^^^--&gt;
  &lt;!-- USER INPUT SECTION   --&gt;


&lt;!--         &lt;md-toolbar md-whiteframe="2"&gt; 
            &lt;h2 class="md-toolbar-tools"&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt; 
        &lt;/md-toolbar&gt;  --&gt;

            &lt;md-card-actions layout="row" layout-align="end center"&gt;
                &lt;a ui-sref="dashboard.home"&gt;&lt;md-button class="vitality-button"&gt;Home&lt;/md-button&gt;&lt;/a&gt;
                &lt;a ui-sref="dashboard.power"&gt;&lt;md-button class="vitality-button"&gt;Power&lt;/md-button&gt;&lt;/a&gt;
                &lt;a ui-sref="dashboard.heating"&gt;&lt;md-button class= "vitality-button"&gt;Heating&lt;/md-button&gt;&lt;/a&gt;
                &lt;a ui-sref="dashboard.cooling"&gt;&lt;md-button class= "vitality-button"&gt;Cooling&lt;/md-button&gt;&lt;/a&gt;
                &lt;a ui-sref="dashboard.water"&gt;&lt;md-button class= "vitality-button"&gt;Water&lt;/md-button&gt;&lt;/a&gt;
            &lt;/md-card-actions&gt;
&lt;!-- &lt;div layout="column" layout-fill flex&gt; --&gt;
    &lt;div layout="row" layout-gt-xs="row"&gt;

        &lt;div flex="20" layout="column"&gt;

            &lt;md-card flex ="100" layout="column" class= "cardcolor"&gt;
                &lt;md-card-content&gt;
                    &lt;h2 class="box-title" style="font-family: serif; color:#ffffff;"&gt;Live Power Factor&lt;/h2&gt;

                    &lt;!-- &lt;ma-get-point-value point-xid="DP_744536" point="myPoint" latest="1"&gt;&lt;/ma-get-point-value&gt; --&gt;
                        
                        &lt;div flex=""&gt;
                            &lt;ma-gauge-chart point="powerFactor" start=".0" band-1-end=".5" band-1-color="red" band-2-end=".9" band-2-color="yellow" band-3-end="1.0" band-3-color="green" style="width:100%; height:300px"&gt;&lt;/ma-gauge-chart&gt;
                        &lt;/div&gt;

                &lt;/md-card-content&gt;
            &lt;/md-card&gt;
            &lt;md-card flex="100" layout="column" class= "cardcolor"&gt;

                &lt;md-card-content&gt;
                    &lt;h2 class="box-title" style="font-family: serif; color:#ffffff;"&gt;Live Amps&lt;/h2&gt;
                    &lt;ma-point-values point="currentA" values="point5Values" latest="1"&gt;&lt;/ma-point-values&gt;
                    &lt;ma-point-values point="currentB" values="point6Values" latest="1"&gt;&lt;/ma-point-values&gt;
                    &lt;ma-point-values point="currentC" values="point7Values" latest="1"&gt;&lt;/ma-point-values&gt;

                    &lt;ma-serial-chart style="height: 300px; width: 100%;" series-5-values="point5Values" series-5-point="currentA" series-6-values="point6Values" series-6-point="currentB" series-7-values="point7Values" series-7-point="currentC" default-type="column" legend="true"&gt;&lt;/ma-serial-chart&gt;
                &lt;/md-card-content&gt;

            &lt;/md-card&gt;
        &lt;/div&gt;
        
        &lt;md-card flex ="80" flex layout="column" class= "cardcolor"&gt;
            &lt;md-card-content&gt;
                    &lt;!-- &lt;h2 class="box-title" style=" font-family: serif; color:#ffffff;"&gt;Meter&lt;/h2&gt; --&gt;
                    &lt;div flex="100" layout="row"&gt;
                        &lt;md-input-container flex="33" layout-align="start start" &gt;
                        &lt;label&gt;Choose a device&lt;/label&gt;
                        &lt;md-select ng-model="deviceName" ng-init="deviceName='032 POWER East'" style="font-family: serif; color:#ffffff;"&gt;
                            &lt;md-option ng-value="'032 POWER East'"&gt;Meter 1&lt;/md-option&gt;
                            &lt;md-option ng-value="'oo'"&gt;Meter 2&lt;/md-option&gt;
                            &lt;!-- &lt;md-option ng-value="'Meter 3'"&gt;Meter 3&lt;/md-option&gt; --&gt;
                        &lt;/md-select&gt;
                        &lt;/md-input-container&gt;
                        &lt;md-switch flex="66" layout-align="end start" ng-model="showFourth" style=" font-family: serif; color:#ffffff;" &gt;Weather&lt;/md-switch&gt;
                    &lt;/div&gt;


                &lt;div ng-show="graphselector == 'kW'"&gt;
                    &lt;ma-serial-chart style="height: 500px; width: 100%" series-1-point="kW" series-1-values="kWValues" series-1-color="blue" series-1-type= "column" series-4-point="temp" series-4-values="tempValues"  series-4-color="red" series-4-type= "line" series-4-axis="right" options="{chartScrollbar:{'enabled': true}} {chart.hideGraph(chart.graphs[2]}" export="true" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;

                &lt;/div&gt;

                &lt;div ng-show="graphselector == 'kWh'"&gt;
                    &lt;ma-serial-chart style="height: 500px; width: 100%" series-1-point="energy" series-1-values="energyValues" series-1-color="blue" series-1-type= "column" series-4-point="temp" series-4-values="tempValues"  series-4-color="red" series-4-type= "line" series-4-axis="right" options="{chartScrollbar:{'enabled': true}}" export="true" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;

                &lt;/div&gt;
                &lt;div ng-show="graphselector == 'Amps'"&gt;
                    &lt;ma-serial-chart style="height: 500px; width: 100%" series-1-point="currentA" series-1-values="currentAValues" series-1-color="blue" series-1-type= "column" series-2-point="currentB" series-2-values="currentBValues"  series-2-color="orange" series-2-type= "column" series-3-point="currentC" series-3-values="currentCValues"  series-3-color="green" series-3-type= "column" series-4-point="temp" series-4-values="tempValues"  series-4-color="red" series-4-type= "line" series-4-axis="right" options="{chartScrollbar:{'enabled': true}}" export="true" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;

                &lt;/div&gt;
                                &lt;div ng-show="graphselector == 'VoltsL'"&gt;
                    &lt;ma-serial-chart style="height: 500px; width: 100%" series-1-point="voltageAB" series-1-values="voltageABValues" series-1-color="blue" series-1-type= "column" series-2-point="voltageBC" series-2-values="voltageBCValues"  series-2-color="orange" series-2-type= "column" series-3-point="voltageAC" series-3-values="voltageACValues"  series-3-color="green" series-3-type= "column" series-4-point="temp" series-4-values="tempValues"  series-4-color="red" series-4-type= "line" series-4-axis="right" options="{chartScrollbar:{'enabled': true}}" export="true" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;

                &lt;/div&gt;
                                &lt;div ng-show="graphselector == 'VoltsN'"&gt;
                    &lt;ma-serial-chart style="height: 500px; width: 100%" series-1-point="voltageAN" series-1-values="voltageANValues" series-1-color="blue" series-1-type= "column" series-2-point="voltageBN" series-2-values="voltageBNValues"  series-2-color="orange" series-2-type= "column" series-3-point="voltageCN" series-3-values="voltageCNValues"  series-3-color="green" series-3-type= "column" series-4-point="temp" series-4-values="tempValues"  series-4-color="red" series-4-type= "line" series-4-axis="right" options="{chartScrollbar:{'enabled': true}}" export="true" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;

                &lt;/div&gt;
                &lt;div ng-show="graphselector == 'PF'"&gt;
                    &lt;ma-serial-chart style="height: 500px; width: 100%" series-1-point="powerFactor" series-1-values="powerFactorValues" series-1-color="blue" series-1-type= "column" series-4-point="temp" series-4-values="tempValues"  series-4-color="red" series-4-type= "line" series-4-axis="right" options="{chartScrollbar:{'enabled': true}}" export="true" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;

                &lt;/div&gt;

                &lt;div flex layout="row" layout-xs="column" class="no-errors-spacer"&gt;
    
                    &lt;md-input-container flex=""&gt;

                    &lt;div layout="row" style="font-family: serif; color:#ffffff;"&gt;
                        &lt;mdp-date-picker mdp-placeholder="From date" mdp-open-on-click="" mdp-format="ll" ng-model="from" &gt;&lt;/mdp-date-picker&gt;
                        &lt;mdp-date-picker mdp-placeholder="To date" mdp-open-on-click="" mdp-format="ll" ng-model="to" &gt;&lt;/mdp-date-picker&gt;
                   

                    &lt;!-- &lt;label style="font-size:200%; font-family: serif; color:#ffffff;"&gt;Date preset&lt;/label&gt; --&gt;
                            &lt;ma-date-range-picker from="from" to="to" preset="LAST_3_HOURS" update-interval="1 minutes" style="font-family: serif; color:#ffffff;"&gt;&lt;/ma-date-range-picker&gt;
                    &lt;/div&gt;
                    &lt;/md-input-container&gt;

&lt;!--                     &lt;md-input-container flex=""&gt;
                        &lt;label&gt;From date&lt;/label&gt;
                            &lt;ma-date-picker ng-model="from"&gt;&lt;/ma-date-picker&gt;
                    &lt;/md-input-container&gt;

                    &lt;md-input-container flex=""&gt;
                        &lt;label&gt;To date&lt;/label&gt;
                            &lt;ma-date-picker ng-model="to"&gt;&lt;/ma-date-picker&gt;
                    &lt;/md-input-container&gt; --&gt;

                &lt;/div&gt;

                &lt;div flex-layout="row" layout-xs="column" class="no-errors-spacer" &gt;
                    &lt;md-radio-group ng-model="graphselector" ng-model-options="{getterSetter:true}" ng-init="graphselector='kW'" layout="row" &gt;
                                &lt;md-radio-button value="kW" class="md-primary" style="font-family: serif; color:#ffffff;"&gt;kw&lt;/md-radio-button&gt;
                                &lt;md-radio-button value="kWh" style=" font-family: serif; color:#ffffff;"&gt; kWh &lt;/md-radio-button&gt;
                                &lt;md-radio-button value="Amps" style="font-family: serif; color:#ffffff;"&gt;Amps&lt;/md-radio-button&gt;
                                &lt;md-radio-button value="VoltsL" style="font-family: serif; color:#ffffff;"&gt;Volts LL&lt;/md-radio-button&gt;
                                &lt;md-radio-button value="VoltsN" style="font-family: serif; color:#ffffff;"&gt;Volts LN&lt;/md-radio-button&gt;
                                &lt;md-radio-button value="PF" style="font-family: serif; color:#ffffff;"&gt;PF&lt;/md-radio-button&gt;
                       &lt;!-- &lt;md-radio-button ng-repeat="i in range(1,5)" value="{{i}}" ng-style="myPoint.valueRenderer(i)"&gt;{{myPoint.valueRenderer(i).text}}&lt;/md-radio-button&gt; --&gt;
                    &lt;/md-radio-group&gt;
                &lt;/div&gt;
&lt;!--                 &lt;div ng-repeat="pt in points" layout="row" style="font-family: serif; color:#ffffff;"&gt;
                    &lt;label layout="row" &gt;{{pt.name}}: &lt;/label&gt; {{pt.renderedValue}}
                &lt;/div&gt; --&gt;
            &lt;/md-card-content&gt;
        &lt;/md-card&gt;
    &lt;/div&gt;
&lt;!-- &lt;/div&gt; --&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12556</link><guid isPermaLink="true">https://forum.mango-os.com/post/12556</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Tue, 06 Sep 2016 15:40:36 GMT</pubDate></item><item><title><![CDATA[Reply to Hiding or Refreshing chart data in Angular JS on Thu, 01 Sep 2016 19:03:59 GMT]]></title><description><![CDATA[<p dir="auto">Here's an example  of what you requested, the value of the switch is used to alter the limit on the <code>&lt;ma-point-query&gt;</code></p>
<pre><code>&lt;md-radio-group ng-model="buildingName" ng-init="buildingName='Building 1'"&gt;
  &lt;md-radio-button value="Building 1"&gt;Building 1&lt;/md-radio-button&gt;
  &lt;md-radio-button value="Building 2"&gt;Building 2&lt;/md-radio-button&gt;
  &lt;md-radio-button value="Building 3"&gt;Building 3&lt;/md-radio-button&gt;
&lt;/md-radio-group&gt;

&lt;div layout="row"&gt;
    &lt;md-input-container flex="100"&gt;
        &lt;label&gt;Time period&lt;/label&gt;
        &lt;ma-date-range-picker from="from" to="to" preset="LAST_5_MINUTES" update-interval="1 minutes"&gt;&lt;/ma-date-range-picker&gt;
    &lt;/md-input-container&gt;
&lt;/div&gt;

&lt;md-switch ng-model="showFourth"&gt;
    Show fourth: {{ !!showFourth }}
&lt;/md-switch&gt;

&lt;ma-point-query query="{deviceName: buildingName, $exact: true}" points="points" limit="showFourth ? 4 : 3"&gt;&lt;/ma-point-query&gt;

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

&lt;ma-serial-chart style="height: 600px; width: 100%" values="combined" points="points" legend="true"&gt;
&lt;/ma-serial-chart&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12533</link><guid isPermaLink="true">https://forum.mango-os.com/post/12533</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 01 Sep 2016 19:03:59 GMT</pubDate></item></channel></rss>