Skip to content

Commit db85929

Browse files
authored
Merge pull request #1738 from microbiomedata/issue-1524-squished-upset-plot
Resize visualization components
2 parents 234d7fb + 31e9d3c commit db85929

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

web/src/components/Presentation/DateHistogram.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export default Vue.extend({
3636
type: String,
3737
required: true,
3838
},
39+
height: {
40+
type: Number,
41+
default: 160,
42+
},
3943
},
4044
4145
data() {
@@ -133,8 +137,8 @@ export default Vue.extend({
133137

134138
<template>
135139
<div class="histogram">
136-
<ChartContainer>
137-
<template #default="{ width, height }">
140+
<ChartContainer :height="height">
141+
<template #default="{ width }">
138142
<TimeHistogram
139143
ref="histogram"
140144
v-bind="{ width, height, selectedData: facetSummary, totalData: facetSummaryUnconditional, range: range || [] }"

web/src/views/Search/BiosampleVisGroup.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default defineComponent({
179179
</v-col>
180180
</v-row>
181181
<v-row>
182-
<v-col cols="8">
182+
<v-col cols="6">
183183
<TooltipCard
184184
:text="helpTimeline"
185185
class="py-2"
@@ -193,18 +193,19 @@ export default defineComponent({
193193
<template #default="props">
194194
<DateHistogram
195195
v-bind="props"
196+
:height="240"
196197
@select="setUniqueCondition(['collection_date'], ['biosample'], $event.conditions)"
197198
/>
198199
</template>
199200
</BinnedSummaryWrapper>
200201
</TooltipCard>
201202
</v-col>
202-
<v-col cols="4">
203+
<v-col cols="6">
203204
<TooltipCard
204205
:text="helpUpset"
205206
class="py-0 d-flex flex-column justify-center fill-height"
206207
>
207-
<ChartContainer :height="160">
208+
<ChartContainer :height="240">
208209
<template #default="{ width, height }">
209210
<UpSet
210211
v-bind="{

0 commit comments

Comments
 (0)