<!DOCTYPE html>
<html>
<head>
<title>缺陷概要 - 按'状态'分组</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="/static/easyui/jquery.min.js">
</script>
<script type="text/javascript" src="/static/easyui/jquery.easyui.min.js">
</script>
<script type="text/javascript" src="/static/easyui/locale/easyui-lang-zh_CN.js">
</script>
<link rel="stylesheet" type="text/css" href="/static/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="/static/easyui/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="/static/css/baseCss.css" />
<link rel="stylesheet" type="text/css" href="/static/style/syExtCss.css" />
<link rel="stylesheet" type="text/css" href="/static/style/syExtIcon.css" />
<script type="text/javascript" src="/static/Highcharts-4.0.1/js/highcharts.js" charset="utf-8">
</script>
<script type="text/javascript" src="/static/Highcharts-4.0.1/js/modules/exporting.js" charset="utf-8">
</script>
<script type="text/javascript" src="/static/js/sysUtils.js" charset="utf-8">
</script>
<script type="text/javascript" src="/static/js/jquery.cookie.js" charset="utf-8">
</script>
<script type="text/javascript">
$(function(){
$.getJSON("/autoTest/getAllBugInfo/?title=DEMO_自动化测试", function(r){
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: "缺陷概要 - 按'状态'分组"
},
xAxis: {
categories: r.categories
},
yAxis: {
min: 0,
title: {
text: '缺陷数'
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
legend: {
align: 'right',
x: -70,
verticalAlign: 'top',
y: 20,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
formatter: function(){
return '<b>' + this.x + '</b><br/>' +
this.series.name +
': ' +
this.y +
'<br/>' +
'Total: ' +
this.point.stackTotal;
}
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
// enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
style: {
textShadow: '0 0 3px black, 0 0 3px black'
}
}
}
},
series: [{
name: '新建',
data: r.data.新建
}, {
name: '打开',
data: r.data.打开
}, {
name: '拒绝',
data: r.data.拒绝
}, {
name: '已修正',
data: r.data.已修正
}, {
name: '已关闭',
data: r.data.已关闭
}, {
name: '重新打开',
data: r.data.重新打开
}]
});
});
});
</script>
</head>
<body>
<script src="../Highcharts-4.0.1/js/highcharts.js">
</script>
<script src="../Highcharts-4.0.1/js/modules/exporting.js">
</script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto">
</div>
</body>
</html>
<html>
<head>
<title>缺陷概要 - 按'状态'分组</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="/static/easyui/jquery.min.js">
</script>
<script type="text/javascript" src="/static/easyui/jquery.easyui.min.js">
</script>
<script type="text/javascript" src="/static/easyui/locale/easyui-lang-zh_CN.js">
</script>
<link rel="stylesheet" type="text/css" href="/static/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="/static/easyui/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="/static/css/baseCss.css" />
<link rel="stylesheet" type="text/css" href="/static/style/syExtCss.css" />
<link rel="stylesheet" type="text/css" href="/static/style/syExtIcon.css" />
<script type="text/javascript" src="/static/Highcharts-4.0.1/js/highcharts.js" charset="utf-8">
</script>
<script type="text/javascript" src="/static/Highcharts-4.0.1/js/modules/exporting.js" charset="utf-8">
</script>
<script type="text/javascript" src="/static/js/sysUtils.js" charset="utf-8">
</script>
<script type="text/javascript" src="/static/js/jquery.cookie.js" charset="utf-8">
</script>
<script type="text/javascript">
$(function(){
$.getJSON("/autoTest/getAllBugInfo/?title=DEMO_自动化测试", function(r){
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: "缺陷概要 - 按'状态'分组"
},
xAxis: {
categories: r.categories
},
yAxis: {
min: 0,
title: {
text: '缺陷数'
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
legend: {
align: 'right',
x: -70,
verticalAlign: 'top',
y: 20,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
formatter: function(){
return '<b>' + this.x + '</b><br/>' +
this.series.name +
': ' +
this.y +
'<br/>' +
'Total: ' +
this.point.stackTotal;
}
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
// enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
style: {
textShadow: '0 0 3px black, 0 0 3px black'
}
}
}
},
series: [{
name: '新建',
data: r.data.新建
}, {
name: '打开',
data: r.data.打开
}, {
name: '拒绝',
data: r.data.拒绝
}, {
name: '已修正',
data: r.data.已修正
}, {
name: '已关闭',
data: r.data.已关闭
}, {
name: '重新打开',
data: r.data.重新打开
}]
});
});
});
</script>
</head>
<body>
<script src="../Highcharts-4.0.1/js/highcharts.js">
</script>
<script src="../Highcharts-4.0.1/js/modules/exporting.js">
</script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto">
</div>
</body>
</html>