<?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[has anyone used any of the charting tools, like chartjs?]]></title><description><![CDATA[<p dir="auto">i am making a module to add visualization of my friends water well system. I have a mobile app that does this, but it is hard to remember to look at the phone app…</p>
<p dir="auto">anyhow, there is a rest api to get the raw measurements (collected at once a minute 24/7)…</p>
<p dir="auto">for a 3 day view  that is  around 4200 entries.</p>
]]></description><link>https://forum.magicmirror.builders/topic/9570/has-anyone-used-any-of-the-charting-tools-like-chartjs</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 04:46:04 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9570.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Jan 2019 15:04:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 14 Feb 2019 11:27:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a>  i do not… there are tons of options, which I guess you would expect.</p>
]]></description><link>https://forum.magicmirror.builders/post/52344</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52344</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 14 Feb 2019 11:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 14 Feb 2019 10:39:19 GMT]]></title><description><![CDATA[<p dir="auto">I have now used chartjs as well on the MMM-rain-forecast module by <a class="plugin-mentions-user plugin-mentions-a" href="/user/cirdan" aria-label="Profile: cirdan">@<bdi>cirdan</bdi></a> and SpoturDeal.</p>
<p dir="auto"><img src="/assets/uploads/files/1550140690703-6c9bcdf8-3165-4bba-b0c5-e9b16eade267-image.png" alt="0_1550140690475_6c9bcdf8-3165-4bba-b0c5-e9b16eade267-image.png" class=" img-fluid img-markdown" /><br />
I like it and there are some plugins to use as well.<br />
First results can be achieved very quickly, but if you want to change further specific things, it’s getting difficult with the various objects.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> do you know of a complete set of options for chartjs? I find the documentation a bit too short and confusing.</p>
]]></description><link>https://forum.magicmirror.builders/post/52343</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52343</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Thu, 14 Feb 2019 10:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 07 Feb 2019 12:25:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tarun" aria-label="Profile: tarun">@<bdi>tarun</bdi></a> well… basically to create charts from data …</p>
]]></description><link>https://forum.magicmirror.builders/post/51754</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51754</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Thu, 07 Feb 2019 12:25:41 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 07 Feb 2019 10:44:15 GMT]]></title><description><![CDATA[<p dir="auto">no i never use charting tool what is the function of that tool???</p>
]]></description><link>https://forum.magicmirror.builders/post/51751</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/51751</guid><dc:creator><![CDATA[Tarun]]></dc:creator><pubDate>Thu, 07 Feb 2019 10:44:15 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Sun, 27 Jan 2019 22:54:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I have no idea what you just said but I upvoted your post anyway. :-)</p>
]]></description><link>https://forum.magicmirror.builders/post/50972</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50972</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Sun, 27 Jan 2019 22:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Tue, 19 Feb 2019 11:04:29 GMT]]></title><description><![CDATA[<p dir="auto">I have updated the code now to improve performance…</p>
<ul>
<li>reduce number of data points, by decimation (using 1 point of every 5) to get to 800 points. See info once every 5th minutes, vs once a minute</li>
<li>build 800 point data from in memory CSV (api sends back csv data) by looking from NOW (end) til previous (backwards) which reduces the number of lines of data processed from 14000 to 4000 (configurable number of days for chart)</li>
<li>create a color gradient table start-end: color, start-end:color2… to draw multiple colors on chart, as part of the data selection in 1 and 2 above… this make the processor O(1) (single pass), instead of O(4)</li>
</ul>
<p dir="auto">performance is much improved…<br />
prior, 4000 points, elapsed time for 2 charts, 39 seconds. now 3.5 seconds (odroid).  pi crashed with 4000 points at 4 minutes elapsed… now just about 4.5 seconds</p>
]]></description><link>https://forum.magicmirror.builders/post/50934</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50934</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 19 Feb 2019 11:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Fri, 25 Jan 2019 23:19:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> i have over 4000 measurements in each chart.   (3 days, once a minute)</p>
<p dir="auto">still pretty  reasonable performance.</p>
<p dir="auto">update once every 5 minutes, or when come back from sleeping (no updates while MM is asleep).</p>
]]></description><link>https://forum.magicmirror.builders/post/50839</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50839</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 25 Jan 2019 23:19:40 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 24 Jan 2019 12:14:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thanks for sharing!!<br />
I’ll try that out with the rain-forecast module</p>
]]></description><link>https://forum.magicmirror.builders/post/50719</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50719</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Thu, 24 Jan 2019 12:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Mon, 28 Jan 2019 01:47:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a>  using chartjs and my own module.  my data is not in JSON format required by MMM-Charts</p>
<p dir="auto">here is the chartjs code<br />
i have an structure, with arrays of points (by the sensor value), javascript Date, and value.<br />
there are also arrays that contain the axis labels.</p>
<pre><code>make div for chart
	var c = document.createElement("div");	
	c.style.width=self.config.width+"px";
  	c.style.height=self.config.height+"px";
	if(!self.config.stacked)
	   c.style.display='inline-block';
	self.wrapper.appendChild(c);

        canvas= document.createElement("canvas");
 	canvas.id="myChart"+this_pin;
        c.appendChild(canvas);

