• 一些ECharts配置


    基于vue3,EChart5.4.3版本

    Line

    1. <template>
    2. <div class="wh-full" ref="chart">div>
    3. template>
    4. <style scoped>
    5. style>

    Bar

    1. <template>
    2. <div class="wh-full" ref="chart">div>
    3. template>
    4. <style scoped>
    5. style>

    Pie

    1. <template>
    2. <div class="wh-full" ref="chart">div>
    3. template>
    4. <style scoped>
    5. style>

    使用

    1. <script lang="ts" setup>
    2. import {onMounted, ref} from "vue"
    3. import Line from '../Line.vue'
    4. onMounted(() => {
    5. init();
    6. })
    7. const chartXLineData = ref([])
    8. const seriesNameList = ref(["", '', ''])
    9. const seriesLineData = ref([])
    10. const lineColorList = ["rgba(1, 145, 219, 1)", 'rgba(9, 162, 51, 1)', "rgba(191, 153, 18, 1)"]
    11. const seriesList = []
    12. script>
    13. <style lang="scss" scoped>
    14. style>

  • 相关阅读:
    阿里云关系型数据库有哪些?RDS云数据库汇总
    【课程作业】基于Java的宠物领养管理网站系统源码
    如何在 docker 容器使用 nginx 实现反向代理统一站点入口
    潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
    Ubuntu22.04安装PostgreSQL
    TensorRT安装记录(8.2.5)
    【动手学深度学习-Pytorch版】BERT预测系列——用于预测的BERT数据集
    vector模拟实现——关于模拟中的易错点
    Java Pattern.split()方法具有什么功能呢?
    读书笔记(一)C++prime
  • 原文地址:https://blog.csdn.net/weixin_42112342/article/details/133904908