In my vue application, I utilize vue-chartjs to showcase some data and I incorporate semantic-ui for the layout.
My goal is to display two figures side by side on the screen, but unfortunately, I am facing difficulties achieving this.
I have attempted using templates as I did in other components, however, it seems that it does not work with vue-chartjs. I also tried utilizing the two fields functionality from semantic ui without any success.
Below are snippets of the code:
<template>
<div class="DisplayResults">
<div class="ui relaxed divided padded full grid">
<div class="column">
<div class="ui tiny form">
<div class="two fields">
<div class="field eight wide">
<Chart class="Chart" v-model="resultsData" v-if="hasResults" />
</div>
<div class="field eight wide">
<ChartN class="Chart" v-model="resultsData" v-if="hasResults"/>
</div>
</div>
</div>
</template>
import Chart from '@/components/Chart.vue'
import ChartN from '@/components/ChartN.vue'
import CaseDataState from '@/components/CaseDataState.vue'
export default {
name: 'DisplayResults',
CaseDataState,
components: {
Chart,
ChartN
},
data: function () {
return { computing: false }
},
computed: {
hasResults () {
return (this.resultsData.time) && !(this.computing)
},
resultsData () {
return CaseDataState.getters.resultsData
}
}
}
</script>
Is there anyone who can assist me in accomplishing this task?