Hi Naveen,
Thanks for using Syncfusion products.
You can achieve this requirement by using ZoomFactor/ZoomPosition of ChartAxis. Please find the code snippet below.
Code Example:
chart.PrimaryAxis = new CategoryAxis()
{
ZoomFactor = 0.5,
ZoomPosition = 0
};
|
ZoomFactor defines the percentage of visible range from the total range of axis. For instance, when the Range is from 0 to 100 and ZoomFactor is 0.5, the visible range will be 0 to 50 or 50 to 100 (the start of the range will be determined by ZoomPosition).
ZoomPosition:
ZoomPosition defines the start of the range of values that need to be displayed as a result of ZoomFactor. For the above scenario, when the ZoomPosition is 0.25 then the visible range will be from 25 to 75.
Note: The sum of ZoomFactor and ZoomPosition must also fall within the value of 0 to 1.
We have attached a sample for your reference which can be downloaded from the below location.
Please check the sample and let us know if you need further assistance on this.
Regards,
Saravana Pandian M.