如何在图表上放置交互式线? [英] How to put an interactive line on a chart?

查看:88
本文介绍了如何在图表上放置交互式线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在开发一个程序,它有一个深度与体积的二维折线图。在图表下方有一个文本框,用户可以在其中输入深度值。是否有可能沿图表的深度划线?默认情况下,该线的深度应为0米。另外,如果可能的话,如何用任何与背景不同的颜色突出显示该深度的线条和体积的有界区域?


附件是我到目前为止的程序。用户输入的深度是txtRTimeDepth。非常感谢您的帮助。


TQ。



附加文件
(36.9 KB,85 views)


使用代码=添加一个命令按钮(ComDraw)(这会将行放到图表中的坐标(0,0))

展开 | 选择 | Wrap | 行号< /跨度>

Hi,

I am developing a program that have a 2d line chart of Depth vs Volume. Below the chart there is a textbox where user can enter a depth value. Is it possible to have a line along the depth on the chart? The line should be at 0m depth by default. Plus, if possible, how to highlight the bounded region by the line and volume at that depth with any color different from its background?

Attached is the program i have so far. The depth to be entered by user is the txtRTimeDepth. Your help is highly appreciated.

TQ.

Attached Files
170311.zip (13.7 KB, 151 views)

解决方案

Please can you attach ALL the files?
I get an error on loading the VBP: some files are missing in the ZIP.


Here they are. All I need is an interactive line on the chart representing the real time depth as entered by user in the text box at the bottom of the form (frmMainMenu).

Can you take a look at my frmCommPort also? I am stuck at the code to receive data from comm port.

TQ.

Attached Files
retisro_210311.zip (36.9 KB, 85 views)


Add a command button (ComDraw) with the code= (this will put the line to the coordinates (0,0) in the chart)

Expand|Select|Wrap|Line Numbers


这篇关于如何在图表上放置交互式线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