11-mes-new/src/views/3DOverview/components/RightContentRealtimeProduction.vue

61 lines
1.3 KiB
Vue
Raw Normal View History

2022-11-07 08:45:49 +08:00
<template>
2022-11-17 11:30:11 +08:00
<techy-box style="width: 100%; height: calc(100% - 36px);">
2022-11-07 17:08:05 +08:00
<!-- <div :id="id" ref="techy-line-chart" class="techy-chart" /> -->
2022-11-21 15:22:04 +08:00
<!-- <new-bar
2022-11-07 17:08:05 +08:00
chart-name="realtime-cost-production"
:name-list="['A', 'B', 'C', 'D', 'E', 'F']"
:data-list="[
{
topColor: 'rgba(59, 76, 118, 0.2)',
bottomColor: '#49FBD6',
name: '产量',
data: [64, 91, 55, 65, 37, 77]
},
{
topColor: 'rgba(59, 76, 118, 0.2)',
bottomColor: '#31A2FF',
name: '能耗',
data: [32, 65, 65, 54, 37, 77]
}
]"
2022-11-21 15:22:04 +08:00
/> -->
<techy-bar :extra-space-between-zero="16" :datainfo="[
{
name: '产量',
list: [64, 91, 55, 65, 37, 77]
},
{
name: '能耗',
list: [32, 65, 65, 54, 37, 77]
}
]" />
2022-11-07 17:08:05 +08:00
</techy-box>
2022-11-07 08:45:49 +08:00
</template>
<script>
2022-11-07 17:08:05 +08:00
import TechyBox from './TechyBox.vue'
2022-11-21 15:22:04 +08:00
// import newBar from './newBar.vue'
import TechyBar from './TechyBar.vue'
2022-11-07 08:45:49 +08:00
export default {
name: 'RealtimeProductionHorizontalBarChart',
2022-11-21 15:22:04 +08:00
components: { TechyBox, TechyBar },
2022-11-17 11:30:11 +08:00
props: {},
2022-11-07 08:45:49 +08:00
data() {
2022-11-17 11:30:11 +08:00
return {}
}
2022-11-07 08:45:49 +08:00
}
</script>
<style scoped>
.techy-chart {
height: 100%;
width: 100%;
}
.techy-chart >>> div {
width: 100% !important;
}
</style>