MDK Logo
UI Kitreact-devkitComponentsFoundationWidgets

BitMainPowerCharts

Time-series charts of per-phase power, voltage, and current draw for a BitMain container. Displays power consumption for Bitmain containers with distribution…

Time-series charts of per-phase power, voltage, and current draw for a BitMain container.

Displays power consumption for Bitmain containers with distribution boxes. Shows total power and individual power for each distribution box. Automatically calculates total power from the sum of both boxes and formats the display units (kW/MW) based on the power magnitude.

Features: - Total Power - Sky Blue line (sum of both boxes) - Dist. Box 1 Power - Violet line - Dist. Box 2 Power - Red line - Interactive legend for toggling series - Timeline selector (1h, 6h, 24h, 7d, 30d) - Current power consumption display with auto unit (W/kW/MW) - Automatic kW to W conversion for chart display

import { BitMainPowerCharts } from "@tetherto/mdk-react-devkit";
PropStatusTypeDefaultDescription
tagOptionalstring | undefined
chartDataPayloadOptionalChartDataPayload | undefined
chartTitleOptionalstring | undefined
dateRangeOptional{ start?: number | undefined; end?: number | undefined; } | undefined
dataOptionalUnknownRecord[] | undefined
timelineOptionalstring | undefined
fixedTimezoneOptionalstring | undefined
heightOptionalnumber | undefined
showLegendOptionalboolean | undefined
showRangeSelectorOptionalboolean | undefined
rangeOptionsOptional{ label: string; value: string; }[] | undefined
footerOptionalReact.ReactNode

Usage

Five time-series chart panels for BitMain hydro and immersion containers:

ComponentDescription
BitMainHydroLiquidTemperatureChartsDielectric liquid temperature for a hydro-cooled container.
BitMainLiquidPressureChartsDielectric liquid pressure across an immersion container.
BitMainLiquidTempChartsDielectric liquid temperature across an immersion container.
BitMainPowerChartsPer-phase power, voltage, and current draw.
BitMainSupplyLiquidFlowChartsSupply-side coolant flow rates.

All extend ContainerChartsBuilderProps.

Props (all components)

PropTypeRequiredDefaultDescription
tagstringyesContainer identifier used as the API telemetry key.
dataunknownyesRaw telemetry payload from the container API.
timelinestringnoActive time-range selection (e.g. "24h").
dateRangeDateRangenoCustom date range.
fixedTimezonestringnoIANA timezone string.
heightnumbernoChart height in pixels.
chartTitlestringnoPanel heading override.
pairIndicesreadonly number[]noSeries indices for paired-layout containers.

Minimal example

import { BitMainPowerCharts } from "@tetherto/mdk-react-devkit";

<BitMainPowerCharts tag="container-01" data={telemetry} timeline="24h" />

Examples

import { BitMainHydroLiquidTemperatureCharts } from '@tetherto/mdk-react-devkit'export const BitMainHydroLiquidTemperatureChartsExample = () => (  <div className="mdk-example-row">    <BitMainHydroLiquidTemperatureCharts tag="container-01" data={undefined} timeline="24h" />  </div>)
import { BitMainLiquidPressureCharts } from '@tetherto/mdk-react-devkit'export const BitMainLiquidPressureChartsExample = () => (  <div className="mdk-example-row">    <BitMainLiquidPressureCharts tag="container-01" data={undefined} timeline="24h" />  </div>)
import { BitMainLiquidTempCharts } from '@tetherto/mdk-react-devkit'export const BitMainLiquidTempChartsExample = () => (  <div className="mdk-example-row">    <BitMainLiquidTempCharts tag="container-01" data={undefined} timeline="24h" />  </div>)
import { BitMainPowerCharts } from '@tetherto/mdk-react-devkit'export const BitMainPowerChartsExample = () => (  <div className="mdk-example-row">    <BitMainPowerCharts tag="container-01" data={undefined} timeline="24h" />  </div>)
import { BitMainSupplyLiquidFlowCharts } from '@tetherto/mdk-react-devkit'export const BitMainSupplyLiquidFlowChartsExample = () => (  <div className="mdk-example-row">    <BitMainSupplyLiquidFlowCharts tag="container-01" data={undefined} timeline="24h" />  </div>)