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" /> -->
|
|
|
|
|
|
|
|
<new-bar
|
|
|
|
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]
|
|
|
|
}
|
|
|
|
]"
|
|
|
|
/>
|
|
|
|
</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'
|
|
|
|
import newBar from './newBar.vue'
|
2022-11-07 08:45:49 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'RealtimeProductionHorizontalBarChart',
|
2022-11-07 17:08:05 +08:00
|
|
|
components: { TechyBox, newBar },
|
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>
|