作者kv1110 (Vicky)
看板Visual_Basic
标题[.NET] mschart y轴问题
时间Mon Jan 2 10:35:39 2012
我根据书上另外建了两个y轴
我也写了让第二个和第三个Y轴位移的程式
但目前三个是叠在一起的
能请帮我看看我有哪里写错吗?
CreateExtraYAxis(Chart1, Chart1.ChartAreas("ChartArea1"),
Chart1.Series("Series1"), 8, 9, 42, 35, 1)
CreateExtraYAxis(Chart1, Chart1.ChartAreas("ChartArea1"),
Chart1.Series("Series2"), 16, 9, 180, 40, 20)
CreateExtraYAxis(Chart1, Chart1.ChartAreas("ChartArea1"),
Chart1.Series("Series3"), 24, 9, 70, 0, 10)
Private Sub CreateExtraYAxis(ByVal myChart As Chart,
ByVal myChartArea As ChartArea,
ByVal mySeries As Series,
ByVal axisYOffset As Single,
ByVal labelYSize As Single,
ByVal max As Integer,
ByVal min As Integer,
ByVal Inter As Integer)
myChartAreaforAxis.Position.X -= axisYOffset
myChartAreaforAxis.InnerPlotPosition.X += labelYSize
最後两行是在写位移的部份
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.69.179.66
※ 编辑: kv1110 来自: 203.69.179.66 (01/02 15:17)