# 单轴散点图

单轴散点图是一种特殊的散点图,与基本散点图相比,它没有 Y 轴,数据由 X 轴进行控制。通过散点的疏密程度和变化趋势对比两个数据关系的图形。

主图

# 属性

# 基础

# 系列

单轴散点图为单维度,多度量的图表,因此需要分别设置每个系列下的散点的属性。

# X 轴 1

组件管理 -> 属性 -> X轴

  • X 轴 2:与X 轴 1属性配置相同。

# 视觉映射组件

组件管理 -> 属性 -> 视觉映射

# 数据

# 静态数据

系列

上图中的示例JSON代码如下:

[
  {
    "x": 3,
    "y1": 13,
    "y2": 95,
    "type": "2020",
    "value": 61
  },
  {
    "x": 19,
    "y1": 24,
    "y2": 13,
    "type": "2020",
    "value": 1
  },
  {
    "x": 20,
    "y1": 29,
    "y2": 6,
    "type": "2020",
    "value": 70
  },
  {
    "x": 35,
    "y1": 29,
    "y2": 31,
    "type": "2020",
    "value": 48
  },
  {
    "x": 54,
    "y1": 16,
    "y2": 16,
    "type": "2020",
    "value": 73
  },
  {
    "x": 41,
    "y1": 24,
    "y2": 19,
    "type": "2020",
    "value": 41
  },
  {
    "x": 51,
    "y1": 20,
    "y2": 44,
    "type": "2020",
    "value": 57
  },
  {
    "x": 90,
    "y1": 54,
    "y2": 30,
    "type": "2020",
    "value": 19
  },
  {
    "x": 98,
    "y1": 48,
    "y2": 36,
    "type": "2020",
    "value": 56
  },
  {
    "x": 9,
    "y1": 31,
    "y2": 90,
    "type": "2020",
    "value": 99
  },
  {
    "x": 93,
    "y1": 27,
    "y2": 59,
    "type": "2021",
    "value": 3
  },
  {
    "x": 15,
    "y1": 33,
    "y2": 22,
    "type": "2021",
    "value": 43
  },
  {
    "x": 5,
    "y1": 36,
    "y2": 39,
    "type": "2021",
    "value": 70
  },
  {
    "x": 45,
    "y1": 48,
    "y2": 32,
    "type": "2021",
    "value": 48
  },
  {
    "x": 74,
    "y1": 45,
    "y2": 74,
    "type": "2021",
    "value": 51
  },
  {
    "x": 91,
    "y1": 30,
    "y2": 94,
    "type": "2021",
    "value": 96
  },
  {
    "x": 29,
    "y1": 24,
    "y2": 66,
    "type": "2021",
    "value": 81
  },
  {
    "x": 3,
    "y1": 57,
    "y2": 59,
    "type": "2021",
    "value": 21
  },
  {
    "x": 84,
    "y1": 30,
    "y2": 53,
    "type": "2021",
    "value": 70
  },
  {
    "x": 21,
    "y1": 31,
    "y2": 40,
    "type": "2021",
    "value": 34
  }
]
  • x: 度量,X 轴的值。

  • y1:

  • y2:

  • name: 维度,系列名。

# 数据资源

基础

# 交互

详见散点图交互

# 节点编程

详见散点图节点编程

Last Updated: 9/6/2022, 10:55:25 AM