1
0

feat: 尝试多图生成

This commit is contained in:
2025-10-31 00:56:06 +08:00
parent 53a6d33fd5
commit f4fef2bd95
2 changed files with 85 additions and 18 deletions

View File

@@ -29,7 +29,7 @@
body: {
className: 'mt-2',
type: 'chart',
height: 500,
height: 800,
config: {
title: {
text: title,
@@ -103,6 +103,32 @@
},
yAxis: [
{
position: 'left',
scale: true,
axisLine: {
lineStyle: {
color: '#e0e0e0',
},
},
axisLabel: {
color: '#666',
fontWeight: 'bold',
formatter: function (value) {
return value.toFixed(2)
},
},
splitLine: {
lineStyle: {
type: 'dashed',
color: '#f0f0f0',
},
},
axisTick: {
show: false,
},
},
{
position: 'right',
scale: true,
axisLine: {
lineStyle: {
@@ -169,6 +195,26 @@
borderWidth: 1,
},
},
{
type: 'line',
yAxisIndex: 0,
data: '${sma30 || []}',
smooth: true,
symbol: 'none',
lineStyle: {
color: 'rgba(0,111,255,0.5)',
},
},
{
type: 'line',
yAxisIndex: 1,
data: '${sma30Slopes || []}',
smooth: true,
symbol: 'none',
lineStyle: {
color: 'rgba(0,255,81,0.5)',
},
},
],
},
},