【发布时间】:2022-09-29 22:45:11
【问题描述】:
我想在 Apache Echarts 中以两列方式设置图例区域,如何使用图例选项实现这一点?我找不到与此相关的任何示例。
示例图像(我想要一个如下图所示的图例区域)。
option = {
tooltip: {
trigger: \'axis\',
axisPointer: {
type: \'shadow\'
}
},
legend: {
top: \'3%\',
},
grid: {
top: \'28%\',
left: \'3%\',
right: \'4%\',
bottom: \'3%\',
containLabel: true,
},
xAxis: {
type: \'value\',
},
yAxis: {
type: \'category\',
data: [\'Actual Avg\', \'Min Standard\']
},
series: JSON.parse(data),
};
标签: javascript ajax echarts