Created
July 23, 2021 02:29
-
-
Save chancesmith/670b5b3b884b59a995a1e136e2eac1fb to your computer and use it in GitHub Desktop.
chart types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type StatType = {} | |
type BarType = { | |
label: string; | |
value: number; | |
}; | |
type DetailType = { | |
key: string; | |
value: number; | |
}; | |
type BarChartReport = { | |
reportType: 'BARCHART'; | |
title: string; | |
bars: BarType[]; | |
topOfRange: number; | |
} | |
type StatReport = { | |
reportType: 'STAT'; | |
title: string; | |
stat: number; | |
timeFrame: string; | |
details: DetailType[]; | |
} | |
type DashboardReports = (BarChartReport|StatReport)[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment