import { AbstractDataView } from "./abstract-data.view" ; import { CadenceDataModel } from "@elevate/shared/models" ; export abstract class AbstractCadenceDataView extends AbstractDataView { protected cadenceData : CadenceDataModel ; protected constructor ( cadenceData , units ) { super ( units ) ; this . cadenceData = cadenceData ; this . mainColor = [ 195 , 69 , 185 ] ; this . setGraphTitleFromUnits ( ) ; this . setupDistributionGraph ( this . cadenceData . cadenceZones ) ; this . setupDistributionTable ( this . cadenceData . cadenceZones ) ; } public render ( ) { this . makeGrid ( 3 , 5 ) ; this . insertDataIntoGrid ( ) ; this . generateCanvasForGraph ( ) ; this . injectToContent ( ) ; } protected insertDataIntoGrid ( ) { } }