<template>
	<div class="chartLine" :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,
		};
	},
};
</script>
