61 lines
1.3 KiB
Vue
61 lines
1.3 KiB
Vue
<template>
|
|
<techy-box style="width: 100%; height: calc(100% - 36px);">
|
|
<!-- <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-bar :extra-space-between-zero="16" :datainfo="[
|
|
{
|
|
name: '产量',
|
|
list: [64, 91, 55, 65, 37, 77]
|
|
},
|
|
{
|
|
name: '能耗',
|
|
list: [32, 65, 65, 54, 37, 77]
|
|
}
|
|
]" />
|
|
</techy-box>
|
|
</template>
|
|
|
|
<script>
|
|
import TechyBox from './TechyBox.vue'
|
|
// import newBar from './newBar.vue'
|
|
import TechyBar from './TechyBar.vue'
|
|
|
|
export default {
|
|
name: 'RealtimeProductionHorizontalBarChart',
|
|
components: { TechyBox, TechyBar },
|
|
props: {},
|
|
data() {
|
|
return {}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.techy-chart {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.techy-chart >>> div {
|
|
width: 100% !important;
|
|
}
|
|
</style>
|