<?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[Gauge styles]]></title><description><![CDATA[<p dir="auto">Hello, I have in an interface for a plant the gauge from bellow:<br />
<img src="https://camo.nodebb.org/f4a5ee7e26279d3ea5a769e808090eb62223796e?url=https%3A%2F%2Fi.imgur.com%2F4GcihCE.jpg" alt="0_1505400583658_gauge.JPG" class=" img-fluid img-markdown" /><br />
But in new dashboard I found only this gauge:<br />
<img src="https://camo.nodebb.org/6efa9db23989482e5a6590d0f6e68764efe96b21?url=https%3A%2F%2Fi.imgur.com%2FoJ6DQMZ.jpg" alt="0_1505400691717_gauge2.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">But I want to use first gauge, it's possible to find it somewhere?</p>
]]></description><link>https://forum.mango-os.com/topic/2943/gauge-styles</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 13:58:12 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2943.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Sep 2017 14:57:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gauge styles on Thu, 01 Mar 2018 20:49:40 GMT]]></title><description><![CDATA[<p dir="auto">@wingnut2-0 said in <a href="/post/17533">Gauge styles</a>:</p>
<blockquote>
<p dir="auto">The example code is below. To clarify, when you say radius is not a gauge chart option, are you referring to an object within mango?</p>
</blockquote>
<p dir="auto">No, I am referring to the amCharts options for gauge charts as per the linked document. The <code>options=""</code> attribute is passed through to amCharts.</p>
<p dir="auto">@wingnut2-0 said in <a href="/post/17533">Gauge styles</a>:</p>
<blockquote>
<p dir="auto">From the above I have attempted the following without any luck.</p>
</blockquote>
<p dir="auto">You have only passed through a small subset of the options you specified in your configuration to the component. Also the <code>animate-band-mode="true"</code> attribute is not a valid attribute for <code>&lt;ma-gauge-chart&gt;</code>. This was something that Will put into a modified version of the component and it will not do anything for the current version of the component.</p>
]]></description><link>https://forum.mango-os.com/post/17534</link><guid isPermaLink="true">https://forum.mango-os.com/post/17534</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 01 Mar 2018 20:49:40 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Thu, 01 Mar 2018 18:10:33 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply and update. I have created an example of the gauge I am looking for using the AMCharts live editor <a href="https://live.amcharts.com/" rel="nofollow ugc">https://live.amcharts.com/</a></p>
<p dir="auto">The example code is below. To clarify, when you say <code>radius</code> is not a gauge chart option, are you referring to an object within mango?</p>
<pre><code>{
	"type": "gauge",
	"marginBottom": 20,
	"marginTop": 40,
	"startDuration": 0,
	"fontSize": 13,
	"theme": "dark",
	"arrows": [
		{
			"id": "GaugeArrow-1",
			"innerRadius": "35%",
			"nailRadius": 0,
			"radius": "170%",
			"value": 100
		}
	],
	"axes": [
		{
			"axisThickness": 0,
			"bottomText": "0 km/h",
			"bottomTextYOffset": -20,
			"centerY": "-6%",
			"endAngle": 90,
			"endValue": 100,
			"fontSize": -7,
			"id": "GaugeAxis-1",
			"labelOffset": 8,
			"minorTickLength": 6,
			"startAngle": -90,
			"tickAlpha": 0.42,
			"valueInterval": 20,
			"bands": [
				{
					"alpha": 0.7,
					"color": "#00CC00",
					"endValue": 100,
					"gradientRatio": [
						0.5,
						0,
						-0.5
					],
					"id": "GaugeBand-1",
					"innerRadius": "105%",
					"radius": "174%",
					"startValue": 0
				}
			]
		}
	],
	"allLabels": [],
	"balloon": {},
	"titles": []
}
</code></pre>
<p dir="auto">From the above I have attempted the following without any luck.</p>
<pre><code>&lt;ma-gauge-chart point="myPoint" start="0" end="100" band-1-end="100" band-1-color="#00CC00" gradientRatio="[0.5,0,-0.5]" band-1-innerRadius= "105%" band-1-radius= "174%" arrow-alpha="0" arrow-innerRadius= "35%" arrow-radius= "170%" value-offset="-80" value-font-size="30" axis-thickness="1" options="{axes: [{startAngle: -90, endAngle:90}]}" style="width:100%; height:250px" animate-band-mode="true"&gt;&lt;/ma-gauge-chart&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/17533</link><guid isPermaLink="true">https://forum.mango-os.com/post/17533</guid><dc:creator><![CDATA[Wingnut2.0]]></dc:creator><pubDate>Thu, 01 Mar 2018 18:10:33 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Thu, 01 Mar 2018 16:28:48 GMT]]></title><description><![CDATA[<p dir="auto">@Wingnut2-0 I'd suggest not overriding your gaugeChart.js file with the one Will provided. That is over 6 months out of date and will likely cause problems. <a class="plugin-mentions-user plugin-mentions-a" href="/user/will-geller" aria-label="Profile: Will-Geller">@<bdi>Will-Geller</bdi></a> no longer works for us so will not be able to reply.</p>
<p dir="auto"><code>radius</code> is not a gauge chart option and will not do anything. The reference for the options is here - <a href="https://docs.amcharts.com/3/javascriptcharts/AmAngularGauge" rel="nofollow ugc">https://docs.amcharts.com/3/javascriptcharts/AmAngularGauge</a></p>
<p dir="auto">Reference the codepen example to see what options you should set - <a href="https://codepen.io/anon/pen/rGVKNM" rel="nofollow ugc">https://codepen.io/anon/pen/rGVKNM</a></p>
]]></description><link>https://forum.mango-os.com/post/17529</link><guid isPermaLink="true">https://forum.mango-os.com/post/17529</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 01 Mar 2018 16:28:48 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Thu, 01 Mar 2018 13:27:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/will-geller" aria-label="Profile: will-geller">@<bdi>will-geller</bdi></a><br />
Thank you for providing the modified file. When comparing the codepen example to snippet you provided, there is a significant difference in the line thickness. Is this due to the innerRadius and radius settings of the bands and arrow? If so, how are these attributes set? I am guessing this is done using the options param similar to</p>
<pre><code>options="{axes: [{startAngle: -90, endAngle:90}], radius: '50%'}"
</code></pre>
<p dir="auto">but I cant seem to get the format of the parameters correct. Would you be able to provide an example please?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.mango-os.com/post/17524</link><guid isPermaLink="true">https://forum.mango-os.com/post/17524</guid><dc:creator><![CDATA[Wingnut2.0]]></dc:creator><pubDate>Thu, 01 Mar 2018 13:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Fri, 15 Sep 2017 16:07:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/will-geller" aria-label="Profile: will-geller">@<bdi>will-geller</bdi></a> Thank you, this is similar with the gauge that I want...</p>
]]></description><link>https://forum.mango-os.com/post/15504</link><guid isPermaLink="true">https://forum.mango-os.com/post/15504</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Fri, 15 Sep 2017 16:07:22 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Fri, 15 Sep 2017 14:57:36 GMT]]></title><description><![CDATA[<p dir="auto">If you overrides your gaugeChart.js file with this modified version <a href="https://gist.github.com/WillGeller/49fd0a070ee887bb50d272e1299e20b9" rel="nofollow ugc">https://gist.github.com/WillGeller/49fd0a070ee887bb50d272e1299e20b9</a><br />
(put it in <code>{$Mango}/overrides/web/modules/mangoUi/web/ngMango/directives</code>)</p>
<p dir="auto">You should then be able to display the gauge chart with an animated band and no arrow with this code:</p>
<pre><code>&lt;ma-get-point-value point-xid="Demmy-outsidetemp" point="myPoint"&gt;&lt;/ma-get-point-value&gt;

