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.
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.
Attached is the code for the Depth line in the Graph.
I have searched for a definition for a "drop-line" in the chart but nothing found.
So I have used a Fram as line and calculated the coordinates.
I tried to run your code using the attached data. However, when I enter a value in the real time level box, the message "The Value of Real Time Value is TOO HIGH" appears, even though the value I entered is still in the range.
Can we use the chart (ChartFraTESCalc) to draw the real time level line? For instance, if I enter -3.00 in the Real Time Level box, a new line along the -3.00 will be drawn on the graph. And when we enter another value, the line will be moved to that value line. Is it possible?
Sorry, my mistake.
I was still using the data from "cubic.txt" in which the MAX. value was positive.
In the data from "volumeTrapezium.txt", the MAX. is still negative.
So the code for the error trap of the maximum value should also be:
Expand|Select|Wrap|Line Numbers
...
If txtRTimeDepth > CDbl(ARRAYGRAPH(UBound(ARRAYGRAPH), 2)) Then
...
PS: I have also modified the DIM in "dlgTableTerramodel"
That works nicely! Thanks for the notes, they really helps my understanding of your codes.
However is it possible if the line stops at the graph line? My supervisor suggested for a horizontal line from the Y axis to the curve and a vertical line from X axis to the curve, to show the real time depth and volume by using the graph. But I don't have idea how to do this. Thank You in advance.
Sorry for this late response but there were a lot of problems to solve.
I have found a lot of questions on the web about drawing drop-lines but never an answer.
So I have written my own drop-lines.
I have also added a tool FOR THE DEVELOPER ONLY = "Calibration".
You can activate it with the red button on the graph frame.
You can hide it by setting the line
Expand|Select|Wrap|Line Numbers
frmMainMenu.ComCalibrate.Visible = True
to comment in the FrmSplash.
You can also run the program in his original form (for the user) by comment or delete the other lines:(this is only for the developer to go directly to the chart)
The tool "calibration" let you see where the boundaries are of the Chart element.
The green buttons are only information.
The red buttons and according scrollbars must be set because these values can't be retrieved from the element Chart.
These values are needed to calculate the coordinates of the drop-lines.
These values are also set by clicking "Apply" and saved when the program is closed with the message "Save the settings ?" in the settings.ini.
I am sorry but I don't understand how to use the calibration tool. I look through it and also the code but somehow I don't get it. When I import a volume file, the lines do not lie in the place they should be as the value I entered in the text box. I think it has something to do with the calibration, right? Can you explain how to use it?
Also, you have changed the graph axis, Depth and Volume. I prefer Depth in Y-axis and Volume in X-axis. I tried to change it but somehow it effects other calculation though.
Sorry again for my limited VB knowledge. I really appreciate your time on helping me on this. Thank YOU.
THANK YOU! The codes work super nice! Plus your .pdf file helps me A LOT to understand the Calibration tool. I'm totally into it right now. Thanks again! :)
This is not a standard control.
This is a control I have created for this application.
You find the file in my attachment as:"ReTISRO_v1.4.0_UserCtlCalib.ctl"
You can load it in your application with "Add" - "Usercontrol" in the Project window. (see last attachment.
PS: you can always create your own controls in vb6!
I am facing a problem here. I am using a data with positive and negative values. When I enter the positive value for the elevation, an error message "Run-Time Error '380', Invalid property values" appears highlighting this line
To use the data files, create new file (File > New) and download the data file (Download/Import). Data file with positive and negative values of elevation is trapezoidal_volume_shift3m.txt file. TQ.
If the data will be of different types: min-plus, plus-plus, min-min, than the place of the plotgrid will change and the user must adapt the boundaries.
So I have added a simple calibration tool to do it.(see attachment)
I've written a jsp that retrieves data from a sybase table via the sql
JSTL. Two colums of data are returned, date and value. Currently the
data is placed in an HTML table.
Does anyone know of...
hello there.. there used to be a usefull and simple control on vb6.0 which
was a line chart.. it was quite easy to use.. but in c# theres a pani named
"crystal reports" and its too much complicated...
Hi,
I am completely new to VC#.NET graphics code and would
like some help to stop me wasting my time up blind alleys.
I am looking for a line charting code example. Nothing posh or airy...
I need to generate a series of line charts dynamically from ADO.NET data in
a C#, ASP.NET application. I've read several articles about using GDI+ to
render graphs into a bitmap image and then to...
Hello:
I am trying to use Crystal Reports from VS.NET 2003 to produce a simple line
chart, where the x axis represents the number of measurements taken and the y
axis represents the range of...
Hi, All,
I want to draw line chart on the web using visual basic 2005, vb 2005
doesn't have chart components, so can anyone point out where I can start
working this?
Thanks,
Ma
I am looking to compare this year's defects to last year's defects (by month) with a two-line graph. So I will need a line chart with two different lines, one that shows YTD # of defects and another...
Hello Everyone,
I have run into a problem with creating a line chart in access. My ultimate goal is to have the chart produce monthly totals for the salesmen and also show there quotas for the...
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...