Closed krButani closed 1 year ago
We have tried to replicate the reported issue at our with the provided code snippet, but the issue is not getting reproduced at our end. We kindly request you share more information about the data source used and also, try to reproduce the reported issue in the shared sample below. So that it will help us assist you in a better way.
Screenshot:
Sample: i435541.zip
Check on Mobile Screen we try to draw like attached screenshot.
Your requirement can be achieved by mapping the indicator to the secondary Y-axis instead of the primaryYAxis. By this method, the signal line for the RSI indicator will be rendered as per your requirement. We have modified your sample and shared it below for your reference.
Code snippet:
SfCartesianChart(
axes: [
NumericAxis(
name: 'y-axis',
maximum: 2000,
isVisible: false,
rangePadding: ChartRangePadding.additional,
)
],
indicators: <TechnicalIndicators<ChartSampleData, DateTime>>[
RsiIndicator<ChartSampleData, DateTime>(
showZones: false,
yAxisName: 'y-axis',
),
],
),
Screenshot:
Sample: i435541.zip
Regards, Yuvaraj.
how can i display Y axis 0 to 100 on RSI???
Hi Kartik,
We have achieved your requirement by adding two charts and rendering the candle series and RSI indicators with different charts. We have achieved the green and red color lines with the help of plotband property in chart axis and highlighting the axis label using the axisLabelFormatter. And we have modified your sample based on the requirement and shared it below for your reference.
Screenshot:
If you want to enable the trackball for both series and indicator, you can synchronize the trackball of multiple charts as per the following KB. https://www.syncfusion.com/kb/11881/how-to-synchronize-trackball-in-multiple-charts-sfcartesianchart
Regards, Lavanya A. rsi indicator.zip
Thank you its working. So, other indicator also display in diferent plot??
Hi @krButani,
Yes, you can display all the indicators in a different plot area. Please let us know if you need any further assistance.
Regards, Lokesh.
Hi, we are trying to implement your candlestick chart when we implement any technical indicator candle stick chart not visible.
Indicator also not display full width. It displays small line but not visible to user. We used zoomPanBehavior. Few code line is below
https://prnt.sc/dUixCdqku0qO