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
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 Yaxis against dates on the Xaxis.
Integrate this graph functionality into my existing data structures and form. The graph should dynamically update when the user selects a metric WeightBodyFat or BMIand 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 DataStructure
Public arrCustomerAs Customer 'stores all the student records from the file
Public indexCustomer As Integer
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 arrTrainerAs Trainer 'stores all the trainer records from the file
Public indexTrainer As Integer 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 arrResultsAs Result 'stores all the results records from the file
Public indexResults As Integer 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 arrSessionAs TrainingSession
Public IndexSession As Integer
Structure TrainingSession
Dim SessionID As String
Dim SessionDate As Date
Dim Duration As Integer
End Structure
End Module
File Handler:
Module FileHandler
Const fileCustomer As String customertxtfilename constant
Const fileTrainer As String trainertxtfilename constant
Const fileResult As String resulttxtfilename constant
'reads data from the file
Results
Weight
Check Weight History
BodyFat
Check Body Fat History
BMI
Check BMI HISTORY
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
