Chart point not wanted

  • Thread starter Thread starter Vergassivellaunus
  • Start date Start date
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:

1571921.png

I cannot eliminate that point in "1", even if i change scale,minimum or what else.

Continue reading...
 

Similar threads

V
Replies
0
Views
154
Vergassivellaunus
V
V
Replies
0
Views
150
Vergassivellaunus
V
V
Replies
0
Views
94
Vergassivellaunus
V
V
Replies
0
Views
92
Vergassivellaunus
V
V
Replies
0
Views
108
Vergassivellaunus
V
Back
Top