[JM] Nov-16-2011 Some links for [jcw]'s technical weblog, Tcl related in a very interesting way...<
> an inspiring site, to learn, to experiment, to share...<
> <
> Main Link: http://jeelabs.org <
> &|Inside JeeMon |2009/04/14|http://jeelabs.org/2009/04/14/inside-jeemon/%|%%|% |& &|Sensor data coming in |2009/08/25|http://jeelabs.org/2009/08/25/sensor-data-coming-in/%|%%|% |& &|Playing with indentation |2011/09/09| http://jeelabs.org/2011/09/09/playing-with-indentation/%|%%|% |& &|RFM12B Command Calculator|2011/09/18| http://jeelabs.org/2011/09/18/rfm12b-command-calculator/%|%%|% |& &|Hacking around in software|2011/09/24| http://jeelabs.org/2011/09/24/hacking-around-in-software/%|%%|% |& &|JeeMon? JeeBus? JeeRev? |2011/11/22|http://jeelabs.org/2011/11/22/jeemon-jeebus-jeerev/%|%%|% |& &|What’s in the yellow box? |2011/11/23|http://jeelabs.org/2011/11/23/whats-in-the-yellow-box/%|%%|% |& &|JeeRev sits under the hood|2011/11/24|http://jeelabs.org/2011/11/24/jeerev-sits-under-the-hood/%|%%|% |& &|JeeMon for early birds |2011/11/25|http://jeelabs.org/2011/11/25/jeemon-for-early-birds/%|%%|% |& ***Playing with JeeMon*** As I don't have any hardware to collect data, I had to replace the following part on /examples/chart-demo/main.tcl, in order to get the flot chart displayed: variable js { var options = { lines: { show: true }, points: { show: true }, xaxis: { mode: "time" }, legend: { position: "nw", margin: 3 }, shadowSize: 0, grid: { borderWidth: 1, borderColor: "#bbbbbb" }, series: { lines: { lineWidth: 1 }, points: { radius: 0.5 }, } }; $.getJSON('data.json', function(data) { $.plot($("#placeholder"), data, options); }); } with this: variable js { var options = { lines: { show: true }, points: { show: true }, xaxis: { mode: "time" }, legend: { position: "nw", margin: 3 }, shadowSize: 0, grid: { borderWidth: 1, borderColor: "#bbbbbb" }, series: { lines: { lineWidth: 1 }, points: { radius: 0.5 }, } }; $(function () { var d1 = []; for (var i = 0; i < 14; i += 0.5) d1.push([i, Math.sin(i)]); var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]]; // a null signifies separate line segments var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]]; $.plot($("#placeholder"), [ d1, d2, d3 ],options); }); } <> Hardware | HTML