diff --git a/src/shared/charts/tradeChartData.ts b/src/shared/charts/tradeChartData.ts index ba916a0a..3dd53580 100644 --- a/src/shared/charts/tradeChartData.ts +++ b/src/shared/charts/tradeChartData.ts @@ -167,7 +167,7 @@ export function generateTradeSeries( }, itemStyle: { // color: tradeSellColor, - color: (v) => v.data[4], + color: (v) => (v.data ? v.data[4] : '#000'), opacity: 0.9, }, symbol: (v) => v[2],