&lt;h3&gt;Modified to animate band end&lt;/h3&gt;

&lt;ma-gauge-chart point="myPoint" start="0" end="100" band-1-end="50" band-1-color="blue" band-2-end="100" band-2-color="red" arrow-alpha="0" value-offset="-100" value-font-size="40" options="{axes: [{startAngle: -90, endAngle:90}], radius: '50%'}" style="width:100%; height:250px" animate-band-mode="true"&gt;&lt;/ma-gauge-chart&gt;
</code></pre>
<p dir="auto">You can also remove the band-2.. attributes if you just want to display one band.</p>
<p dir="auto">Seeing as it is a nice alternate look to the gauge chart I may include it in the next UI release and then you would not need the override file.</p>
]]></description><link>https://forum.mango-os.com/post/15498</link><guid isPermaLink="true">https://forum.mango-os.com/post/15498</guid><dc:creator><![CDATA[Will Geller]]></dc:creator><pubDate>Fri, 15 Sep 2017 14:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Fri, 15 Sep 2017 14:04:32 GMT]]></title><description><![CDATA[<p dir="auto">&lt;ng-gauge&gt; as you show must be from a different library. Rather then try to import that or build a component from scratch. I think with a bit of modification to our &lt;ma-gauge-chart&gt; you can create this type of chart.</p>
<p dir="auto">Based on these examples:<br />
<a href="https://docs.amcharts.com/3/javascriptcharts/AmAngularGauge#arrows" rel="nofollow ugc">https://docs.amcharts.com/3/javascriptcharts/AmAngularGauge#arrows</a><br />
<a href="https://codepen.io/anon/pen/rGVKNM" rel="nofollow ugc">https://codepen.io/anon/pen/rGVKNM</a></p>
<ul>
<li>it does look to be doable with amCharts</li>
</ul>
<p dir="auto">I will try to share a modified version of out component that can do so.</p>
]]></description><link>https://forum.mango-os.com/post/15497</link><guid isPermaLink="true">https://forum.mango-os.com/post/15497</guid><dc:creator><![CDATA[Will Geller]]></dc:creator><pubDate>Fri, 15 Sep 2017 14:04:32 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Fri, 15 Sep 2017 09:13:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire" aria-label="Profile: jared-wiltshire">@<bdi>jared-wiltshire</bdi></a> Ok, thank you.</p>
<p dir="auto">I found this code and it is exactly what I need but I am not able to implement it in dashboard designer, can you help me with that? It is there a way to use this?</p>
<pre><code>&lt;ng-gauge size="150" type="full" thick="5" 
          min="0" max="120" value="68.2" 
          cap="round" label="Speed" append="mph"
          foreground-color="#ffcc66" background-color="#EEE"&gt;
