Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/* setup the chart and its options */
|
||||
var chart = nv.models.lineChart()
|
||||
.color(d3.scale.category10().range())
|
||||
.margin({left: 75, bottom: 100})
|
||||
.forceX([0]).forceY([0]);
|
||||
|
||||
chart.x(function(datum){ return datum.r; })
|
||||
.xAxis.options({
|
||||
axisLabel: customSettings.XLABEL || 'Changeset',
|
||||
tickFormat: d3.format('.0f')
|
||||
});
|
||||
chart.xAxis
|
||||
.tickValues(changesets_count)
|
||||
.tickFormat(function(d){return changesets[d]})
|
||||
.rotateLabels(-90);
|
||||
|
||||
chart.y(function(datum){ return datum.v; })
|
||||
.yAxis.options({
|
||||
axisLabel: customSettings.YLABEL || 'GFlops'/*,
|
||||
tickFormat: function(val){ return d3.format('.0f')(val) + ' GFlops'; }*/
|
||||
});
|
||||
|
||||
chart.tooltip.headerFormatter(function(d) { return changesets[d]
|
||||
+ ' <p style="font-weight:normal;text-align: left;">'
|
||||
+ changesets_details[d] + "</p>"; });
|
||||
|
||||
//chart.useInteractiveGuideline(true);
|
||||
d3.select('#chart').datum(data).call(chart);
|
||||
var plot = d3.select('#chart > g');
|
||||
|
||||
/* setup the title */
|
||||
plot.append('text')
|
||||
.style('font-size', '24px')
|
||||
.attr('text-anchor', 'middle').attr('x', '50%').attr('y', '20px')
|
||||
.text(customSettings.TITLE || '');
|
||||
|
||||
/* ensure the chart is responsive */
|
||||
nv.utils.windowResize(chart.update);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Eigen performance monitoring</title>
|
||||
<style type="text/css">
|
||||
|
||||
body
|
||||
{
|
||||
background:#fff;
|
||||
}
|
||||
th {
|
||||
|
||||
}
|
||||
img
|
||||
{
|
||||
width:auto;
|
||||
box-shadow:0px 0px 20px #cecece;
|
||||
margin: 20px 20px 20px 20px;
|
||||
-moz-transform: scale(1);
|
||||
-moz-transition-duration: 0.4s;
|
||||
-webkit-transition-duration: 0.4s;
|
||||
-webkit-transform: scale(1);
|
||||
|
||||
-ms-transform: scale(1);
|
||||
-ms-transition-duration: 0.4s;
|
||||
}
|
||||
img:hover
|
||||
{
|
||||
box-shadow: 5px 5px 20px #dcdcdc;
|
||||
-moz-transform: scale(1.1);
|
||||
-moz-transition-duration: 0.4s;
|
||||
-webkit-transition-duration: 0.4s;
|
||||
-webkit-transform: scale(1.1);
|
||||
|
||||
-ms-transform: scale(1.1);
|
||||
-ms-transition-duration: 0.4s;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user