From 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 13 Jul 2018 19:06:45 +0200 Subject: Fixed many permissions and began admin interface --- .../morris.js/examples/decimal-custom-hover.html | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 public/bower_components/morris.js/examples/decimal-custom-hover.html (limited to 'public/bower_components/morris.js/examples/decimal-custom-hover.html') diff --git a/public/bower_components/morris.js/examples/decimal-custom-hover.html b/public/bower_components/morris.js/examples/decimal-custom-hover.html new file mode 100644 index 0000000..b168aa7 --- /dev/null +++ b/public/bower_components/morris.js/examples/decimal-custom-hover.html @@ -0,0 +1,37 @@ + +
+ + + + + + + + + + ++var decimal_data = []; +for (var x = 0; x <= 360; x += 10) { + decimal_data.push({ + x: x, + y: 1.5 + 1.5 * Math.sin(Math.PI * x / 180).toFixed(4) + }); +} +window.m = Morris.Line({ + element: 'graph', + data: decimal_data, + xkey: 'x', + ykeys: ['y'], + labels: ['sin(x)'], + parseTime: false, + hoverCallback: function (index, options, default_content, row) { + return default_content.replace("sin(x)", "1.5 + 1.5 sin(" + row.x + ")"); + }, + xLabelMargin: 10, + integerYLabels: true +}); ++ -- cgit v1.2.3