&lt;/ng-gauge&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/15496</link><guid isPermaLink="true">https://forum.mango-os.com/post/15496</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Fri, 15 Sep 2017 09:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Thu, 14 Sep 2017 15:55:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/georgestefan" aria-label="Profile: georgestefan">@<bdi>georgestefan</bdi></a> said in <a href="/post/15460">Gauge styles</a>:</p>
<blockquote>
<p dir="auto">The thing that i like at the first gauge is that the red part is proportional with the value, i can put colors to the second gauge but they are fixed.</p>
</blockquote>
<p dir="auto">Unfortunately our built in gauges do not support this. You will need to build your own gauge.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/georgestefan" aria-label="Profile: georgestefan">@<bdi>georgestefan</bdi></a> said in <a href="/post/15460">Gauge styles</a>:</p>
<blockquote>
<p dir="auto">And, yes, I would like to make a 180 degree half gauge...</p>
</blockquote>
<p dir="auto">You can set the start and end angles of the gauge like so -</p>
<pre><code>&lt;ma-gauge-chart point="point" options="{axes: [{startAngle: -90, endAngle:90}]}"&gt;&lt;/ma-gauge-chart&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/15468</link><guid isPermaLink="true">https://forum.mango-os.com/post/15468</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 14 Sep 2017 15:55:46 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Thu, 14 Sep 2017 15:23:00 GMT]]></title><description><![CDATA[<p dir="auto">The thing that i like at the first gauge is that the red part is proportional with the value, i can put colors to the second gauge but they are fixed.</p>
<p dir="auto">And, yes, I would like to make a 180 degree half gauge...</p>
]]></description><link>https://forum.mango-os.com/post/15460</link><guid isPermaLink="true">https://forum.mango-os.com/post/15460</guid><dc:creator><![CDATA[georgestefan]]></dc:creator><pubDate>Thu, 14 Sep 2017 15:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to Gauge styles on Thu, 14 Sep 2017 15:15:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/georgestefan" aria-label="Profile: georgestefan">@<bdi>georgestefan</bdi></a> we do not have a built in gauge like the first. I can however help you make the second gauge a 180 degree half gauge if this is better?</p>
<p dir="auto">[edit] You can certainly create your own component similar to the first gauge if you are familiar with Angular/HTML and CSS. We can also help you with this but its outside the scope of the forum.</p>
]]></description><link>https://forum.mango-os.com/post/15459</link><guid isPermaLink="true">https://forum.mango-os.com/post/15459</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 14 Sep 2017 15:15:28 GMT</pubDate></item></channel></rss>