Skip to content

Commit ae18885

Browse files
committed
images for shap errors
1 parent 07b00dd commit ae18885

1 file changed

Lines changed: 37 additions & 30 deletions

File tree

src/components/ExplainComponents/ExplainByErrors.vue

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,59 @@
11
<template>
22
<div class="container">
33
<h1>Explanation to be added</h1>
4-
4+
55
<b-button
6-
@click="GetShapByErrors"
6+
@click="getShapByErrors"
77
variant="primary"
88
style="width: 90px"
99
class="ml-5 w-10"
1010
>Get graphs</b-button
11-
>
12-
13-
<!-- <b-card no-body class="overflow-hidden" style="max-width: 1700px;" v-for="r in this.images" :key="r.details">
14-
<b-row no-gutters>
15-
<b-col md="6">
16-
<b-card-img :src="r.url" alt="Image" class="rounded-0"></b-card-img>
17-
</b-col>
18-
<b-col md="6">
19-
<b-card-body title="Horizontal Card">
20-
<b-card-text>
21-
This is a wider card with supporting text as a natural lead-in to additional content.
22-
This content is a little bit longer.
23-
</b-card-text>
24-
</b-card-body>
25-
</b-col>
26-
</b-row>
27-
</b-card> -->
11+
>
12+
<div>
13+
<b-card-group deck v-for="img in images" :key="img">
14+
<b-card no-body class="overflow-hidden" style="max-width: 2000px">
15+
<b-row no-gutters>
16+
<b-col md="6">
17+
<b-card-img
18+
:src="img"
19+
alt="Image"
20+
class="rounded-0"
21+
></b-card-img>
22+
</b-col>
23+
<b-col md="6">
24+
<b-card-body title="Horizontal Card">
25+
<b-card-text>
26+
This is a wider card with supporting text as a natural lead-in
27+
to additional content. This content is a little bit longer.
28+
</b-card-text>
29+
</b-card-body>
30+
</b-col>
31+
</b-row>
32+
</b-card>
33+
</b-card-group>
34+
</div>
2835
</div>
2936
</template>
3037

3138
<script>
3239
export default {
3340
data() {
3441
return {
35-
images:[],
42+
images: [],
3643
};
3744
},
3845
3946
methods: {
40-
async test() {
41-
let info = await this.axios.get(
42-
"http://localhost:8080/shap/GetShapByErrors/"
43-
);
44-
errors_plot = [];
45-
info.data.forEach((element) => {
46-
errors_plot.push(element);
47-
});
48-
49-
return newRecipes;
47+
async getShapByErrors() {
48+
// let info = await this.axios.get(
49+
// "http://localhost:8080/shap/GetShapByErrors/"
50+
// );
51+
// errors_plot = [];
52+
// info.data.forEach((element) => {
53+
// errors_plot.push(element);
54+
// });
55+
this.images= ["https://picsum.photos/400/400/?image=20","https://picsum.photos/400/400/?image=20","https://picsum.photos/400/400/?image=20"]
56+
console.log(this.images)
5057
},
5158
},
5259
};

0 commit comments

Comments
 (0)