commit
4a666d6972
@ -1,76 +1,80 @@
|
|||||||
<%= javascript_include_tag 'highcharts','highcharts-more' %>
|
<%= javascript_include_tag 'highcharts','highcharts-more' %>
|
||||||
<div class="project_r_h">
|
<div class="project_r_h">
|
||||||
<h2 class="project_h2"><%= l(:label_quality_analyses) %></h2>
|
<h2 class="project_h2"><%= l(:label_quality_analyses) %></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="repository_con " style="line-height:1.9;">
|
<div class="repository_con " style="line-height:1.9;">
|
||||||
<%#= render :partial => 'navigation' %>
|
<%#= render :partial => 'navigation' %>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id = "container">
|
<div id = "container">
|
||||||
</div>
|
</div>
|
||||||
<div id = "container_quality" class="mt30">
|
<div id = "container_quality" class="mt30">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
$('#container').highcharts({
|
$('#container').highcharts({
|
||||||
chart: {
|
chart: {
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
options3d: {
|
options3d: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
alpha: 45,
|
alpha: 45,
|
||||||
beta: 0
|
beta: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
text: 'Browser market shares at a specific website, 2014'
|
text: 'Browser market shares at a specific website, 2014'
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
||||||
},
|
},
|
||||||
plotOptions: {
|
plotOptions: {
|
||||||
pie: {
|
pie: {
|
||||||
allowPointSelect: true,
|
allowPointSelect: true,
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
depth: 35,
|
depth: 35,
|
||||||
dataLabels: {
|
dataLabels: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
format: '{point.name}'
|
format: '{point.name}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
series: [{
|
series: [{
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
name: 'Browser share',
|
name: 'Browser share',
|
||||||
data: [
|
data: [
|
||||||
['Firefox', 45.0],
|
['Firefox', 45.0],
|
||||||
['IE', 26.8],
|
['IE', 26.8],
|
||||||
{
|
{
|
||||||
name: 'Chrome',
|
name: 'Chrome',
|
||||||
y: 12.8,
|
y: 12.8,
|
||||||
sliced: true,
|
sliced: true,
|
||||||
selected: true
|
selected: true
|
||||||
},
|
},
|
||||||
['Safari', 8.5],
|
['Safari', 8.5],
|
||||||
['Opera', 6.2],
|
['Opera', 6.2],
|
||||||
['Others', 0.7]
|
['Others', 0.7]
|
||||||
],
|
],
|
||||||
dataLabels: {
|
dataLabels: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
style: {
|
style: {
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
color: '#aaa',
|
color: '#aaa',
|
||||||
fontFamily: 'Arial',
|
fontFamily: 'Arial',
|
||||||
textShadow: '0px 0px 6px rgb(0, 0, 0), 0px 0px 3px rgb(f, f, f)',
|
textShadow: '0px 0px 6px rgb(0, 0, 0), 0px 0px 3px rgb(f, f, f)',
|
||||||
fontWeight: 'normal'
|
fontWeight: 'normal'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>
|
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>
|
||||||
<% html_title(l(:label_repository), l(:label_statistics)) -%>
|
<% html_title(l(:label_repository), l(:label_statistics)) -%>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
|
</script>
|
Loading…
Reference in new issue