@cryptotaxi247 / netdata-1 / commits / aa8a640a5

adjusted chart sizes for apps.plugin

Costa Tsaousis (ktsaou) committed Feb 6, 2016 at 07:09 UTC aa8a640a59d4c830801d8cfa1727c6e060c6d9c9
1 file changed +8 -8
web/index.html
+8 -8
@@ -428,14 +428,14 @@
428 <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> tries to visualize the truth of <b>now</b>, in its <b>greatest detail</b>, so that you can get insights of what is happening now and what just happened, on your systems and applications.
429 </div>
430 <div class="p">
431 - To make a chart in <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b>, you just need a <b>number</b>. Just a number you can read somehow. <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> will turn this number to a real time, interactive, web chart. For collecting these numbers, it supports <a href="https://github.com/firehol/netdata/tree/master/plugins.d" target="_blank">external plugins</a>, even <a href="https://github.com/firehol/netdata/tree/master/charts.d" target="_blank">bash shell plugins</a>. Any computer program, in any language, that can print a few lines of text on its standard output, can be a netdata data collector.
431 + To make a chart in <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b>, you just need a <b>number</b>. Just a number you can read somehow. <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> will turn this number to a real time, interactive, web chart. For collecting these numbers, it supports <a href="https://github.com/firehol/netdata/wiki/External-Plugins" target="_blank">external plugins</a>, even <a href="https://github.com/firehol/netdata/wiki/General-Info---charts.d" target="_blank">shell</a> or <a href="https://github.com/firehol/netdata/wiki/General-Info---charts.d" target="_blank">node.js</a> plugins. Any computer program, in any language, that can print a few lines of text on its standard output, can be a netdata data collector.
432 </div>
433 <div class="p">
434 <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> can embed charts everywhere, like this one <div data-netdata="system.cpu" data-dimensions="system" data-after="-120" data-width="25%" data-height="15px" data-chart-library="dygraph" data-dygraph-theme="sparkline" data-show-value-of-system-at="system.cpu.system.modal.1"></div> (my CPU system usage which is <span id="system.cpu.system.modal.1" style="display: inline-block; width: 40px; text-align: right;"></span>%),
435 or this one <div data-netdata="ipv4.tcppackets" data-dimensions="received" data-after="-120" data-width="25%" data-height="15px" data-chart-library="dygraph" data-dygraph-theme="sparkline" data-show-value-of-received-at="ipv4.tcppackets.received.modal.1"></div> (my IPv4 received TCP packets, which are <span id="ipv4.tcppackets.received.modal.1" style="display: inline-block; width: 60px; text-align: right;"></span>/second).
436 </div>
437 <div class="p">
438 - You can have <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> charts on your site too. Just give it a <code>div</code> and a real time chart, zoomable and draggable will appear (try it even on these tiny ones - <b>drag</b> them to pan horizontally, <b>shift + drag</b> to zoom in, on <b>chrome shift + mouse wheel</b> to zoom in/out, <b>double click</b> on them to reset them - don't be afraid of <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> performance - <a href="https://github.com/firehol/netdata/issues/36" target="_blank">a raspberry pi 2 can sustain 300 charts updates per second</a>!).
438 + You can have <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> charts on your site too. Just give it a <code>div</code> and a real time chart, zoomable and draggable will appear (try it even on these tiny ones - <b>drag</b> them to pan horizontally, <b>shift + drag</b> to zoom in, on <b>chrome shift + mouse wheel</b> to zoom in/out, <b>double click</b> on them to reset them - don't be afraid of <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata</a></b> performance - <a href="https://github.com/firehol/netdata/wiki/Performance" target="_blank">a raspberry pi 2 can sustain 300 charts updates per second</a>!).
439 </div>
440 <div class="p">
441 For more information please refer to the <b><a href="https://github.com/firehol/netdata/wiki" target="_blank">netdata wiki</a></b>.
@@ -1219,13 +1219,13 @@ function prepareScreen(data) {
1219 else if(t.name === 'apps') {
1220 $.each(t.charts, function(x, f) {
1221 var c = null;
1222 - var h = options.chartsHeight / 2;
1222 + var h = Math.round(options.chartsHeight * 1.5);
1223 switch(f.id) {
1224 - case 'apps.cpu' : h = options.chartsHeight; break;
1225 - case 'apps.preads' : h = options.chartsHeight; break;
1226 - case 'apps.pwrites' : h = options.chartsHeight; break;
1227 - case 'apps.mem' : h = options.chartsHeight; break;
1228 - case 'apps.major_faults': h = options.chartsHeight; break;
1224 + case 'apps.cpu' : h = Math.round(options.chartsHeight * 2); break;
1225 + case 'apps.preads' : h = Math.round(options.chartsHeight * 2); break;
1226 + case 'apps.pwrites' : h = Math.round(options.chartsHeight * 2); break;
1227 + case 'apps.mem' : h = Math.round(options.chartsHeight * 2); break;
1228 + case 'apps.major_faults': h = Math.round(options.chartsHeight * 2); break;
1229 }
1230
1231 html += getMessage(f.id) + '<div data-netdata="' + f.id + '"'