AD
Administrator
Syncfusion Team
January 23, 2008 04:58 AM UTC
Chart series width will be automatically increased on increasing the size of the chart area.
Adding a scroll viewer to the chart area is not a best use case. However if you need the scroll bar inside the chart area you can call the chart zooming command in the window load event. By doing this it will zoom the chart but the zooming kit will be displayed. A provision to disable the zooming kit is under development and will be available in the next release.
You can use the following code snippet to zoom the chart in the window load event.
ChartAreaCommands.SwitchZooming.Execute(null, Chart1.Areas[0]);
Chart1.Areas[0].PrimaryAxis.ZoomFactor = 0.5;
Chart1.Areas[0].PrimaryAxis.ZoomPosition = 0;
Chart1.Areas[0].SecondaryAxis.ZoomFactor = 0.5;
Chart1.Areas[0].SecondaryAxis.ZoomPosition = 0;
Let me know if you have further queries
Regards,
Athaur Rahman GS