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

  • 相关阅读:
    ps gif动图怎么做,教你一招更简单
    电脑静态ip地址在哪里找
    ThingsBoard IoT Gateway 实战(三)- 使用 MQTT Connector 转接灯
    90 子集II
    typescript 基础一篇掌握(一万四千字攻略总结)
    二叉树oj题
    Python实现微博舆情分析的设计与实现
    GPU Counter功能更新|支持Adreno、PowerVR芯片
    low power-upf-vcsnlp(一)
    Figma插件合集大放送,效果嘎嘎棒!
  • 原文地址:https://blog.csdn.net/weixin_42112342/article/details/133904908