How to autozoom chart with FastLineBitmapSeries and some FastLineBitmapSeries over it to fit visible candles

How to autozoom chart with FastLineBitmapSeries and some FastLineBitmapSeries over it to fit visible candles?


Attachment: MainWindow_783112b.7z

3 Replies

YP Yuvaraj Palanisamy Syncfusion Team April 11, 2022 02:47 AM UTC

Hi Vasilli,


We have checked your query and code example, we would like to suggest that set ZoomFactor and ZoomPosition for SecondaryAxis instead of PrimaryAxis because of want to zoom by Y axis range alone by ZoomMode is "Y". Please find the code example below.


CodeSnippet:

<syncfusion:SfChart.Behaviors>

    <syncfusion:ChartZoomPanBehavior EnablePanning="true"

                                                                      EnableZoomingToolBar="True"

                                                                      EnableDirectionalZooming="True"

                                                                      ResetOnDoubleTap="False"

                                                                      ZoomMode="Y" />

   </syncfusion:SfChart.Behaviors>

 

<syncfusion:SfChart.PrimaryAxis>

    <syncfusion:DateTimeAxis

        Name="axisX"

        . . .

        ZoomPosition="0" ZoomFactor="0.04"

        RangePadding="Auto"/>

</syncfusion:SfChart.PrimaryAxis>

 

<syncfusion:SfChart.SecondaryAxis>

    <syncfusion:NumericalAxis

        x:Name="axisY"

        . . .

        ZoomPosition="0" ZoomFactor="0.04"

        syncfusion:SfChart.Row="1" />

</syncfusion:SfChart.SecondaryAxis>

 . . .

 

 


Also, we have attached the simple sample for your reference. Please find the sample from the below attachment.


Regards,

Yuvaraj.


Attachment: Sample_ZoomFactor_1c0a2b57.zip


VA Vasilii replied to Yuvaraj Palanisamy May 7, 2022 05:19 AM UTC

The question was about something else.

I need to display the minimum set of candles on the X axis. To do this, I zoomed in on X.

And while scrolling along the X axis, I need a dynamic, not fixed, zoom on Y.

To display only the visible range. Unfortunately all runtime properties for this are not public.



YP Yuvaraj Palanisamy Syncfusion Team May 9, 2022 04:11 PM UTC

Hi Vasilii,

We are not understand your exact requirement. Could you please share us more details about this with a pictorial representation of this scenario, which will be helpful to assist you with a better solution?


Regards,

Yuvaraj.


Loader.
Up arrow icon