Skip to content

Commit

Permalink
html_plot improvements: fix title; improve plot highlight contents to…
Browse files Browse the repository at this point in the history
… include series name and improve readability a bit
  • Loading branch information
japhb committed May 27, 2013
1 parent 8dad53a commit a3e6fb9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions analyze
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ sub summarize_results_html_plot {
my $html = <<'PLOT_HEADER';
<html>
<head>
<title>jqPlot test</title>
<title>Benchmark Plots</title>
<link rel="stylesheet" type="text/css" href="jqplot/jquery.jqplot.min.css" />
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="jqplot/excanvas.min.js"></script><![endif]-->
<script type="text/javascript" src="jqplot/jquery.min.js"></script>
Expand All @@ -515,7 +515,10 @@ sub summarize_results_html_plot {
yvalues: 2,
tooltipAxes: "y",
tooltipLocation: "n",
formatString: "<strong>%.1f</strong> per second<br><strong>%.0f</strong>x slower than fastest"
formatString: "<strong>%.1f</strong> per second<br><strong>%.0f</strong>x slower than fastest",
tooltipContentEditor: function (str, i, j) {
return '<span class="highlight-series-label">' + series_labels[i] + '</span><br>' + str;
}
},
legend: {
renderer: $.jqplot.EnhancedLegendRenderer,
Expand Down Expand Up @@ -566,9 +569,11 @@ sub summarize_results_html_plot {
}
</script>
<style type="text/css">
.bench_ver { font-family: monospace; }
.bench_start_time { font-family: monospace; }
.jqplot-highlighter-tooltip, .jqplot-canvasOverlay-tooltip { background: rgba(208,208,208,1) !important; }
.bench_ver { font-family: monospace; }
.bench_start_time { font-family: monospace; }
.jqplot-highlighter-tooltip,
.jqplot-canvasOverlay-tooltip { background: #eee !important; }
.highlight-series-label { color: blue; font-weight: bold; }
</style>
</head>
Expand Down

0 comments on commit a3e6fb9

Please sign in to comment.