<?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[Set chart minimum and maximum axes values ignored]]></title><description><![CDATA[<p dir="auto">Hi all ,<br />
Having problems with fixing the maximum and minimum range for my graph. I do not want to show below zero as a value as the y-axis is supposed to represent a percentage.</p>
<pre><code>&lt;md-card flex&gt;
        &lt;md-card-content ng-controller="flAPI"&gt;	
		&lt;ma-point-query query="'or(and(like(deviceName,*Grain Silo*),eq(name,Grain Level)),and(like(deviceName,*Molasses Silo*),like(name,Molasses Level)))&amp;sort(deviceName,name)'" points="devices"&gt;&lt;/ma-point-query&gt;
			&lt;ma-point-values points="devices" values="combined" from="from" to="to"&gt;&lt;/ma-point-values&gt;
		
&lt;ma-serial-chart id="flChart" style="height: 500px; width: 100%" points="devices" values="combined" options="{valueAxes:[{ minimum:0, maximum:100,title:'Feed Level (%)'}]}" legend="true" balloon="true"&gt;&lt;/ma-serial-chart&gt;


&lt;ma-date-range-picker from="from" to="to" preset="LAST_1_WEEKS" update-interval="15 minutes" on-change="$ctrl.timeUpdated(from, to, preset)"&gt;&lt;/ma-date-range-picker&gt;
&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;
      &lt;/md-card-content&gt;
&lt;/md-card&gt;
</code></pre>
<p dir="auto">As far as I know, this is correct and follows a lot of what your examples do. Yet  the graph still comes up showing -10 and + 90. Some assistance would be greatly appreciated...<br />
<img src="https://camo.nodebb.org/423c9285d6f949b8a24fd1864415f1fd64c4dc1d?url=https%3A%2F%2Fi.imgur.com%2Fd3RiQDs.png" alt="0_1500602775236_Capture.PNG" class=" img-fluid img-markdown" /><br />
I realise that some values go below zero but I'd rather not show this as they make no sense in this instance.<br />
Thanks<br />
Matt</p>
]]></description><link>https://forum.mango-os.com/topic/2863/set-chart-minimum-and-maximum-axes-values-ignored</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 06:22:09 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2863.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jul 2017 02:06:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Set chart minimum and maximum axes values ignored on Tue, 25 Jul 2017 21:27:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap" aria-label="Profile: phildunlap">@<bdi>phildunlap</bdi></a> Many thanks, at least we all know now and if anyone hits this snag they'll find it here.</p>
<p dir="auto">Matt</p>
]]></description><link>https://forum.mango-os.com/post/15072</link><guid isPermaLink="true">https://forum.mango-os.com/post/15072</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 25 Jul 2017 21:27:22 GMT</pubDate></item><item><title><![CDATA[Reply to Set chart minimum and maximum axes values ignored on Mon, 24 Jul 2017 19:53:18 GMT]]></title><description><![CDATA[<p dir="auto">Their reply,</p>
<p dir="auto">Hi Phillip,</p>
<p dir="auto">Thanks for pointing this out. This property was originally documented on our site and listed as a beta/experimental feature (and it still is), but we removed references to it in the documentation because it was not quite ready for primetime as it worked in very basic use cases (note that it will ignore any user set minimum and maximum values). As we're currently focusing on our next major version, we don't have an ETA as to when we'll iron out any remaining issues with synchronizeGrid. You're more than welcome to keep using it if it works for you, but use at your own risk.</p>
<p dir="auto">As for enforcing the minimums and maximums, setting the value axis' strictMinMax (<a href="http://docs.amcharts.com/3/javascriptcharts/ValueAxis#strictMinMax" rel="nofollow ugc">http://docs.amcharts.com/3/javascriptcharts/ValueAxis#strictMinMax</a>) property to true should do the trick.</p>
<p dir="auto">Please let me know if you have any questions.</p>
<p dir="auto">Best,<br />
[Name of AMChart support person]</p>
]]></description><link>https://forum.mango-os.com/post/15051</link><guid isPermaLink="true">https://forum.mango-os.com/post/15051</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 24 Jul 2017 19:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Set chart minimum and maximum axes values ignored on Mon, 24 Jul 2017 17:25:51 GMT]]></title><description><![CDATA[<p dir="auto">I sent AMCharts an email letting them know that property might not be documented fully.</p>
]]></description><link>https://forum.mango-os.com/post/15043</link><guid isPermaLink="true">https://forum.mango-os.com/post/15043</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 24 Jul 2017 17:25:51 GMT</pubDate></item><item><title><![CDATA[Reply to Set chart minimum and maximum axes values ignored on Mon, 24 Jul 2017 16:54:12 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> No worries! Its mentioned on one of their demo pages but not in the API docs which is what made it difficult to figure out.</p>
]]></description><link>https://forum.mango-os.com/post/15041</link><guid isPermaLink="true">https://forum.mango-os.com/post/15041</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Mon, 24 Jul 2017 16:54:12 GMT</pubDate></item><item><title><![CDATA[Reply to Set chart minimum and maximum axes values ignored on Mon, 24 Jul 2017 03:50:28 GMT]]></title><description><![CDATA[<p dir="auto">Gent!</p>
<p dir="auto">That did it beautifully, A bit relieved I'm not the only one it stumped momentarily. Feel a bit of a muppet though not seeing that bit in their docs...<br />
Thanks Jared!</p>
]]></description><link>https://forum.mango-os.com/post/15031</link><guid isPermaLink="true">https://forum.mango-os.com/post/15031</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Mon, 24 Jul 2017 03:50:28 GMT</pubDate></item><item><title><![CDATA[Reply to Set chart minimum and maximum axes values ignored on Fri, 21 Jul 2017 17:39:10 GMT]]></title><description><![CDATA[<p dir="auto">Hey Matt,</p>
<p dir="auto">Took me a while to figure this out but we have <code>synchronizeGrid</code> turned on in the AmCharts options. Its documented here <a href="https://www.amcharts.com/demos/multiple-value-axes/" rel="nofollow ugc">https://www.amcharts.com/demos/multiple-value-axes/</a></p>
<p dir="auto">Try changing your options to<br />
<code>options="{synchronizeGrid: false, valueAxes:[{ minimum:0, maximum:100,title:'Feed Level (%)'}]}"</code></p>
<p dir="auto">Note that there are various other ValueAxis options that may affect the minimum and maximum. So take a look at <a href="https://docs.amcharts.com/3/javascriptcharts/ValueAxis" rel="nofollow ugc">https://docs.amcharts.com/3/javascriptcharts/ValueAxis</a> if you have any issues.</p>
<p dir="auto">Jared</p>
]]></description><link>https://forum.mango-os.com/post/15027</link><guid isPermaLink="true">https://forum.mango-os.com/post/15027</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 21 Jul 2017 17:39:10 GMT</pubDate></item></channel></rss>