function renderTrendItem(param, api) {
...
return {
type: 'polyline',
shape: {
points: ...
},
...
}
}
function renderTrendItem(param, api) {
...
return {
type: 'line',
shape: {
x1: ...,
y1: ...,
x2: ...,
y2: ...
},
...
}
}