国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

Office XP charting Examples in asp.net

2024-07-10 12:58:22
字體:
供稿:網(wǎng)友

imports owc.stimgraph.helper

  

private sub page_load(byval sender as system.object, byval e as system.eventargs) handles mybase.load


             'create chartspace/chart

dim ochartspace as new owc10.chartspace()

dim ochart as owc10.chchart

dim oseries as owc10.chseries

  

'get a newly created chart from the chartspace

ochart = ochartspace.charts.add

  

'get a newly created series from the chart

oseries = ochart.seriescollection.add

  

'set the title

ochart.hastitle = true

ochart.title.caption = "dot net charting"

  

'demo hard coded

dim avalues() as double = {1, 2, 4, 8, 16}

dim acat() as string = {"a", "b", "c", "d", "e"}

  

'setup the text on the bottom axis

call ochart.setdata(owc10.chartdimensionsenum.chdimcategories, -1, getchartsafearray(acat))

  

'add the data to the series

call oseries.setdata(owc10.chartdimensionsenum.chdimvalues, -1, getchartsafearray(avalues))

  

'*******************************************************************************

'*** output the chart

'*******************************************************************************

'erase any garbage from response

response.buffer = true

response.clear()

  

'tell browser to expect a gif

response.contenttype = "image/gif"

  

'send the gif binary data

response.binarywrite(ochartspace.getpicture("gif", 300, 300))

  

'stop

response.end()

end sub

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 汾西县| 新宾| 保靖县| 余干县| 东海县| 东山县| 新丰县| 迁安市| 夏邑县| 和龙市| 汕尾市| 和平区| 滨州市| 锡林浩特市| 绥芬河市| 文登市| 洱源县| 新巴尔虎左旗| 呼玛县| 华亭县| 日土县| 阿城市| 神池县| 吉隆县| 农安县| 大姚县| 太和县| 开原市| 濮阳市| 张家界市| 共和县| 锦屏县| 贡嘎县| 花莲县| 兴和县| 邯郸市| 宣威市| 南部县| 衡水市| 临猗县| 潞城市|