Skip to content

VAHub Front End Trellising Plot Component

Kantemir Tvorogov edited this page Aug 9, 2023 · 3 revisions

Plot component (<trellising-plot>) shows plot of a particular type.
A type of chart the component will show is specified in the property 'plotType' of 'plot' input parameter.

Possible plot type values are listed in the 'PlotType' enum in /src/app/common/trellising/store/ITrellising.ts. See table with illustrations of plot types below.

A particular plot's 'plotType' property is set on the front end side after getting plot data from the server. Each plugin tab has its own class responsible for getting plot data located in /src/app/data directory (see 'Fetching Data from Back End' section on Trellising component page). You may check getPlotData() method of any of these classes to get the idea. E.g for class 'AesBarChartHttpService' you may see the following code in getPlotData() method:

this.http.post(path, data)
    .map((response) => {
        ...
        return {
            plotType: PlotType.STACKED_BARCHART,
            ...
        };
    })

Each plot type is rendered by a specific component with the help of Highcharts library. Plot-type-specific components can be found in the directory /src/app/common/trellising/grid/plot/plottypes, with subdirectories named after plot type.

Plot type Example tab / Illustration
BARLINECHART Adverse Events -> AEs Over Time
Bar Line Chart Example
BOXPLOT Respiratory -> Lung Function Measurements Over Time
Box Plot Example
CHORD Adverse Events -> AEs Chord Diagram
Chord Diagram Example
COLUMNRANGE Tumour Response -> Prior therapy vs. Time on compound (Beta)
Column Range Example
ERRORPLOT Labs -> Shift Plot
Error Plot Example
GROUPED_BARCHART Adverse Events -> CI Event Counts
Grouped Bar Chart Example
HEATMAP Oncogenic Biomarkers -> Genomic Profile
Heat Map Example
JOINEDRANGEPLOT Single Subject -> Renal
Joined Range Plot Example
LINECHART Respiratory -> Exacerbations Onset
Line Chart Example
RANGEPLOT Single Subject -> Vitals
Range Plot Example
SCATTERPLOT Liver Function -> Hy's Law
Scatter Plot Example
SIMPLE_LINEPLOT Tumour Response -> TL diameters over time (Beta)
Simple Line Plot Example
STACKED_BARCHART Population Summary -> Summary Plot
Stacked Bar Chart Example
WATERFALL Tumour Response -> Waterfall plot (Beta)
Waterfall Example

See also

Clone this wiki locally