<?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[Manually altering axis]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have a chart that I need to manually change around the axis to suit different types of Data, and it is never the same devices, names, or tags so difficult to use the watchlist for this particular chart.</p>
<p dir="auto">Can this be achieved by using something like a &lt;md-select&gt;  or a way to bring in the configuration section like it is on the watchlist page?</p>
<p dir="auto">I've tried a few variants but no luck.</p>
<p dir="auto"><img src="https://camo.nodebb.org/bd805d89ff1f88240576f30bbffc7aaa019daede?url=https%3A%2F%2Fi.imgur.com%2F2EGLq2p.png" alt="0_1556855340700_Screen Shot 2019-05-03 at 11.48.51 am.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.mango-os.com/topic/4193/manually-altering-axis</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 10:58:49 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4193.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 May 2019 03:40:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Manually altering axis on Tue, 14 May 2019 17:04:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pikey4" aria-label="Profile: Pikey4">@<bdi>Pikey4</bdi></a> here's an example</p>
<pre><code>&lt;ma-watch-list-get ng-model="designer.watchList" parameters="designer.parameters" on-points-change="designer.points = $points" id="ff8f56f8-0074-4f46-95a9-e789cda9836a" watch-list-xid="WL_ed918c86-646f-4760-b5af-d9285ff86505"&gt;&lt;/ma-watch-list-get&gt;
&lt;div class="ma-designer-root" id="70fe9bc9-0fba-4311-8d0d-51ca93706697" style="width: 1366px; height: 768px; position: relative;" ng-init="page = {graphs: [null, {hidden: false}, null, null, null, null, {hidden: false, valueAxis: 'right'}, {hidden: false}]}"&gt;
    &lt;ma-point-values id="49e1ff96-2f4f-44bc-bfc1-97dc87b4a4cc" points="designer.points" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals + ' ' + dateBar.rollupIntervalPeriod}}" style="position: absolute; left: 148px; top: 124px;" values="pvs"&gt;&lt;/ma-point-values&gt;
    &lt;ma-serial-chart id="2e8f4165-aeae-4555-90e0-efec6d3bd1a2" style="position: absolute; width: 1235px; height: 522px; left: 47px; top: 211px;" values="pvs" points="designer.points" legend="true" default-graph-options="{hidden: true}" graph-options="page.graphs"&gt;&lt;/ma-serial-chart&gt;
    

    &lt;md-input-container id="3e22c62f-6166-4e9a-b308-273131c207cd" style="position: absolute; left: 40px; top: 50px;"&gt;
        &lt;label&gt;Select axis&lt;/label&gt;
        &lt;md-select ng-model="page.graphs[6].valueAxis"&gt;
            &lt;md-option value="left"&gt;Left&lt;/md-option&gt;
            &lt;md-option value="right"&gt;Right&lt;/md-option&gt;
        &lt;/md-select&gt;
    &lt;/md-input-container&gt;
