您的位置:首页 > 其它

如何用OWC制作双轴的折线图(gzlucky)

2005-11-06 04:36 246 查看
对于第二个ChSeries进行Ungroup ThisChSeries.Ungroup(True) '生成一个新的坐标轴 thisAxis = owcChart.Axes.Add(ThisChSeries.Scalings(Owc11.ChartDimensionsEnum.chDimValues)) '定义格式,默认为空字串 thisAxis.NumberFormat = sYAxis_NumFormat '定义第二坐标轴靠右 thisAxis.Position = Owc11.ChartAxisPositionEnum.chAxisPositionRight '重新定义坐标轴的最大刻度 If (sYAxis_Maximum.Length > 0) Then thisAxis.Scaling.HasAutoMaximum = False thisAxis.Scaling.Maximum = Integer.Parse(sYAxis_Maximum) Else thisAxis.Scaling.HasAutoMaximum = True End If '重新定义坐标轴的最小刻度 If (sYAxis_Minimum.Length > 0) Then thisAxis.Scaling.HasAutoMinimum = False thisAxis.Scaling.Minimum = Integer.Parse(sYAxis_Minimum) Else thisAxis.Scaling.HasAutoMinimum = True End If thisAxis.MajorTickMarks = Owc11.ChartTickMarkEnum.chTickMarkAutomatic thisAxis.HasMajorGridlines = False thisAxis.MajorGridlines.Line.Color = sYAxis_Color thisAxis.MajorGridlines.Line.DashStyle = Owc11.ChartLineDashStyleEnum.chLineRoundDot
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: