|
|
|
@ -7,10 +7,9 @@
|
|
|
|
|
<p>file_complexity: <%= @complexity["msr"][6]["frmt_val"] %></p>
|
|
|
|
|
<p>class_complexity: <%= @complexity["msr"][7]["frmt_val"] %></p>
|
|
|
|
|
<p>function_complexity: <%= @complexity["msr"][8]["frmt_val"] %></p>
|
|
|
|
|
|
|
|
|
|
<%= javascript_include_tag 'highcharts','highcharts-more' %>
|
|
|
|
|
<script>
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
|
|
$('#container_complex').highcharts({
|
|
|
|
|
|
|
|
|
|
chart: {
|
|
|
|
@ -20,10 +19,10 @@
|
|
|
|
|
plotBorderWidth: 0,
|
|
|
|
|
plotShadow: false
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
title: {
|
|
|
|
|
text: 'Speedometer'
|
|
|
|
|
},
|
|
|
|
|
//
|
|
|
|
|
// title: {
|
|
|
|
|
// text: '复杂度'
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
pane: {
|
|
|
|
|
startAngle: -150,
|
|
|
|
@ -140,7 +139,8 @@
|
|
|
|
|
<p class="fontGrey3 mt15">质量等级</p>
|
|
|
|
|
<p class="fontBlue2 pr">A<span class="f8 c_white analysis-genral-icon b_green2 borderRadius">正常</span></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="analysis-genral" id="container_complex">
|
|
|
|
|
<div class="analysis-genral" >
|
|
|
|
|
<p id="container_complex">复杂度</p>
|
|
|
|
|
<p class="fontGrey3 mt15">复杂度</p>
|
|
|
|
|
<p class="fontBlue2 pr">44<span class="f8 c_white analysis-genral-icon b_green2 borderRadius">正常</span></p>
|
|
|
|
|
</div>
|
|
|
|
|