请问如何在柱状图顶端将数值一同显示出来? 使用mschart控件显示二维柱状图,请问如何在柱状图顶端将数值一同显示出来? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用teechart图形控件吧,这个很容易做到 MSCHART有这个属性的。你试试改属性吧。很容易就试出来了……我这里没有VB,具体属性名我忘了。 With MSChart1 .Backdrop.Fill.Style = VtFillStyleBrush .ColumnCount = 1 .RowCount = UBound(Y, 1) + 1 .Row = 1 For I = 1 To .RowCount .Row = I .RowLabel = Format(Y(I - 1, 0), "mm/dd/yy") Next I .Backdrop.Fill.Style = VtFillStyleBrush .Column = 1 .Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeOutside .Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.ValueFormat = "#0.00" .Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.Custom = True .Plot.SubPlotLabelPosition = VtChSubPlotLabelLocationTypeAbove For I = 1 To .RowCount .Row = I .Data = Y(I - 1, 1) Call .Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.ResetCustomLabel Next I End With在数组Y是一个二维数组(日期,数据)你可以用你自己的的数组代替。.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeOutside这句是用来显示数据点标签的。 VB image 显示ACCESS中的图片。在线等。。 asp的变量如何传递到VB的DLL中? 求 Visual Basic 6.0控件实用程序设计100例 光盘 下载 求救,保存不了图片调整后的效果 字符串操作~~~ SQL SERVER中如何自定义约束错误信息? ado和Dao的区别 使用MsHFlexGrid的朋友遇到过这样的问题吗? vb,想说爱你不容易 RealPlay组件 ASP調用VB編的DLL時﹐數組出現問題﹐請高手指點。急﹗在線等﹗ 用VB制作自动升级模块,技术如何实现。恳请高手们提供资料。
.Backdrop.Fill.Style = VtFillStyleBrush
.ColumnCount = 1
.RowCount = UBound(Y, 1) + 1
.Row = 1
For I = 1 To .RowCount
.Row = I
.RowLabel = Format(Y(I - 1, 0), "mm/dd/yy")
Next I
.Backdrop.Fill.Style = VtFillStyleBrush
.Column = 1
.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeOutside
.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.ValueFormat = "#0.00"
.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.Custom = True
.Plot.SubPlotLabelPosition = VtChSubPlotLabelLocationTypeAbove
For I = 1 To .RowCount
.Row = I
.Data = Y(I - 1, 1)
Call .Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.ResetCustomLabel
Next I
End With在数组Y是一个二维数组(日期,数据)
你可以用你自己的的数组代替。
.Plot.SeriesCollection(1).DataPoints(-1).DataPointLabel.LocationType = VtChLabelLocationTypeOutside这句是用来显示数据点标签的。