DBChart双曲线显示问题???

terry三 2011-09-13 08:36:31
DBChart双曲线显示
红色的Series1,只有一条数据,想要显示一条线,现在显示不出,不知要怎么处理
谢谢

...全文
107 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
terry三 2011-10-20
  • 打赏
  • 举报
回复
Series1.Labels.IndexOf(pchar('07/11')
這樣也只能返回-1

terry三 2011-10-20
  • 打赏
  • 举报
回复
樓上的解決了嘛,這句是什么意思,Labels[m]這里運行不了
result := trim(String(cht_xxx.Series[0].Labels[m])) ;
Channels_net 2011-10-14
  • 打赏
  • 举报
回复
应该是这个 result := trim(String(cht_xxx.Series[0].Labels[m])) ;
Channels_net 2011-10-14
  • 打赏
  • 举报
回复
我也是同样的问题,你解决了吗
result := TLabel(cht_xxx.Series[0].Labels.Items[m]^).Caption ;
terry三 2011-09-27
  • 打赏
  • 举报
回复
唉,解決不了,結貼
terry三 2011-09-17
  • 打赏
  • 举报
回复
各位大俠,救一下
terry三 2011-09-15
  • 打赏
  • 举报
回复
感谢 jayqiang
还有点问题,Series1.Labels.IndexOfLabel('07-12');
提示IndexOfLabel没有申明。
Series1联数源,X轴和Labels设为字段WT03是日期07-01到07-30,Y轴WT04是数字。
Series2,我想画一条线
Series2.AddxY(12,'07-12',clred);总是画到第一轴去了,
现在不知'07-12'对应的Series1X轴'07-12'的X值是多少????

bdmh 2011-09-14
  • 打赏
  • 举报
回复
那就添加一组一样的值,或者自己在canvas上画
jayqiang 2011-09-14
  • 打赏
  • 举报
回复
怎么根據DBChart2.Series[0].Labels的值如‘07/11’取得X軸的值

function TForm1.GetXValue(ALabelText: string): Variant;
var
vIndex:Integer;
xValue:Variant;
begin
vIndex := FastLineSeries_Series1.Labels.IndexOfLabel('07/12');
if vIndex <> -1 then
xValue := FastLineSeries_Series1.XValues[vIndex];
Result := xValue;
end;
terry三 2011-09-14
  • 打赏
  • 举报
回复
乍沒有回復呢,問題解決一部門,還有點點問題
DBChart2.Series[0]
DBChart2.Series[1]
怎么根據DBChart2.Series[0].Labels的值如‘07/11’取得X軸的值

然后DBChart2.Series[1].AddXY()



5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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