for(var pin_index=0; 
      pin_index &lt; self.config.Pins.length;  (how do you do less than in markup?, space after &lt; )
      pin_index++)
{
var this_pin=self.config.Pins[pin_index];

       self.charts[pin_index] = new Chart(canvas, {
              type: 'line',
              showLine: true,							
              data: {
                datasets: [
                  {
		    xAxisID: 'dates',
                    data: self.data[this_pin], 
                    fill:true,
                    borderColor: '#2196f3', 
   		    backgroundColor: '#2196f3', 
	             },
                ]
              },
              options:	 { 
			legend: { display: false},
			tooltips: {
			    enabled: false,
			    displayColors: false
			  },
			responsive: false,
			elements: {
			    point: { radius: 0 },
			    line: {
        		        tension: 0, // disables bezier curves
			     }
        		},
                scales: {
                  xAxes: [{
			id: 'dates',
                    type: 'time',
			distribution: 'linear',
                    scaleLabel: {
                        display: true,
                        labelString: self.config.labels[pin_index]+" - last "+self.config.dayrange+" days",
			fontColor: 'white'
                    },
			gridLines: {
				display: false,
				zeroLineColor: '#ffcc33'
			},
  		        time: {
      		              unit: 'minute'
          		      },
			bounds: 'data',
                    ticks: {
			display: false ,
			maxRotation: 90,
			source: 'data',
			maxTicksLimit: self.data[this_pin].length,                    },
                  }],
                  yAxes: [{
                        display: true,
                        scaleLabel: {
                            display: true,
                            labelString: self.config.yaxis_legend[pin_index],
			    fontColor: 'white'
                        },
			gridLines: {
			   display: true,
			   color: "#FFFFFF",
			   zeroLineColor: '#ffcc33',
			   fontColor: 'white',									 
                           scaleFontColor: 'white',
			},

                    ticks: {
			beginAtZero: true,
			source: 'data',
                        min: 0,
			fontColor: 'white'
                    },
                    }]
                },
              }
            });
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/50716</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50716</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 28 Jan 2019 01:47:45 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 24 Jan 2019 08:11:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Looking good! How did you realize it? MMM-Chart? Chartjs and your own module?</p>
]]></description><link>https://forum.magicmirror.builders/post/50702</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50702</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Thu, 24 Jan 2019 08:11:03 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Thu, 24 Jan 2019 01:01:50 GMT]]></title><description><![CDATA[<p dir="auto">here are some pics of the two charts</p>
<p dir="auto">two charts upper right</p>
<p dir="auto"><img src="https://www.dropbox.com/s/2jwhkj69vjov7bk/IMG_20190123_185405.jpg?dl=1" alt="two" class=" img-fluid img-markdown" /></p>
<p dir="auto">two charts closer view<br />
<img src="https://www.dropbox.com/s/eg0u6gr0lkreo4y/IMG_20190123_185358.jpg?dl=1" alt="two closer" class=" img-fluid img-markdown" /></p>
<p dir="auto">one chart<br />
<img src="https://www.dropbox.com/s/e0x1fqq7ckkr8it/IMG_20190123_185421.jpg?dl=1" alt="one chart" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/50693</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50693</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 24 Jan 2019 01:01:50 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Wed, 23 Jan 2019 17:40:24 GMT]]></title><description><![CDATA[<p dir="auto">ok, well, this was user error…</p>
<p dir="auto">while I had an array for time based points, ONE element in the array was JUST a single value.</p>
<p dir="auto">this caused the charting tool to act weird…</p>
<p dir="auto">fixing the one data point resolved the issue…</p>
<p dir="auto">now, I want to change the  color of the fill area under certain conditions (low reservoir, or constant running water) to alert about trouble to be resolved…looks like that is some custom extension i have to write…</p>
]]></description><link>https://forum.magicmirror.builders/post/50676</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50676</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 23 Jan 2019 17:40:24 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Mon, 21 Jan 2019 22:25:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> said in <a href="/post/50562">has anyone used any of the charting tools, like chartjs?</a>:</p>
<blockquote>
<p dir="auto">MMM-chart,</p>
</blockquote>
<p dir="auto">thanks… my data does not come back in JSON… but as CSV. with a unix milliseconds  timestamp.</p>
<p dir="auto">one data set is a float value (could be truncated to int), one is an int.</p>
]]></description><link>https://forum.magicmirror.builders/post/50570</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50570</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 21 Jan 2019 22:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Mon, 21 Jan 2019 21:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Well well I was googling “chartjs” about the minute you wrote this down today! Ha! Great.<br />
I’d like to use it to make some amendments to MMM-rain-forecast and maybe get in my own graph.<br />
Have you seen MMM-chart, a MM cahrt template, which also seems to have examples of applications like yours.<br />
I haven’t taken a  close look into any of it but I’ll do soon.<br />
Cheers and good luck!</p>
]]></description><link>https://forum.magicmirror.builders/post/50562</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50562</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Mon, 21 Jan 2019 21:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Mon, 21 Jan 2019 21:04:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> not too fond of jquery too. Had to add labels in a creative way. But looks like you are on your way to a chartjs implementation. No experience with that. I would like to see the result though. Perhaps I can rewrite mmm-rainfc. Also when you get stuck, a svg solution is also an possibility…user spotyourdeal did a rewrite of the sparkline into svg for mmm-rainfc</p>
]]></description><link>https://forum.magicmirror.builders/post/50561</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50561</guid><dc:creator><![CDATA[cirdan]]></dc:creator><pubDate>Mon, 21 Jan 2019 21:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Mon, 21 Jan 2019 20:34:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cirdan" aria-label="Profile: cirdan">@<bdi>cirdan</bdi></a> thanks… trying to stay away from jquery… and the chartjs works fine with 5 or 10 points…</p>
<p dir="auto">i have made some progress. the chart appears and has the right axis labels and values…</p>
<p dir="auto">the chart itself is drawn wrong…   with the jagged line across the x-axis at the right Y-axis height, being drawn vertically on the right edge of the chart, top to bottom…</p>
]]></description><link>https://forum.magicmirror.builders/post/50559</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50559</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 21 Jan 2019 20:34:51 GMT</pubDate></item><item><title><![CDATA[Reply to has anyone used any of the charting tools, like chartjs? on Mon, 21 Jan 2019 20:29:26 GMT]]></title><description><![CDATA[<p dir="auto">Mmm rainfc uses jquery sparkline.</p>
<p dir="auto"><a href="https://github.com/73cirdan/MMM-rainfc" target="_blank" rel="noopener noreferrer nofollow ugc">Mmm-rainfc at git</a></p>
]]></description><link>https://forum.magicmirror.builders/post/50558</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/50558</guid><dc:creator><![CDATA[cirdan]]></dc:creator><pubDate>Mon, 21 Jan 2019 20:29:26 GMT</pubDate></item></channel></rss>