当前位置: 首页 > news >正文

echarts使用示例

柱状图+折线图

折柱混合:https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar

在这里插入图片描述

option = {title:{show: true},tooltip: {trigger: 'axis',axisPointer: {type: 'cross',crossStyle: {color: '#999'}}},toolbox: {feature: {dataView: { show: true, readOnly: false },magicType: { show: true, type: ['line', 'bar'] },restore: { show: true },saveAsImage: { show: true }}},legend: {data: ['60周岁及以上人口', '60周岁及以上人口比重']},xAxis: [{type: 'category',data: ['2019', '2020', '2021', '2022', '2023'],axisPointer: {type: 'shadow'}}],yAxis: [{type: 'value',name: '万人',min: 22000,max: 30000,interval: 1000},{type: 'value',name: '%',min: 12,max: 25,interval: 1,splitLine:false}],series: [{name: '60周岁及以上人口',type: 'bar',data: [25388, 26402, 26736, 28004, 29697],itemStyle : { normal: {label : {show: true}}},barWidth: '35%',},{name: '60周岁及以上人口比重',type: 'line',yAxisIndex: 1,data: [18.1, 18.7, 18.9, 19.8, 21.1],itemStyle : { normal: {label : {show: true}}},}]
};
http://www.lryc.cn/news/492740.html

相关文章:

  • Flink高可用配置(HA)
  • 如何编写出色的技术文档
  • 学习日记_20241126_聚类方法(谱聚类Spectral Clustering)
  • 图书系统小案例
  • 目标检测之学习路线(本科版)
  • C#调用C++ DLL方法之C++/CLI(托管C++)
  • 免费搭建一个属于自己的个性化博客(Hexo+Fluid+Github)
  • vue3 开发利器——unplugin-auto-import
  • 开发需求总结19-vue 根据后端返回一年的数据,过滤出符合条件数据
  • 人工智能如何改变创新和创造力?
  • Github 基本使用学习笔记
  • 群论入门笔记
  • 2024最新python使用yt-dlp
  • Python + 深度学习从 0 到 1(00 / 99)
  • 单点登录深入详解之设计方案总结
  • Loadsh源码分析-forEach,eachRight,map,flatMap,flatMapDeep,flatMapDepth
  • 检测到“runtimelibrary”的不匹配项: 值“mtd_staticdebug”不匹配值“mdd_dynamic”
  • go clean -modcache命令清理缓存
  • C#结构体排序(数组)
  • 基于边缘智能网关的机房安全监测应用
  • 【Jenkins】自动化部署 maven 项目笔记
  • LeetCode 3243. Shortest Distance After Road Addition Queries I
  • ML 系列:第 31 节— 机器学习中的协方差和相关性
  • 【鸿蒙】鸿蒙开发过程中this指向问题
  • d3-contour 生成等高线图
  • Ubuntu20.04离线安装全教程(包括DellR940重置Raid 5、安装Ubuntu、设置root、安装nvidia英伟达显卡驱动及设置防火墙白名单)
  • Spring Boot 3 集成 Spring Security(2)授权
  • 【开篇】.NET开源 ORM 框架 SqlSugar 系列
  • 参加面试被问到的面试题
  • 第29天:安全开发-JS应用DOM树加密编码库断点调试逆向分析元素属性操作