#23-Removing unnecessary code
This commit is contained in:
parent
f3df5f5ad1
commit
2c1350e96f
@ -79,44 +79,6 @@
|
||||
$('#container').highcharts(json);
|
||||
});
|
||||
</script>
|
||||
<!-- <script th:inline="javascript">-->
|
||||
<!-- $(document).ready(function () {-->
|
||||
<!-- var chart = {-->
|
||||
<!-- plotBackgroundColor: null,-->
|
||||
<!-- plotBorderWidth: null,-->
|
||||
<!-- plotShadow: false-->
|
||||
<!-- };-->
|
||||
<!-- var title = {-->
|
||||
<!-- text: '% коммитов авторов'-->
|
||||
<!-- };-->
|
||||
<!-- var tooltip = {-->
|
||||
<!-- pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'-->
|
||||
<!-- };-->
|
||||
<!-- var plotOptions = {-->
|
||||
<!-- pie: {-->
|
||||
<!-- allowPointSelect: true,-->
|
||||
<!-- cursor: 'pointer',-->
|
||||
<!-- dataLabels: {-->
|
||||
<!-- enabled: false-->
|
||||
<!-- },-->
|
||||
<!-- showInLegend: true-->
|
||||
<!-- }-->
|
||||
<!-- };-->
|
||||
<!-- var series = [{-->
|
||||
<!-- type: 'pie',-->
|
||||
<!-- name: 'Browser share',-->
|
||||
<!-- data: [[${commitAuthorData}]]-->
|
||||
<!-- }];-->
|
||||
|
||||
<!-- var json = {};-->
|
||||
<!-- json.chart = chart;-->
|
||||
<!-- json.title = title;-->
|
||||
<!-- json.tooltip = tooltip;-->
|
||||
<!-- json.series = series;-->
|
||||
<!-- json.plotOptions = plotOptions;-->
|
||||
<!-- $('#containerPie').highcharts(json);-->
|
||||
<!-- });-->
|
||||
<!-- </script>-->
|
||||
<script th:inline="javascript">
|
||||
$(document).ready(function () {
|
||||
var chart = {
|
||||
@ -175,47 +137,7 @@
|
||||
});
|
||||
</script>
|
||||
<script th:inline="javascript">
|
||||
$(document).ready(function () {
|
||||
var chart = {
|
||||
plotBackgroundColor: null,
|
||||
plotBorderWidth: null,
|
||||
plotShadow: false
|
||||
};
|
||||
var title = {
|
||||
text: '% коммитов содержащих сущности'
|
||||
};
|
||||
var tooltip = {
|
||||
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
||||
};
|
||||
var plotOptions = {
|
||||
pie: {
|
||||
allowPointSelect: true,
|
||||
cursor: 'pointer',
|
||||
dataLabels: {
|
||||
enabled: false
|
||||
},
|
||||
showInLegend: true
|
||||
}
|
||||
};
|
||||
var series = [{
|
||||
type: 'pie',
|
||||
name: 'Browser share',
|
||||
data: [[${commitEntityData}]]
|
||||
}];
|
||||
|
||||
var json = {};
|
||||
json.chart = chart;
|
||||
json.title = title;
|
||||
json.tooltip = tooltip;
|
||||
json.series = series;
|
||||
json.plotOptions = plotOptions;
|
||||
$('#containerEntityPie').highcharts(json);
|
||||
});
|
||||
</script>
|
||||
<script th:inline="javascript">
|
||||
document.getElementById('pie')
|
||||
|
||||
function createPie(idElement, data, title) {
|
||||
function createPie(data, title) {
|
||||
var chart = {
|
||||
plotBackgroundColor: null,
|
||||
plotBorderWidth: null,
|
||||
@ -249,18 +171,18 @@
|
||||
json.tooltip = tooltip;
|
||||
json.series = series;
|
||||
json.plotOptions = plotOptions;
|
||||
$('#containerPie').highcharts(json);
|
||||
return json;
|
||||
};
|
||||
// createPie([[${commitEntityData}]], '#containerEntityPie_');
|
||||
// createPie([[${commitAuthorData}]],'#containerPie_');
|
||||
$(document).ready(createPie('pieSuper', [[${commitAuthorData}]], 'title'));
|
||||
$(document).ready(function () {
|
||||
$('#containerPie').highcharts(createPie([[${commitAuthorData}]], '% коммитов авторов'));
|
||||
$('#containerEntityPie').highcharts(createPie([[${commitEntityData}]], '% коммитов содержащих сущности'));
|
||||
});
|
||||
</script>
|
||||
<div class="row">
|
||||
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
|
||||
<div id="containerPie" style="width: 550px; height: 400px; margin: 0 auto"></div>
|
||||
<div id="containerColumn" style="width: 550px; height: 400px; margin: 0 auto"></div>
|
||||
<div id="containerEntityPie" style="width: 550px; height: 400px; margin: 0 auto"></div>
|
||||
<div id="pieSuper" style="width: 550px; height: 400px; margin: 0 auto"></div>
|
||||
</div>
|
||||
</div>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user