Chart1.ChartAreas(0).AxisY.Minimum = V_Low Chart1.ChartAreas(0).AxisY.Maximum = V_High Chart1.ChartAreas(0).AxisX.LabelStyle.Angle = -90 Chart1.Series("DayClose").BorderWidth = 3 Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.LightGray Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.LightGray Dim axis = Chart1.ChartAreas(0).AxisX Dim yxis = Chart1.ChartAreas(0).AxisY axis.Interval = 1 If V_Range < 40 Then yxis.Interval = 1 Else yxis.Interval = CDec(Math.Truncate(V_Range / 40)) End If
Chart1.ChartAreas(0).AxisY.Enabled = AxisEnabled.[False] Chart1.ChartAreas(0).AxisY2.Enabled = AxisEnabled.[True]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)