Vue Echarts 多y轴

本文介绍如何在Vue.js应用中使用ECharts创建具有多个Y轴的图表,探讨页面初始化及多Y轴配置的实现过程。
摘要由CSDN通过智能技术生成
<template>
  <div class="metAnalysis">
    <!-- 气象关联分析  created by lihao -->
    <div class="head">
      <div class="header_block">
        <span class="block_sname">时间:</span>
        <doubleTime class="times" :disabled='false' :startInitialDate='startInitialDate' :endInitialDate="endInitialDate"  ref="Times" @changeEvent="timeChanged" />
      </div>
      <div class="header_block">
        <span style="float:left">污染物:</span>
        <a-checkbox-group v-model="airvalue" @change="queryData">
          <a-checkbox value="pm25">PM<sub>2.5</sub></a-checkbox>
          <a-checkbox value="pm10">PM<sub>10</sub></a-checkbox>
          <a-checkbox value="co">CO</a-checkbox>
          <a-checkbox value="so2">SO<sub>2</sub></a-checkbox>
          <a-checkbox value="no2">NO<sub>2</sub></a-checkbox>
          <a-checkbox value="o3">O<sub>3</sub></a-checkbox>
          <a-checkbox value="aqi">AQI</a-checkbox>
        </a-checkbox-group>
      </div>
      <div class="header_block">
        <span style="float:left">气象:</span>
        <a-checkbox-group v-model="metvalue"  @change="queryData">
          <a-checkbox value="speed">风</a-checkbox>
          <a-checkbox value="temp">气温</a-checkbox>
          <a-checkbox value="rh">湿度</a-checkbox>
          <a-checkbox value="pres">气压</a-checkbox>
          <a-checkbox value="rain">降水</a-checkbox>
        </a-checkbox-group>
      </div>
      <!--<div style="float:right"><a-button type="primary" icon="download" @click="downloadExcel">导出Exles</a-button></div>-->
    </div>

    <div class="Chart"  >
      <div class="echarts">
        <lineEchart   ref="lineEchart"  class="chart"/>
      </div>
    </div>
  </div>
</template>

<script>
import doubleTime from '@comp/Time/doubleTime'
import { getDateYMD,getDateYMDHMS, dateAdd, addZero, stringToDate } from '@utils/date'
import { getCityAirMoniListOnProByLongTime, getCityWeatherMoniListByLongTime } from '@api/observe'
import systemSet from '@utils/common'
import lineEchart from '@comp/echart/lineEchart'
import {exportExcel} from '@utils/excel'
import {deepClone} from '@utils/util'
import iconUrl from '@utils/icon'
export default {
name: "metAnalysis",
  components : {//组件
    doubleTime,
    lineEchart
  },
  created() {//初始化
  //设置查询显示初始时间 'yyyy-MM-dd'
  this.startInitialDate &#
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值