首页 前端知识 【echarts】自定义dataZoom样式

【echarts】自定义dataZoom样式

2024-09-27 09:09:40 前端知识 前端哥 123 440 我要收藏

效果图

在这里插入图片描述

实现方法

//引入左右两侧的拖动icon-蓝色的圆环图标
import echartsHandIcon from "@/assets/images/echarts-icon.png";

option = {
	...
	dataZoom: [
      {
        show: true,
        height: 12,
        xAxisIndex: [0],
        bottom: "8%",
        start: 0,
        end: 100,
        handleIcon: "image://" + echartsHandIcon,
        handleSize: "160%",
        textStyle: {
          color: "#939FAE",
        },
        borderColor: "#F3F5F9",
        fillerColor: "#C2DAFC",
      },
      {
        type: "inside",
        start: 0,
        end: 100,
      },
    ],
    ...
}

转载请注明出处或者链接地址:https://www.qianduange.cn//article/18623.html
标签
评论
发布的文章

数据持久化(Json)

2024-09-28 23:09:01

JSON Gate 开源项目教程

2024-09-28 23:09:00

【C 】Ubuntu安装jsoncpp

2024-09-28 23:09:58

http请求json

2024-09-28 23:09:58

JSON 格式详解

2024-09-28 23:09:53

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!