页面树结构
转至元数据结尾
转至元数据起始

问题

自助仪表盘折线图上希望可以固定显示最低值的提示框,且提示框背景为透明渐变,如下图:

解决方案

可通过使用标注实现,具体请参考如下扩展属性:

{"series": [
		{
			"markPoint": {
				"symbol": "rect",
				"symbolSize": [
					100,
					50
				],
				"symbolOffset": [
					50,
					50
				],
				"data": [
					{
						"name": "最大值",
						"type": "min"
					}
				],
				"itemStyle": {
					"borderWidth": 1,
					"borderColor": "red",
					"color": {
						"x": 0,
						"y": 0,
						"x2": 0,
						"y2": 1,
						"type": "linear",
						"colorStops": [
							{
								"offset": 0,
								"color": "#248ff7"
							},
							{
								"offset": 1,
								"color": "rgba(22,75,247,0.1)"
							}
						]
					}
				}
			}
		}
	]
}
  • 无标签