Stockchart zooming programmatically doesn't work
Hello,
I tried to use but doesn't seems to work i.e setting zoomfactor or zoomposition
How to perform zooming programmatically in Blazor Charts?
I tried to use Period Selector and I customize it but is it possible to hide the Indicators dropdown in Period Selector toolbar ?
thanks
Hi Praveen,
#1 : I tried to use but doesn't seem to work i.e. setting zoomfactor or zoomposition
We are analyzing your reported scenario. We will update the further details within one business day(13th November 2024). We appreciate your patience until then.
# 2 : I tried to use Period Selector and I customize it but is it possible to hide the Indicators dropdown in Period Selector toolbar ?
Your requirement can be achieved by specifying empty list for indicators in stock chart. We have prepared sample based on your requirement. Please check with below snippet and sample.
|
<SfStockChart IndicatorType="@Indicators"></SfStockChart> @code { List<TechnicalIndicators> Indicators = new List<TechnicalIndicators>() { }; } |
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Indicator-12792696.zip
Kindly revert us if you have any concerns.
Regards,
Durga Gopalakrishnan.
Praveen,
We have considered your reported scenario as bug and logged a defect report for the issue ”Stockchart zooming is not working programmatically ”. This fix will be available in our weekly patch release which is scheduled to be rolled out on 26th November 2024. We appreciate your patience until then. You can keep track of the bug from the below feedback link.
Feedback : https://www.syncfusion.com/feedback/63049/stockchart-zooming-is-not-working-programmatically
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Praveen,
Thank you for your patience. We have addressed the reported issue at the sample level. To avoid unnecessary re-renderings in the stock chart, we have prevented the StateHasChanged method from being triggered to re-render the chart. Instead, we recommend using the UpdateStockChart method to refresh the stock chart when dynamically changing the zoom factor and zoom position. For your reference, we have attached the updated sample.
|
public void ZoomIn() { SetZoomFactor -= 0.1; stockchart.UpdateStockChart(); } public void ZoomOut() { SetZoomFactor += 0.1; stockchart.UpdateStockChart(); } public void ResetZoom() { SetZoomFactor = 1; stockchart.UpdateStockChart(); } |
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/StkChrtZF533169163.zip
Please let us know if you have any concerns.
- 3 Replies
- 2 Participants
-
PD Praveen D
- Nov 10, 2024 11:45 PM UTC
- Nov 25, 2024 12:58 PM UTC