<?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[Trouble converting to a config.js or CSS parameter]]></title><description><![CDATA[<p dir="auto">I have installed the MMM-WeatherChart module ( Tatsuma Matsuki) but I am struggling to understand how to convert</p>
<pre><code>        datasets.push({
            label: 'Minimum Temparature',
            backgroundColor: this.config.backgroundColor,
            borderColor: this.config.color,
            pointBackgroundColor: this.config.color,
            datalabels: {
                color: this.config.color,
                align: 'top'
</code></pre>
<p dir="auto">In to  someething resembling this below</p>
<p dir="auto"><code>minimumTemperatureAlign : "below",</code></p>
<p dir="auto">Because I don’t see where there is anything resembling <code>this.config.minimumTemperature</code> .<br />
There is just the one reference to <code>label: `Minimum Temperature`, </code><br />
In a  nutshell align is referring to the text being above the Minimum Temperature trend line.<br />
There are several blocks in this same style relating to various of what seem to be CSS elements.  I don’t understand how to get from the code block to the CSS property since I think this is being done using chart.js to build the grah.</p>
]]></description><link>https://forum.magicmirror.builders/topic/14220/trouble-converting-to-a-config-js-or-css-parameter</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 16:25:28 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14220.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Dec 2020 20:22:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trouble converting to a config.js or CSS parameter on Mon, 14 Dec 2020 19:38:23 GMT]]></title><description><![CDATA[<p dir="auto">I read through you code and reasonably easy to follow along and you gave everything unique names which helps.<br />
The WeatherChart OTOH that uses the same block of code but doesn’t really lay out the underlying chart.js stuff which in that case I have failed to make work.<br />
Obviously if I can change it in the script itself I should be able to make it work in config.js but that has not been the case after trying oodles of different combinations.</p>
]]></description><link>https://forum.magicmirror.builders/post/85754</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85754</guid><dc:creator><![CDATA[ankonaskiff17]]></dc:creator><pubDate>Mon, 14 Dec 2020 19:38:23 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble converting to a config.js or CSS parameter on Sun, 13 Dec 2020 15:05:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ankonaskiff17" aria-label="Profile: ankonaskiff17">@<bdi>ankonaskiff17</bdi></a> when u ask chartsjs to draw. U pass in an options structure. It has all the styles</p>
<p dir="auto">See my module<br />
<a href="https://github.com/sdetweil/MyCovid19" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MyCovid19</a><br />
the updateOptions function</p>
]]></description><link>https://forum.magicmirror.builders/post/85712</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85712</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 13 Dec 2020 15:05:13 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble converting to a config.js or CSS parameter on Sun, 13 Dec 2020 14:16:05 GMT]]></title><description><![CDATA[<p dir="auto">Put in issue in on Github about why the rain amount was not converting to inches when units are specified as imperial.  Author of module resolved that yesterday.  Also asked about scale on vertical axis as it seems too tight and rain trend wants to bang in to temperature trends.<br />
Just  sent him picture showing that.<br />
Several things were able to be changed directly in the script but after following your advice to do all that  in ether custom.css or config.js  there was no way to access those parameters.</p>
<p dir="auto">Spent a few hours looking at chart.js to see ifI could translate that to items in module but couldn’t find anything.</p>
]]></description><link>https://forum.magicmirror.builders/post/85710</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85710</guid><dc:creator><![CDATA[ankonaskiff17]]></dc:creator><pubDate>Sun, 13 Dec 2020 14:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble converting to a config.js or CSS parameter on Sat, 12 Dec 2020 00:26:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ankonaskiff17" aria-label="Profile: ankonaskiff17">@<bdi>ankonaskiff17</bdi></a> chartjs doesn’t expose its css. It does expose tons of settings.</p>
<p dir="auto">Which i expose on my MyCovid19 module</p>
]]></description><link>https://forum.magicmirror.builders/post/85670</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/85670</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 12 Dec 2020 00:26:31 GMT</pubDate></item></channel></rss>