Question: This is in visual studio, visual basics framrwork 4 . 7 . 2 how do i create a graph functionality in my application that reads

This is in visual studio, visual basics framrwork 4.7.2
how do i create a graph functionality in my application that reads Weight, BodyFat, and BMI data from the arrResults array and displays it on a chart. The chart should update when the user presses a "Check" button for any of these metrics, plotting the selected metric on the Y-axis against dates on the X-axis.
Integrate this graph functionality into my existing data structures and form. The graph should dynamically update when the user selects a metric (Weight,BodyFat, or BMI)and display the corresponding values from the results file in a line chart format. The form will have buttons for each metric to trigger the update.
Data structures:
Module Data_Structure
Public arrCustomer(999)As Customer 'stores all the student records from the file
Public indexCustomer As Integer =0
'so you dont go into empty records
'Customer record structure
Structure Customer
Dim CustomerID As String
Dim firstname As String
Dim lastname As String
Dim phoneNUM As String
End Structure
'trainer
Public arrTrainer(999)As Trainer 'stores all the trainer records from the file
Public indexTrainer As Integer =0'dont go into empty records
'Trainer record structure
Structure Trainer
Dim TrainerID As String
Dim Tfirstname As String
Dim Tlastname As String
Dim Tphonenum As String
End Structure
'results
Public arrResults(999)As Result 'stores all the results records from the file
Public indexResults As Integer =0'dont go into empty records
'Result record structure
Structure Result
Dim WeightID As String
Dim BodyFatID As String
Dim BMIID As String
End Structure
Public arrSession(999)As TrainingSession
Public IndexSession As Integer =0
Structure TrainingSession
Dim SessionID As String
Dim SessionDate As Date
Dim Duration As Integer
End Structure
End Module
File Handler:
Module File_Handler
Const fileCustomer As String ="customer.txt"'filename constant
Const fileTrainer As String ="trainer.txt"'filename constant
Const fileResult As String ="result.txt"'filename constant
'reads data from the file
Results
Weight
Check Weight History
BodyFat
Check Body Fat History
BMI
Check BMI HISTORY
This is in visual studio, visual basics framrwork

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!