Skip to content

Commit 6312157

Browse files
Move covmanager graph to d3
1 parent 39db4f8 commit 6312157

File tree

8 files changed

+383
-216
lines changed

8 files changed

+383
-216
lines changed

server/frontend/package-lock.json

-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/frontend/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
},
1515
"dependencies": {
1616
"axios": "^1.6.7",
17-
"chart.js": "^4.4.7",
1817
"d3": "^7.8.5",
1918
"floating-vue": "^2.0.0",
2019
"handlebars": "^4.7.8",

server/frontend/src/components/Covmanager/Browse.vue

+4-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@
6161
<div v-show="search">
6262
<input ref="search" v-model="search" type="text" class="form-control" />
6363
</div>
64-
<line-chart
65-
v-if="chartdata"
66-
:chartdata="chartdata"
67-
style="height: 50vh"
68-
></line-chart>
64+
<line-chart v-if="chartdata" :chartdata="chartdata"></line-chart>
6965
<table class="table table-condensed table-hover table-db">
7066
<thead>
7167
<tr>
@@ -450,6 +446,7 @@ export default defineComponent({
450446
this.chartdata["labels"] = [];
451447
this.chartdata["datasets"] = [
452448
{
449+
id: 1,
453450
label: "Total Coverage (%)",
454451
borderColor: "#f87979",
455452
fill: "false",
@@ -462,6 +459,7 @@ export default defineComponent({
462459
unit: "%",
463460
},
464461
{
462+
id: 2,
465463
label: "Lines not covered",
466464
borderColor: "#6699ff",
467465
fill: "false",
@@ -474,6 +472,7 @@ export default defineComponent({
474472
unit: "lines",
475473
},
476474
{
475+
id: 3,
477476
label: "Total lines (coverable)",
478477
borderColor: "#ff9966",
479478
fill: "false",

0 commit comments

Comments
 (0)