Foxtable(狐表)用户栏目专家坐堂 → 移动图标格式


  共有2524人关注过本帖树形打印复制链接

主题:移动图标格式

帅哥哟,离线,有人找我吗?
yifan3429
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2482 积分:22932 威望:0 精华:0 注册:2011/3/29 17:14:00
移动图标格式  发帖心情 Post By:2019/4/21 11:56:00 [显示全部帖子]

我想改成饼图或是雷达图

Dim e As RequestEventArgs = args(0)
Select Case e.Path
    Case "test12.htm"
        Dim wb As New WeUI
        Dim Chart As New ChartBuilder  
        Dim Series As WinForm.ChartSeries 
        Chart.PrintWidth = 140 
        Chart.PrintHeight = 100
        Chart.VisualEffect = True
        For n As Integer = 0 To 1
            Series = Chart.SeriesList.Add() 
            Series.Length = 10 
            For i As Integer = 0 To 9 
                Series.X(i) = i 
                Series.Y(i) = i + n * 2 + Rand.Next(5) 
            Next
        Next
        wb.AddPageTitle("","ph1","FoxUI")
        wb.InsertHTML("<img width='100%' src='" & wb.ImageToBase64(Chart.Image) &  "'/>")
        e.WriteString(wb.Build)
End Select

 回到顶部
帅哥哟,离线,有人找我吗?
yifan3429
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2482 积分:22932 威望:0 精华:0 注册:2011/3/29 17:14:00
  发帖心情 Post By:2019/4/21 19:08:00 [显示全部帖子]

Dim e As RequestEventArgs = args(0)
Select Case e.Path
    Case "test12.htm"
        Dim wb As New WeUI
        Dim Chart As New ChartBuilder
        Dim Series As WinForm.ChartSeries
        Chart.PrintWidth = 140
        Chart.PrintHeight = 100
        Chart.VisualEffect = True
        
        'Chart= Forms("窗口1").Controls("Chart1") ' 引用窗口中的图表
        Chart.VisualEffect = True '加上这一行,让你的图表更漂亮
        Chart.ChartType = ChartTypeEnum.Pie '图表1类型改为Bar(条形)
        
        
        
        For n As Integer = 0 To 1
            Series = Chart.SeriesList.Add()
            Series.Length = 10
            For i As Integer = 0 To 9
                Series.X(i) = i
                Series.Y(i) = i + n * 2 + Rand.Next(5)
            Next
        Next
        wb.AddPageTitle("","ph1","FoxUI")
        wb.InsertHTML("<img width='100%' src='" & wb.ImageToBase64(Chart.Image) &  "'/>")
        e.WriteString(wb.Build)
End Select


这样变成了九个饼

 回到顶部