• 一些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>

  • 相关阅读:
    基础-MVP定位-轮廓比对算子
    天星金融(原小米金融)履行普惠金融使命,筑牢消费者保护防线
    css 设置border边框颜色渐变效果
    【JS】变量与数据类型,this
    MySQL(1) 索引结构
    Audio signals 音频信号
    花998购买的拍摄技巧和7天起号培训文档,学了一周的总结。
    阿里云部署开源MQTT平台mosquitto的docker操作
    javascript 原生操作子 cookie 的工具类
    教育在线学习系统,教育培训都能用,支持多个终端
  • 原文地址:https://blog.csdn.net/weixin_42112342/article/details/133904908