How to draw the Y-axis at the center of the X-axis
4 Oct 2018 / 1 minute to read
The y-axis can be drawn at any custom position using the ChartAxisLocationType class. This can be achieved by setting the value of the LocationType property of the PrimaryYAxis to Set.
// Drawing Y-axis at the center of the X-axis. this.chartControl1.PrimaryYAxis.LocationType = ChartAxisLocationType.Set; this.chartControl1.PrimaryYAxis.Location = new PointF(300, 352);
// Drawing Y-axis at the center of the X-axis. Me.chartControl1.PrimaryYAxis.LocationType=ChartAxisLocationType.Set Me.chartControl1.PrimaryYAxis.Location = New PointF(300, 352)
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page