s34631327 commented on issue #19753: URL: https://github.com/apache/echarts/issues/19753#issuecomment-2031407041
https://echarts.apache.org/examples/zh/editor.html?c=candlestick-brush 你們範例中 splitData() 有誤 錯誤: volumes.push([i, rawData[i][4], rawData[i][0] > rawData[i][1] ? 1 : -1]); 應改為: if(i == 0) volumes.push([i, rawData[i][4], 0]); else if( rawData[i-1][1] < rawData[i][1] ) volumes.push([i, rawData[i][4], 1]); else if( rawData[i-1][1] == rawData[i][1] ) volumes.push([i, rawData[i][4], 0]); else volumes.push([i, rawData[i][4], -1]); visualMap中加入: { value: 0, color: flatColor }, 並定義 const flatColor = '#5B5B5B'; 以上 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
