|
|
 |
 |
|
|
 |
|
使用XML技术实现OWC对数据库的展示
|
|
|
|
编辑:华夏媒体 作者:未知 来源:网络 时间:2006-07-29 总浏览量:2718 |
|
文字大小:[ 大 中 小 ]
文字颜色: 双击滚屏/单击停止 |
|
[上一页] [1] [2] [3] [4] [5] [下一页]
|
Set axCategory = cspace.Charts(0).Axes(c.chAxisPositionCategory) with axCategory .GroupingUnitType = c.chAxisUnitMonth ’月 .GroupingUnit = 1 ’单位 .NumberFormat="Short Date" ’短日期 end with ’添加数据序列2 set s2 = ch.SeriesCollection.Add() s2.name="通话次数(次)" s2.Caption=s2.name s2.SetData c.chDimValues, c.chDataLiteral, txtData2 ’标题 ch.HasTitle = true ch.Title.Caption="通话情况月报" ch.Title.font.color="black" ch.Title.font.size=10 ch.Title.font.bold=true ’ChartSpace属性 cspace.Border=c.chLineDash cspace.HasSelectionMarks=true cspace.AllowFiltering=true ’允许命令与分组 cspace.AllowPropertyToolbox=true ’设置图例及位置 ch.Legend.Position=c.chLegendPositionRight ch.HasLegend=false ’分成不同的组,显示双坐标轴 s2.UnGroup TRUE Set axIncomeAxis = ch.Axes.Add(s2.Scalings(c.chDimValues)) axIncomeAxis.Position = c.chAxisPositionRight axIncomeAxis.HasMajorGridlines=false s2.type=0 ’柱形图 End Sub 这样,我们就得到了数据表格和图表,其最终效果如下: 这样,借助于XML技术和IE绑定技术,我们就实现了OWC对数据库中数据的展示,而在客户端并没有暴露任何数据连接信息。 2.2 其他功能 OWC可以很容易的实现将所见到的图表保存为本地图片,大大方便了使用者。同时,OWC提供了多种图表类型,如:饼图、曲线图、柱形图等,适合在不同的情况下展现数据。
|
|
[上一页] [1] [2] [3] [4] [5] [下一页]
|
|
|
打印 收藏 关闭 至顶部 |
|
 |
|