Skip to content

Commit

Permalink
Move covmanager graph to d3
Browse files Browse the repository at this point in the history
  • Loading branch information
gitstart-app[bot] authored Jan 8, 2025
1 parent 39db4f8 commit 6312157
Show file tree
Hide file tree
Showing 8 changed files with 383 additions and 216 deletions.
17 changes: 0 additions & 17 deletions server/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion server/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"dependencies": {
"axios": "^1.6.7",
"chart.js": "^4.4.7",
"d3": "^7.8.5",
"floating-vue": "^2.0.0",
"handlebars": "^4.7.8",
Expand Down
9 changes: 4 additions & 5 deletions server/frontend/src/components/Covmanager/Browse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@
<div v-show="search">
<input ref="search" v-model="search" type="text" class="form-control" />
</div>
<line-chart
v-if="chartdata"
:chartdata="chartdata"
style="height: 50vh"
></line-chart>
<line-chart v-if="chartdata" :chartdata="chartdata"></line-chart>
<table class="table table-condensed table-hover table-db">
<thead>
<tr>
Expand Down Expand Up @@ -450,6 +446,7 @@ export default defineComponent({
this.chartdata["labels"] = [];
this.chartdata["datasets"] = [
{
id: 1,
label: "Total Coverage (%)",
borderColor: "#f87979",
fill: "false",
Expand All @@ -462,6 +459,7 @@ export default defineComponent({
unit: "%",
},
{
id: 2,
label: "Lines not covered",
borderColor: "#6699ff",
fill: "false",
Expand All @@ -474,6 +472,7 @@ export default defineComponent({
unit: "lines",
},
{
id: 3,
label: "Total lines (coverable)",
borderColor: "#ff9966",
fill: "false",
Expand Down
Loading

0 comments on commit 6312157

Please sign in to comment.