Axis X and Y on chart behave differently

  • Thread starter Thread starter Vergassivellaunus
  • Start date Start date
V

Vergassivellaunus

Guest
These simple lines should put labels on x and y axis of a chart:

Me.Chart1.Series(0).Points.AddXY(0, 0)

Me.Chart1.ChartAreas(0).AxisX.Enabled = AxisEnabled.True
Me.Chart1.ChartAreas(0).AxisX.Title = "X"
Me.Chart1.ChartAreas(0).AxisY.Enabled = AxisEnabled.True
Me.Chart1.ChartAreas(0).AxisY.Title = "Y"

Me.Chart1.ChartAreas(0).AxisX.Minimum = 0
Me.Chart1.ChartAreas(0).AxisX.Maximum = 1
Me.Chart1.ChartAreas(0).AxisX.MinorTickMark.Enabled = True

Me.Chart1.ChartAreas(0).AxisY.Minimum = 0
Me.Chart1.ChartAreas(0).AxisY.Maximum = 1

Why i have to add a point to make visible labels?

Why labels on y axis are correct but on x axis appears only a "1"?

1553049.png

Continue reading...
 

Similar threads

V
Replies
0
Views
116
Vergassivellaunus
V
V
Replies
0
Views
94
Vergassivellaunus
V
V
Replies
0
Views
135
Vergassivellaunus
V
V
Replies
0
Views
92
Vergassivellaunus
V
V
Replies
0
Views
108
Vergassivellaunus
V
Back
Top