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"?
Continue reading...
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"?
Continue reading...