<template>
	<div class="chartPie" :style="`height: ${VChartHeight}`">
		<v-chart class="chart" :option="chartOption" autoresize />
	</div>
</template>

<script>
import VChart from 'vue-echarts';

export default {
	components: {
		VChart,
	},
	props: {
		VChartHeight: {
			require: true,
		},
		chartOption: {
			type: Object,
			default: () => {},
			require: true,
		},
	},
	data() {
		return {
			option: null,
		};
	},
	created() {},
};
</script>
