| | |
| | | <div id="cards"> |
| | | <div class="chart-name"> |
| | | 设备故障月趋势 |
| | | <dv-decoration-3 style="width:120px;height:20px;" /> |
| | | <dv-decoration-3 style="width:200px;height:30px;" /> |
| | | </div> |
| | | <dv-charts :option="option" /> |
| | | </div> |
| | |
| | | data() { |
| | | return { |
| | | option: { |
| | | legend: { // 小标签 |
| | | legend: { // 图标 |
| | | data: [ |
| | | { |
| | | name: '系列A', |
| | |
| | | }, |
| | | left: 0, |
| | | top: '50%', |
| | | orient: 'vertical' |
| | | orient: 'vertical', |
| | | iconWidth: 40, // 宽 |
| | | iconHeight: 15, // 高 |
| | | itemGap: 15 // 间距 |
| | | }, |
| | | xAxis: { |
| | | // name: '第一周', |
| | |
| | | data: 'value', |
| | | nameTextStyle: { // 轴标题 |
| | | fill: '#fff', |
| | | fontSize: 15 |
| | | fontSize: 15, |
| | | }, |
| | | axisLine: { // 轴线 |
| | | style: { |
| | |
| | | border-top: 2px solid rgba(1, 153, 209, .5); |
| | | box-shadow: 0 0 3px blue; |
| | | box-sizing: border-box; |
| | | padding: 0 0 0 50px; |
| | | padding: 5px 0 0 50px; // 移动图标 |
| | | position: relative; |
| | | |
| | | .chart-name { |
| | | display: flex; align-items: center; gap: 20px; // 动画在右侧 |
| | | font-weight: bold; |
| | | position: absolute; |
| | | left: 30px; |
| | | left: 20px; |
| | | text-align: right; |
| | | font-size: 20px; |
| | | top: 10px; |