Skip to content

Commit

Permalink
Merge pull request #64 from moorereason/update-chartjs
Browse files Browse the repository at this point in the history
Update chartjs to 4.4.2
  • Loading branch information
tierpod authored Jun 17, 2024
2 parents f32bac1 + 783f4b0 commit 86a9937
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 28 deletions.
10 changes: 0 additions & 10 deletions assets/js/Chart.min.js

This file was deleted.

20 changes: 20 additions & 0 deletions assets/js/chart.umd.min.js

Large diffs are not rendered by default.

39 changes: 22 additions & 17 deletions assets/js/dmarc-report-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,20 @@ $(document).ready(function(){
}]
},
options: {
title: {
display: true,
text: 'messages count per hostnames',
aspectRatio: 2,
plugins: {
legend: {
display: false,
},
title: {
display: true,
text: 'messages count per hostnames',
},
},
scales: {
yAxes: [{
y: {
display: false,
}]
},
legend: {
display: false,
}
},
}
});
Expand All @@ -76,18 +79,20 @@ $(document).ready(function(){
}],
},
options: {
title: {
display: true,
text: 'pass/fail messages',
aspectRatio: 2,
plugins: {
legend: {
display: false,
},
title: {
display: true,
text: 'pass/fail messages',
},
},
scales: {
yAxes: [{
y: {
display: false,
}]
},
legend: {
display: false,
// position: 'right'
}
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion cmd/dmarc-report-converter/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ table.table.bottomless
<body>
<script src="{{.AssetsPath}}/js/jquery-3.7.1.min.js"></script>
<script src="{{.AssetsPath}}/js/bootstrap.min.js"></script>
<script src="{{.AssetsPath}}/js/Chart.min.js"></script>
<script src="{{.AssetsPath}}/js/chart.umd.min.js"></script>
<script src="{{.AssetsPath}}/js/dmarc-report-converter.js"></script>
` + htmlMain + `
</body>
Expand Down

0 comments on commit 86a9937

Please sign in to comment.