TChart控件中如何加入数据点

三杯倒 2001-10-23 12:20:33
加精
TChart如何加入数据呀???
...全文
134 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
三杯倒 2001-10-23
  • 打赏
  • 举报
回复
真是太棒了!!!
Chxis 2001-10-23
  • 打赏
  • 举报
回复
add mothod:

Applies to

TChartSeries component

Declaration

function Add(Const AValue:Double; Const ALabel:String; AColor:TColor):Longint; virtual;

Description

The TChartSeries Add method can be used to insert new Series points when you do not have an X Value for the point.

This function inserts a new point in the Series. The new point only has Y values. X value is automatically calculated.

The AXLabel parameter is optional (can be empty '').

The AColor parameter is optional (can be clTeeColor).

The function returns the new point position in the Values list.



你试试
Chart1->Series[0]->Add(40,"test",clRed);//clRed

就知道了
Chxis 2001-10-23
  • 打赏
  • 举报
回复
add mothod:

Applies to

TChartSeries component

Declaration

function Add(Const AValue:Double; Const ALabel:String; AColor:TColor):Longint; virtual;

Description

The TChartSeries Add method can be used to insert new Series points when you do not have an X Value for the point.

This function inserts a new point in the Series. The new point only has Y values. X value is automatically calculated.

The AXLabel parameter is optional (can be empty '').

The AColor parameter is optional (can be clTeeColor).

The function returns the new point position in the Values list.



你试试
Chart1->Series[0]->Add(40,"test",clRed);//clRed

就知道了
三杯倒 2001-10-23
  • 打赏
  • 举报
回复
TO:dingzhenhhy(君莫舞、君不见玉环飞燕皆尘土!—快疯了):
Add(Form1->fUiBo[6][je],"",clRed)
这句话是什么意思呀???
路人丁 2001-10-23
  • 打赏
  • 举报
回复

Chart1->Series[0]->Add(Form1->fUiBo[6][je],"",clRed);//clRed
Chart1->Series[1]->Add(Form1->fUiBo[7][je],"",clGreen);
Chart1->Series[2]->Add(Form1->fUiBo[8][je],"",clYellow);
Chart1->Series[3]->Add(Form1->fUiBo[9][je],"",clBlue);
Chart1->Series[4]->Add(Form1->fUiBo[10][je],"",clWhite);
Chart1->Series[5]->Add(Form1->fUiBo[11][je],"",clGray);
在Chart1上画出六根线fUiBo[][]为浮点型数组.

13,873

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