![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Echarts
Dily_Su
这个作者很懒,什么都没留下…
展开
-
Echarts 数据导入方式汇总
一、坐标轴数据 1、横坐标-X轴// 不写data,此时更据数据自适应xAxis: { name: 'weekTime', // 名称 type: 'time', // 类型,category-类目,value-数值,time-时间},xAxis: { name: 'weekTime', // 名称 type: 'category', // 类型,category-类目,value-数值,time-时间 // 数据,最高级显示,不会被改变 da..原创 2021-11-12 09:43:38 · 6296 阅读 · 0 评论 -
Echarts自定义tooltip
一、效果二、代码tooltip: { show: true, axisPointer: { type: 'cross', lineStyle: { type: 'dashed' // 虚线 } }, // 自定义 formatter: p => { console.log(p) const pre = p.name const start = '<ul type="none" style="ma..原创 2021-11-11 17:04:39 · 4607 阅读 · 0 评论 -
Echarts使用 - Vue
一、Echarts安装 项目目录下控制台使用如下命令,下载安装依赖npm install echarts --save二、项目引入 main.js 中引入以下代码import * as echarts from 'echarts'Vue.prototype.$echarts = echarts三、Vue中使用<template> <div id="bar" style="width: 100%;height: 800p...原创 2021-11-09 14:45:23 · 392 阅读 · 0 评论