Commit f1ab6709 authored by Jan Kiene's avatar Jan Kiene
Browse files

improve hover tooltips a bit

parent c8c84111
Loading
Loading
Loading
Loading
Loading
+19 −16
Original line number Diff line number Diff line
@@ -477,15 +477,19 @@

            previousPoint = item.datapoint;
            $("#tooltip").remove();
            if(item.series.id != "requirement"){ 
            var x = item.datapoint[0];
            var y = item.datapoint[1];
              var text = 'Score: ' + y;

            var text = "<u><b>" + item.series.id + "</b></u><br>"
            text += 'Score: ' + y;

            if (graph.direction == -1)
              text += " WMOPS";
            text += "<br>";

            // add more info only if not a reference line
            if ( !item.series.id.includes("EVS") )
            {
              if (x > 0) {
                var thisValue = parseFloat(y);
                var prevValue = parseFloat(item.series.data[x - 1, x - 1][1]);
@@ -539,10 +543,7 @@
              text += "Revision: " + graph.runs[x].revision + "<br>";
              text += "Date: "  + graph.runs[x].fullDate + "<br>";
              text += "Fixpoint scal. fac. to reach 138 WMOPS: " + graph.runs[x].fixpointScalingFac + "<br><br>";

              text += "<a href=\"logs/" + graph.runs[x].logFile + "\">Logfile</a><br>";
            } else {
              text = "Complexity requirement: 135 WMOPS";
            }

	    showToolTip(item.pageX, item.pageY, text);
@@ -659,7 +660,7 @@ function WMOPS_perOP() {

        var text = "";

        text += "Mode: " + Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x].operatingPoint + "<br><br>";
        text += "<b><u>Mode: " + Graphs_WMOPS_perOP.wmops_worstcase_per_op.runs[x].operatingPoint + "</u></b><br>";

        text += 'Score: ' + Math.round(y * 100) / 100;
        if (graph.direction == -1)
@@ -760,7 +761,8 @@ function RAM() {

              var x = item.datapoint[0];
              var y = item.datapoint[1];
              var text = 'Score: ' + y;
              var text = "<u><b>" + item.series.id + "</b></u><br>"
              text += 'Score: ' + y;

              if (graph.direction == -1)
                text += " bytes";
@@ -921,7 +923,8 @@ function ROM() {
            { 
              var x = item.datapoint[0];
              var y = item.datapoint[1];
              var text = 'Score: ' + y;
              var text = "<u><b>" + item.series.id + "</b></u><br>"
              text += 'Score: ' + y;

              if (graph.direction == -1)
                text += " bytes";