V
Vergassivellaunus
Guest
I have a chart with one series of data, with x axis logartimic.
This is my code:
Private Sub Button17_Click(sender As Object, e As EventArgs) Handles Button17.Click
Dim fs As Integer
Dim x As Integer
fs = 500
Chart1.ChartAreas(0).AxisX.LabelStyle.Enabled = True
Chart1.ChartAreas(0).AxisX.IsLogarithmic = True
Chart1.ChartAreas(0).AxisX.LogarithmBase = 10
Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.LightGray
Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.LightGray
Chart1.ChartAreas(0).AxisY.Maximum = 100
Chart1.ChartAreas(0).AxisY.Minimum = 0
Chart1.ChartAreas(0).AxisX.Maximum = fs
Chart1.ChartAreas(0).AxisX.Minimum = 0.1
Chart1.Series(0).Color = Color.Red
Chart1.Series(0).Points.AddXY(1, 1)
For n = 1 To fs
x = 50 + 10 * Cos(0.1 * n)
Me.Chart1.Series(0).Points.AddXY(n * fs / Chart1.ChartAreas(0).AxisX.Maximum, x)
Next
End Sub
and this is the outcome:
I cannot eliminate that point in "1", even if i change scale,minimum or what else.
Continue reading...
This is my code:
Private Sub Button17_Click(sender As Object, e As EventArgs) Handles Button17.Click
Dim fs As Integer
Dim x As Integer
fs = 500
Chart1.ChartAreas(0).AxisX.LabelStyle.Enabled = True
Chart1.ChartAreas(0).AxisX.IsLogarithmic = True
Chart1.ChartAreas(0).AxisX.LogarithmBase = 10
Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.LightGray
Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.LightGray
Chart1.ChartAreas(0).AxisY.Maximum = 100
Chart1.ChartAreas(0).AxisY.Minimum = 0
Chart1.ChartAreas(0).AxisX.Maximum = fs
Chart1.ChartAreas(0).AxisX.Minimum = 0.1
Chart1.Series(0).Color = Color.Red
Chart1.Series(0).Points.AddXY(1, 1)
For n = 1 To fs
x = 50 + 10 * Cos(0.1 * n)
Me.Chart1.Series(0).Points.AddXY(n * fs / Chart1.ChartAreas(0).AxisX.Maximum, x)
Next
End Sub
and this is the outcome:
I cannot eliminate that point in "1", even if i change scale,minimum or what else.
Continue reading...