Foundation Dashboard Types
TypeScript types for dashboard data
Type definitions for dashboard data structures.
Package
@tetherto/mdk-ui-foundation
Types
ChartCardData
Minimum chart-ready payload — assignable to LineChartCardData from @tetherto/mdk-react-devkit.
type ChartCardData = { datasets: ChartDataset[] } & Partial<{ /** Y-axis tick formatter (e.g. `(v) => \`${v.toFixed(2)} MW\``). */ yTicksFormatter: (value: number) => string /** Cr…ChartDataPoint
A single (x, y) sample. x is a Unix timestamp in seconds (lightweight-charts convention); y is null to render gaps.
type ChartDataPoint = { x: number y: number | null }ChartDataset
A named line series with colour and points. Optional visible lets pages pre-hide datasets without removing them from the data array.
type ChartDataset = { label?: string borderColor: string data: ChartDataPoint[] visible?: boolean }