Foxtable(狐表)用户栏目专家坐堂 → [求助]图系的颜色


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

主题:[求助]图系的颜色

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


加好友 发短信
等级:童狐 帖子:257 积分:4399 威望:0 精华:0 注册:2011/7/5 9:38:00
[求助]图系的颜色  发帖心情 Post By:2016/4/28 10:53:00 [显示全部帖子]

Dim Chart As WinForm.Chart 
Dim Series As WinForm.ChartSeries 
Dim t As Table = Tables("历史数据") 
Dim n As Integer = t.Compute("Max(序号)") - 120
t.filter = "[序号] > '" & n & "'"
Chart= Forms("K线图").Controls("Chart1") 
Chart.ChartType = ChartTypeEnum.Candle 
Chart.AxisY.Text = "价格"
Chart.SeriesList.Clear() 
Series = Chart.SeriesList.Add() 
Series.LineColor = Color.Blue
'Series.LineColor = Color.Red  
'Series.MarkSize = 3
Series.Length = t.Rows.Count  
For i As Integer = 0 To t.Rows.Count - 1 
    Series.X(i) = i 
    Series.Y(i) = t.Rows(i)("最高") 
    Series.Y1(i) = t.Rows(i)("最低") 
    Series.Y2(i) = t.Rows(i)("开盘") 
    Series.Y3(i) = t.Rows(i)("收盘") 
Next
我想将同一坐标系的[收盘]>=[开盘]设置为红色,[收盘]<[开盘]设置为蓝色;即空心蜡烛图为红色,实心蜡烛图为蓝色;能实现码?

 回到顶部