Articles in this section

How to display multiple chartcontrols as multiple chart areas in WinForms Chart?

In Syncfusion WinForms Chart, when you want to render more than one chart, the control supports multiple chart areas. Each ChartControl acts as a separate chart area. To align these charts visually and ensure consistent axis alignment, you need to follow the below steps.

Steps to display multiple chart controls as multiple chart areas

1. Create multiple ChartControls

Add two or more ChartControl components to your form. Each will represent a separate chart area.

2. Set axes LocationType to Set

For each chart control, set the axes LocationType  property to Set. This allows you to manually position the axes rather than letting the chart auto-align them.

this.chartControl2.PrimaryXAxis.LocationType = ChartAxisLocationType.Set;
Me.chartControl2.PrimaryXAxis.LocationType = ChartAxisLocationType.Set

3. Align axes based on longest labels

Identify which chart control has the longest axis labels (usually the one with larger values or longer text). Use its Axis Location  as a reference and apply the same location to the other chart controls to ensure visual alignment.

this.chartControl2.PrimaryXAxis.Location = chartControl1.PrimaryXAxis.Location;
Me.chartControl2.PrimaryXAxis.Location = chartControl1.PrimaryXAxis.Location

Output:

Multiple chart areas


Conclusion

I hope you enjoyed learning about how to display multiple chart controls as multiple chart areas in WinForms Chart.

You can refer to our WinForms Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. You can also explore our WinForms Chart examples to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied