Chaithanya5gif opened a new pull request, #21609:
URL: https://github.com/apache/echarts/pull/21609

   
   ### What problem does this feature solve?
   Currently, developers building financial/candlestick charts must rely on 
external JS libraries to calculate technical indicators before passing them to 
ECharts. This PR introduces a native `echarts:indicator` transform that 
computes these mathematically in the data pipeline, significantly reducing 
boilerplate and external dependencies.
   
   ### What does the proposed API look like?
   The new transform hooks seamlessly into the existing `ExternalDataTransform` 
interface:
   ```javascript
   dataset: [{
       source: stockData
   }, {
       transform: {
           type: 'echarts:indicator',
           config: { 
               indicator: 'macd', // Supports: 'sma', 'ema', 'macd', 'bollinger'
               shortPeriod: 12, 
               longPeriod: 26, 
               signalPeriod: 9, 
               sourceDimension: 'Close' 
           }
       }
   }]
   


-- 
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]

Reply via email to