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

echarts进度

echarts图表集

      const data=[{ value: 10.09,name:'制梁进度', color: '#86C58C',state:'' },  { value: 66.00,name:'架梁进', color: '#C6A381' ,state:'正常'},  { value: 33.07,name:'下部进度', color: '#669BDA',state:'正常' },  ];// const textStyle = { "color": "#CED6C8", "fontSize": 15 }const itemColor = {type: 'linear',x: 0,y: 0,x2: 1,y2: 1}let option = {backgroundColor: "#0b1a2a",grid: {left: '15%',  // 调整左边距right: '15%', // 调整右边距top: '20%',   // 调整顶部边距bottom: '20%' // 调整底部边距},tooltip: {show: false,},legend: {show: false},xAxis: [{splitLine: {show: false},max: 100,type: 'value',show: false}],yAxis: [{splitLine: {show: false},axisLine: {show: false},type: 'category',axisTick: {show: false},inverse: true,axisLabel: {// textStyle: textStyle,margin: 10},},{type: 'category',inverse: true,axisTick: 'none',axisLine: 'none',show: true,axisLabel: {textStyle: { "color": "#77D991", "fontSize": 15 },margin: 100,align: 'right', // Align the labels to the left},data: data.map(item => ({value: item.state,name: item.name,}))},{type: 'category',inverse: true,axisTick: 'none',axisLine: 'none',show: true,axisLabel: {textStyle: { "color": "#CED6C8", "fontSize": 15 },formatter: function (value) {return value + '%';},align: 'left', // Align the labels to the left},data: data.map(item => ({value: item.value,name: item.name,}))}],series: [{name: '',type: 'bar',barWidth: 10, // Width of the barshowBackground: true,yAxisIndex: 0,label: {show: true,color:"#fff"},data: data.map(item => ({value: item.value,name: item.name,itemStyle: {color: item.color // Set color for each data point},label: {show: true,position: 'left', // Place the label on the right side of the barformatter: '{b}' // Use the data item's name for label content}}))}]};

http://www.lryc.cn/news/431532.html

相关文章:

  • PostgreSQL16.4搭建一主一从集群
  • Spring01——Spring简介、Spring Framework架构、Spring核心概念、IOC入门案例、DI入门案例
  • 深度学习|模型推理:端到端任务处理
  • 【深度学习 Pytorch】2024年最新版本PyTorch学习指南
  • 第 1 章:原生 AJAX
  • 【代码随想录|贪心part04以后——重叠区间】
  • Denodo 连续 4 年获评 Gartner® 数据集成工具魔力象限™ 领导者
  • WHAT - React 函数与 useMemo vs useCallback
  • 系统分析师7:数学与经济管理
  • 一套简约的qt 蓝色qss方案
  • OCSP原理及实践
  • 前端流程图框架
  • 13.6 编写go代码接收webhook的告警发送钉钉
  • codetest
  • MyBatis-Plus拦截器接口InnerInterceptor失效?因MyBatis缓存机制而踩的一个深坑
  • jmeter之计数器
  • 协议集合(学习笔记)
  • 进程
  • 10款好用的电脑监控软件推荐丨2024年干货整理,赶紧码住!
  • 【MySQL-24】万字全面解析<索引>——【介绍&语法&性能分析&使用规则】
  • 刷题记录(2)
  • JVM中的GC过程
  • Python实战项目:天气数据爬取+数据可视化(完整代码)_python爬虫实战
  • FFmpeg源码:compute_frame_duration函数分析
  • ARM 异常处理(21)
  • 我开源了我的新闻网站项目
  • LlamaIndex 使用 RouterOutputAgentWorkflow
  • 设计模式学习-责任链模式
  • 【全网最全】2024年数学建模国赛B题31页完整建模过程+成品论文+matlab/python代码等(后续会更新
  • 第二十一届华为杯数学建模经验分享之资料分享篇