HashrateSiteView
Site-level hashrate trend - aggregates hashrate across the whole site for the selected date range, with an optional miner-type filter that scopes the sum to …
Site-level hashrate trend - aggregates hashrate across the whole site for the selected date range, with an optional miner-type filter that scopes the sum to a subset.
import { HashrateSiteView } from "@tetherto/mdk-react-devkit";| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
log | Optional | HashrateGroupedLog | undefined | — | Hashrate log grouped by miner type. |
isLoading | Optional | boolean | undefined | — | Loading state - drives the chart spinner. |
dateRange | Optional | HashrateDateRange | undefined | — | Selected date range used by the host to drive the query. |
onDateRangeChange | Optional | ((range: HashrateDateRange) => void) | undefined | — | Fires when the user picks a new range from the DateRangePicker. |
onReset | Optional | VoidFunction | undefined | — | Optional reset handler shown as a "Reset" button next to the date picker. |
Usage
Site-level hashrate trend tab inside <Hashrate>. Aggregates the grouped
hashrate log across all (or filtered) miner types into a single series for
the selected date range.
Example
import { HashrateSiteView } from './site-view'export const HashrateSiteViewExample = () => ( <div className="mdk-example-row"> <HashrateSiteView isLoading={false} log={[]} /> </div>)HashrateMiningUnitView
Hashrate drilldown grouped by mining unit / container - bar chart of the latest hashrate per container with an optional multi-select filter. Drops BE-leaked …
LineChartCard
Composable line-chart card with title, timeline range selector, legend (basic or detailed), error boundary, and an optional min/max/avg footer. Accepts eithe…