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

Echats 实现CPK (过程能力)研究报告

背景:

实现:

Echarts Option 代码示例

 option = {
  title: {
    text: '折线图示例 - X轴为数值'
  },
  xAxis: {
    type: 'value',  // X 轴改为数值型
    min: 0,         // 最小值
    max: 10,        // 最大值
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      type: 'line',
      data: [
        [0, 150], [2, 230], [4, 224], [6, 218], [8, 135], [10, 260]  // 数值型数据
      ],
      markLine: {
        silent: true,  // 不触发鼠标事件
        data: [
          {
            yAxis: 200, // 水平辅助线位于 Y 轴的 200
            label: {
              show: false  // 隐藏默认的标记文字
            }
          }
        ],
        lineStyle: {
          type: 'solid',
          color: '#FF0000'  // 辅助线颜色
        }
      },
      markPoint: {
        data: [
          { coord: [0, 200], label: { formatter: '0' } },   // 在 X=0 的位置
          { coord: [2, 200], label: { formatter: '2' } },   // 在 X=2 的位置
          { coord: [4, 200], label: { formatter: '4' } },   // 在 X=4 的位置
          { coord: [6, 200], label: { formatter: '6' } },   // 在 X=6 的位置
          { coord: [8, 200], label: { formatter: '8' } },   // 在 X=8 的位置
          { coord: [10, 200], label: { formatter: '10' } }  // 在 X=10 的位置
        ],
        symbol: 'circle',  // 使用圆形标记
        symbolSize: 10
      }
    }
  ]
};

效果:


http://www.kler.cn/news/312705.html

相关文章:

  • B+树(B+TREE)索引
  • Qt 模型视图(一):概述
  • 硬件工程师笔试面试——集成电路
  • 分布式消息服务Kafka版的详细解析和配置方式
  • 网络高级day01(Modbus 通信协议:Modbus TCP)
  • 【类型黑市】指针
  • Angular面试题四
  • 如何使用ssm实现企业人事管理系统+vue
  • monorepo基础搭建教程(从0到1 pnpm+monorepo+vue)
  • 最新版本TensorFlow训练模型TinyML部署到ESP32入门实操
  • matlab模拟时间有负数的信号频谱
  • 前端在网络安全攻击问题上能做什么?
  • jacoco-maven-plugin使用
  • Qt中文乱码解决
  • 动手学深度学习(pytorch土堆)-06损失函数与反向传播、模型训练、GPU训练
  • 零基础玩转实在Agent -- 基础篇|实在Agent研究
  • 算法leecode笔记
  • 基于PHP的电脑线上销售系统
  • 小米电视,无需U盘,直接通过ADB远程安装APK,很方便!
  • 【Verilog学习日常】—牛客网刷题—Verilog快速入门—VL16
  • 修改状态的标准模版
  • 【移动端】Flutter与uni-app:全方位对比分析
  • MATLAB绘图:2.plot函数
  • vulnhub靶场 DC-3
  • axios二次封装
  • web基础—dvwa靶场(十二)JavaScript Attacks
  • 从数据到资产:企业数据治理经济价值实现的策略框架
  • Dubbo SPI源码
  • Linux 开发工具(vim、gcc/g++、make/Makefile)+【小程序:进度条】-- 详解
  • 新媒体运营