This is a prototype to feed CSV data generated from VSCapture into a basic chart and an information display.
The Javascript functions are outlined below:
It creates a row, called a "Frame", which contains a chart and an information display box. The info box displays the most recent numerical data recorded in the datastream by default.
It creates a javascript chartjs object to fit inside the specified frame.
This function receives 5 parameters. It receives CSV data and then pre-processes the timestamp of CSV into JavaScript Epoch Time (which is to be used by chartjs). The y-axis data is assumed to be numerical in nature.
- sourceObjectCSV refers to CSV data
- xDataName is the x-axis variable. It is "Time" by default.
- yDataName is the y-axis variable.
- idnum is the chart id
- param1 is the additional parameter for time manipulation, if set to "MMDDYYYY" it assume "MMDDYYY" as the input time format for the CSV data. Otherwise taken as "DDMMYYYY" by default.
Currently, for Demo purposes, this generates the chart and info output based on the CSV data received.
The data sources for this demonstration are from BIS data from actual patient, and CSV files downloaded from GitHub/VSChart project.