&lt;/div&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/22118</link><guid isPermaLink="true">https://forum.mango-os.com/post/22118</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 14 May 2019 17:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to Manually altering axis on Tue, 14 May 2019 05:19:38 GMT]]></title><description><![CDATA[<p dir="auto">Thanks All,</p>
<p dir="auto">I guess my initial post was lacking any detail and a bit broad. Craig thank for your small example that has been helpful for some other pages also.</p>
<p dir="auto">My initial query is primarily related to somehow having the ability to swap series from left to right or left-2 etc. on the fly.</p>
<p dir="auto">For example to have two of three series in a chart and may need to flip them to another axis and then back again without having to re-create the chart (Hope this makes sense.)</p>
<p dir="auto">Thanks again</p>
]]></description><link>https://forum.mango-os.com/post/22101</link><guid isPermaLink="true">https://forum.mango-os.com/post/22101</guid><dc:creator><![CDATA[Pikey4]]></dc:creator><pubDate>Tue, 14 May 2019 05:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to Manually altering axis on Wed, 08 May 2019 01:53:47 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/22036">Manually altering axis</a>:</p>
<blockquote>
<p dir="auto">For somereason, if syncronizeGrid is not set to false the min and max does not work.</p>
</blockquote>
<p dir="auto">For a per valueAxes basis you need to use strictMinMax: true,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pikey4" aria-label="Profile: pikey4">@<bdi>pikey4</bdi></a> said in <a href="/post/22028">Manually altering axis</a>:</p>
<blockquote>
<p dir="auto">I have a chart that I need to manually change around the axis to suit different types of Data, and it is never the same devices, names, or tags so difficult to use the watchlist for this particular chart.<br />
Can this be achieved by using something like a &lt;md-select&gt;  or a way to bring in the configuration section like it is on the watchlist page?</p>
</blockquote>
<p dir="auto">I suggest you create chart profiles and save them in the json store. Then you could use that set your chart options on a select drop down basis. If you want the configuration section it will have to be a hack job where you take those bits out and write your own angularJS component to handle it how you want it. Looking at the HTML template, it iterates through properties to display all the various option types.</p>
]]></description><link>https://forum.mango-os.com/post/22040</link><guid isPermaLink="true">https://forum.mango-os.com/post/22040</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Wed, 08 May 2019 01:53:47 GMT</pubDate></item><item><title><![CDATA[Reply to Manually altering axis on Mon, 06 May 2019 11:45:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi Pikey</p>
<p dir="auto">I have edited the live updating chart example to get you started.  let me know if you come right.</p>
<pre><code>&lt;div layout="row" ng-init="options={min:1,max:20,stackType:'regular'}"&gt;
    &lt;md-input-container flex="75"&gt;
        &lt;label&gt;Choose a point&lt;/label&gt;
        &lt;ma-point-list limit="200" ng-model="point1"&gt;&lt;/ma-point-list&gt;
    &lt;/md-input-container&gt;
    &lt;md-input-container flex&gt;
        &lt;label&gt;Values to display&lt;/label&gt;
        &lt;input type="number" min="1" max="1000" ng-model="count" ng-init="count=100"&gt;
    &lt;/md-input-container&gt;
&lt;/div&gt;
&lt;div layout="row"&gt;
    &lt;md-input-container flex="25"&gt;
        &lt;label&gt;Min&lt;/label&gt;
        &lt;input type="number" ng-model="options.min"&gt;
    &lt;/md-input-container&gt;
    &lt;md-input-container flex="25"&gt;
        &lt;label&gt;Max&lt;/label&gt;
        &lt;input type="number" ng-model="options.max"&gt;
    &lt;/md-input-container&gt;
    &lt;md-input-container flex="25"&gt;
        &lt;label&gt;Title&lt;/label&gt;
        &lt;input ng-model="options.title"&gt;
    &lt;/md-input-container&gt;

    &lt;md-input-container flex="25"&gt;
        &lt;label&gt;StackType&lt;/label&gt;
        &lt;md-select ng-model="options.stackType"&gt;
            &lt;md-option value=""&gt;&lt;em&gt;clear&lt;/em&gt;&lt;/md-option&gt;
            &lt;md-option value="none"&gt;&lt;em&gt;None&lt;/em&gt;&lt;/md-option&gt;
            &lt;md-option value="regular"&gt;&lt;em&gt;regular&lt;/em&gt;&lt;/md-option&gt;
            &lt;md-option value="100%"&gt;&lt;em&gt;100%&lt;/em&gt;&lt;/md-option&gt;
        &lt;/md-select&gt;
    &lt;/md-input-container&gt;
&lt;/div&gt;

&lt;ma-point-values point="point1" values="point1Values" latest="count"&gt;
&lt;/ma-point-values&gt;

&lt;ma-serial-chart style="height: 300px; width: 100%" series-1-values="point1Values" series-1-point="point1"
    options="{synchronizeGrid: false, valueAxes:[{minimum:options.min, maximum:options.max,title:options.title,color:'green',stackType:options.stackType}]}"&gt;
&lt;/ma-serial-chart&gt;

{{options}}

</code></pre>
<p dir="auto">For somereason, if syncronizeGrid is not set to false the min and max does not work.</p>
<p dir="auto">BTW whenyou change a option the chart takes about 5-10 seconds to rerender.</p>
]]></description><link>https://forum.mango-os.com/post/22036</link><guid isPermaLink="true">https://forum.mango-os.com/post/22036</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Mon, 06 May 2019 11:45:13 GMT</pubDate></item></channel></rss>