Files
tianyi_DataV/src/components/echart/bottom/bottomLeftChart1/index.vue
T

37 lines
599 B
Vue

<template>
<div>
<Chart :cdata="cdata" />
</div>
</template>
<script>
import Chart from './chart.vue'
export default {
props:[
'cdata'
],
data () {
return {
};
},
components: {
Chart,
},
mounted () {
this.setData();
},
methods: {
// 根据自己的业务情况修改
setData () {
// for (let i = 0; i < this.cdata.barData.length -1; i++) {
// let rate = this.cdata.barData[i] / this.cdata.lineData[i];
// this.cdata.rateData.push(rate.toFixed(2));
// }
},
}
};
</script>
<style lang="scss" scoped>
</style>