Hello I'm having Trouble here in my ms chart.
as you can see the chart in the right side the secondary axis i want it to be fixed in the line of the primary axis in the left side
Public Sub Chart_BU_GP_vs_Target()
With Chart_EBU_GP_vs_Target
.Series.Clear()
.Legends.Clear()
.ChartAreas("ChartArea1").AxisX.MinorTickMark.Enabled = True
.ChartAreas("ChartArea1").AxisX.Interval = 1
.ChartAreas("ChartArea1").AxisX.IsLabelAutoFit = True
.ChartAreas("ChartArea1").AxisX.LabelAutoFitStyle = DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30
.Series.Add("Gross Profit")
.Series("Gross Profit").ChartType = DataVisualization.Charting.SeriesChartType.Column
.Series("Gross Profit").Points.AddXY("January", Me.BU_JanGP.Text)
.Series("Gross Profit").Points.AddXY("February", Me.BU_FebGP.Text)
.Series("Gross Profit").Points.AddXY("March", Me.BU_MarGP.Text)
.Series("Gross Profit").Points.AddXY("April", Me.BU_AprGP.Text)
.Series("Gross Profit").Points.AddXY("May", Me.BU_MayGP.Text)
.Series("Gross Profit").Points.AddXY("June", Me.BU_JunGP.Text)
.Series("Gross Profit").Points.AddXY("July", Me.BU_JulGP.Text)
.Series("Gross Profit").Points.AddXY("August", Me.BU_AugGP.Text)
.Series("Gross Profit").Points.AddXY("September", Me.BU_SepGP.Text)
.Series("Gross Profit").Points.AddXY("October", Me.BU_OctGP.Text)
.Series("Gross Profit").Points.AddXY("November", Me.BU_NovGP.Text)
.Series("Gross Profit").Points.AddXY("December", Me.BU_DecGP.Text)
.Series.Add("Target")
.Series("Target").ChartType = DataVisualization.Charting.SeriesChartType.Line
.Series("Target").BorderWidth = 3
.Series("Target").YAxisType = DataVisualization.Charting.AxisType.Secondary
.Series("Target").Points.AddXY("January", Me.BU_JanTGP.Text)
.Series("Target").Points.AddXY("February", Me.BU_FebTGP.Text)
.Series("Target").Points.AddXY("March", Me.BU_MarTGP.Text)
.Series("Target").Points.AddXY("April", Me.BU_AprTGP.Text)
.Series("Target").Points.AddXY("May", Me.BU_MayTGP.Text)
.Series("Target").Points.AddXY("June", Me.BU_JunTGP.Text)
.Series("Target").Points.AddXY("July", Me.BU_JulTGP.Text)
.Series("Target").Points.AddXY("August", Me.BU_AugTGP.Text)
.Series("Target").Points.AddXY("September", Me.BU_SepTGP.Text)
.Series("Target").Points.AddXY("October", Me.BU_OctTGP.Text)
.Series("Target").Points.AddXY("November", Me.BU_NovTGP.Text)
.Series("Target").Points.AddXY("December", Me.BU_DecTGP.Text)
.Legends.Add("Account Manager")
.Legends("Account Manager").Docking = DataVisualization.Charting.Docking.Bottom
.Series("Gross Profit").Color = Color.DodgerBlue
.Series("Target").Color = Color.Red
.Series("Gross Profit").BorderColor = Color.Black
.Series("Target").BorderColor = Color.Black
.ChartAreas("ChartArea1").AxisY.LabelStyle.Format = "##,#"
.ChartAreas("ChartArea1").AxisY2.LabelStyle.Format = "##,#"
.ChartAreas("ChartArea1").AxisY.LabelStyle.Font = New System.Drawing.Font("Arial", 8.7F, System.Drawing.FontStyle.Bold)
.ChartAreas("ChartArea1").AxisY2.LabelStyle.Font = New System.Drawing.Font("Arial", 8.7F, System.Drawing.FontStyle.Bold)
End With
End Sub
here is my code