EnergyOverview
Gives users the ability to see a full overview of their energy consumption for electric and gas.
The user can see their consumption data in day view, week view, month view, year view, and interval view. They can also view their consumption in kWh and cost. There is also a table view which is especially useful for accessibility.
Formerly known as ConsumptionGraphControl and ConsumptionGraph when exported from Blueprint, this component combines the functionality of both into a compound component alongside the use of new hooks useEnergyOverview and useEnergyOverviewTimeframe which handle the data processing and timeframe logic respectively.
Electricity example
Preview
Electricity
Electricity usage 1610030294301
Day rate
Night rate
Code
import { useMeasurements, useMeasurementFilters } from "@krakentech/blueprint-utils/client";
const intervalValues = [
{ value: CustomDateRangeSelectValue.DAY, label: 'Day' },
{ value: CustomDateRangeSelectValue.WEEK, label: 'Week' },
{ value: CustomDateRangeSelectValue.MONTH, label: 'Month' },
];
const controlValues = [
{ value: DateRangeToggleValue.DAY, label: 'Day' },
{ value: DateRangeToggleValue.WEEK, label: 'Week' },
{ value: DateRangeToggleValue.MONTH, label: 'Month' },
{ value: DateRangeToggleValue.YEAR, label: 'Year' },
{ value: DateRangeToggleValue.CUSTOM },
];
// Measurement hooks from blueprint
const measurementFilters = useMeasurementFilters();
const electricityMeasurements = useMeasurements({
variables: {
accountNumber,
dateLocale,
propertyId,
utilityType: FuelType.Electricity,
measurementFilters,
},
});
const {
anchorDate,
setAnchorDate,
toggleIntervalValue,
setToggleIntervalValue,
dateRangeIntervalValue,
setDateRangeIntervalValue,
dateRangeDisplay,
dateRange,
nextDateRangeIsFuture,
DATE_RANGE_SET_ANCHOR_DATE_MAPPING,
} = useEnergyOverviewTimeframe({
measurementFiltersData: measurementFilters,
dateLocale: electricityMeasurements.dateLocale,
});
const electricityData = useEnergyOverview({
measurementsData: electricityMeasurements,
currency: 'GBP',
locale: 'en-GB',
});
return (
<EnergyOverview
dateLocale={electricityMeasurements.dateLocale}
loading={false}
>
<EnergyOverviewTimeframeControls
onDateChange={setAnchorDate}
onIntervalChange={(value) => {
setDateRangeIntervalValue(value);
}}
date={anchorDate}
intervalValues={intervalValues}
toggleIntervalValue={toggleIntervalValue}
dateRangeIntervalValue={dateRangeIntervalValue}
datePickerLabel="Start Date"
intervalLabel="Interval"
defaultIntervalValue={intervalValues[1]}
>
<EnergyOverviewTimeframeToggleButton
onChange={(value) => {
setToggleIntervalValue(value);
}}
toggleIntervalValue={toggleIntervalValue}
>
<EnergyOverviewTimeframeToggleOptionGroup>
{controlValues.map((option) => (
<EnergyOverviewTimeframeToggleOption
value={option.value}
key={option.value}
>
{option.label}
</EnergyOverviewTimeframeToggleOption>
))}
</EnergyOverviewTimeframeToggleOptionGroup>
</EnergyOverviewTimeframeToggleButton>
<EnergyOverviewTimeframeNavigation
disableForwardButton={nextDateRangeIsFuture}
onClickBack={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
-1
)
)
}
onClickForward={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
1
)
)
}
/>
</EnergyOverviewTimeframeControls>
<EnergyOverviewCard
utilityType="electricity"
chartData={electricityData.chartData}
legendEntries={electricityData.legendEntries}
lineChartData={electricityData.lineChartData}
dateRange={dateRange}
dateLocale={electricityData.dateLocale}
currency={electricityData.currency}
locale={electricityData.locale}
measurementUnit={electricityData.measurementUnit}
unitRatePricingLabel="Half-hour pricing"
costOfUsageCurrency={electricityData.costOfUsageCurrency}
informationalText={{ tooltipNoDataText: 'No Data' }}
measurementWithMultipleStatisticsEntries={
electricityData.measurementWithMultipleStatisticsEntries
}
totalConsumption={electricityData.totalConsumption}
totalStandingCharge={electricityData.totalStandingCharge}
>
<EnergyOverviewHeader>
<EnergyOverviewTitle>
<IconBolt /> Electricity
</EnergyOverviewTitle>
<EnergyOverviewViewType />
</EnergyOverviewHeader>
<EnergyOverviewDataSection>
<EnergyOverviewTimeframeSummary>
<EnergyOverviewDateDisplay>
{dateRangeDisplay}
</EnergyOverviewDateDisplay>
<EnergyOverviewTotalValue />
</EnergyOverviewTimeframeSummary>
<EnergyOverviewSettingsAndDisplay>
<EnergyOverviewSettingsControls>
<EnergyOverviewStandingCharge />
<EnergyOverviewUnitToggle defaultValue="kWh">
<EnergyOverviewUnitToggleOption value="kWh">
kWh
</EnergyOverviewUnitToggleOption>
<EnergyOverviewUnitToggleOption value="cost">
£
</EnergyOverviewUnitToggleOption>
</EnergyOverviewUnitToggle>
</EnergyOverviewSettingsControls>
<EnergyOverviewEnergyUsage>
{`Electricity usage ${electricityData.marketSupplyPointId}`}
</EnergyOverviewEnergyUsage>
</EnergyOverviewSettingsAndDisplay>
</EnergyOverviewDataSection>
</EnergyOverviewCard>
</EnergyOverview>
);Data
Data comes from Blueprint’s useMeasurementFilters and useMeasurements hooks, which is then transformed by our useEnergyOverviewTimeframe and useEnergyOverview hooks. See useEnergyOverview for more information and examples.
import { enGB } from 'date-fns/locale';
export const electricityMockMeasurements = {
day: {
anchorDate: '2026-01-13T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
measurementWithCostOfUsageData: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 2.9203449429000004,
totalStandingCharge: 0.5040000000000002,
chartData: [
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.0105,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0105,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0105,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.023426235000000004,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0077347725,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0052698449999999996,
},
...
],
],
lineChartData: [
{
x: new Date('2026-01-13T00:00:00.000Z'),
y: 0.29747599999999996,
},
{
x: new Date('2026-01-13T00:30:00.000Z'),
y: 0.08095000000000001,
},
{
x: new Date('2026-01-13T01:00:00.000Z'),
y: 0.08095000000000001,
},
...
],
dateRange: 'DAY',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-14T00:00:00.000Z',
startAt: '2026-01-13T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-19T00:00:00.000Z',
startAt: '2026-01-12T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.091000',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '0.73664500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.77347725000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.062000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '0.50189000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.52698450000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'2.23107000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'2.34262350000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.091000',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'0.73664500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'0.77347725000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.062000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'0.50189000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'0.52698450000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ3',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 100,
startAt: '2026-01-13T00:00:00.000Z',
endAt: '2026-01-14T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'DAY',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
week: {
anchorDate: '2026-01-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
measurementWithCostOfUsageData: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 35.4718276171,
totalStandingCharge: 3.5202999999999998,
chartData: [
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.5029,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.5029,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.5029,
},
...
],
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 4.496275370999999,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 3.276549402,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 5.865929244,
},
...
],
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.11525661,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.1928593275,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.063748125,
},
...
],
],
dateRange: 'WEEK',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-07T00:00:00.000Z',
startAt: '2026-01-06T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-12T00:00:00.000Z',
startAt: '2026-01-05T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '12.759000',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '312.05232400000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '327.65494020000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '18.36755500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '19.28593275000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '19.530000',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '558.65992800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '586.59292440000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '6.07125000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.37481250000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'428.21670200000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'449.62753710000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'10.97682000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'11.52566100000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '12.759000',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'312.05232400000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'327.65494020000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'18.36755500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'19.28593275000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '19.530000',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'558.65992800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'586.59292440000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'6.07125000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.37481250000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjY=',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 7,
startAt: '2026-01-05T00:00:00.000Z',
endAt: '2026-01-12T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'WEEK',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
month: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
measurementWithCostOfUsageData: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 127.72460605775001,
totalStandingCharge: 15.379100000000005,
chartData: [
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.4961,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.4961,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.4961,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 5.787043899,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 1.7299072245,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 2.8768136355,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.06289815,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.0759027675,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.06017823,
},
...
],
],
dateRange: 'MONTH',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '6.691000',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '164.75306900000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '172.99072245000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '7.22883500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7.59027675000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '10.350000',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '273.98225100000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '287.68136355000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.73126000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.01782300000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'551.14703800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'578.70438990000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5.99030000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.28981500000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '6.691000',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'164.75306900000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'172.99072245000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'7.22883500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7.59027675000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '10.350000',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'273.98225100000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'287.68136355000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5.73126000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.01782300000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjMw',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 31,
startAt: '2025-12-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'MONTH',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
year: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
measurementWithCostOfUsageData: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
legendEntries: [
'Standing charge',
'Consumption',
'Day rate',
'Night rate',
],
measurementUnit: 'kWh',
totalConsumption: 1246.1187842772501,
totalStandingCharge: 179.24669999999998,
chartData: [
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 15.4287,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 13.976099999999999,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 15.474,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 136.7996,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 38.0334,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 0,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 0,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 53.321638419,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 70.048590192,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 0,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 4.5041025225,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 5.4412849575,
},
...
],
],
dateRange: 'YEAR',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '389.799000',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1331.06',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1397.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5078.25127800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '5332.16384190000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.96214500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '450.41025225000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '3622.23',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '3803.34',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '324.961000',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1473.72',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1547.40',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '6671.29430400000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7004.85901920000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '518.21761500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '544.12849575000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1469.40',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1542.87',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'13028.53',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'13679.96',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '389.799000',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1331.06',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1397.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5078.25127800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'5332.16384190000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'428.96214500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'450.41025225000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'3622.23',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'3803.34',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '324.961000',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1473.72',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1547.40',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'6671.29430400000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7004.85901920000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'518.21761500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'544.12849575000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjEx',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 12,
startAt: '2025-01-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'YEAR',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
};Gas example
Preview
Gas
Gas usage 1457094105
Consumption
Code
import { useMeasurements, useMeasurementFilters } from "@krakentech/blueprint-utils/client";
const intervalValues = [
{ value: CustomDateRangeSelectValue.DAY, label: 'Day' },
{ value: CustomDateRangeSelectValue.WEEK, label: 'Week' },
{ value: CustomDateRangeSelectValue.MONTH, label: 'Month' },
];
const controlValues = [
{ value: DateRangeToggleValue.DAY, label: 'Day' },
{ value: DateRangeToggleValue.WEEK, label: 'Week' },
{ value: DateRangeToggleValue.MONTH, label: 'Month' },
{ value: DateRangeToggleValue.YEAR, label: 'Year' },
{ value: DateRangeToggleValue.CUSTOM },
];
// Measurement hooks from blueprint
const measurementFilters = useMeasurementFilters();
const gasMeasurements = useMeasurements({
variables: {
accountNumber,
dateLocale,
propertyId,
utilityType: FuelType.Gas,
measurementFilters,
},
});
const {
anchorDate,
setAnchorDate,
toggleIntervalValue,
setToggleIntervalValue,
dateRangeIntervalValue,
setDateRangeIntervalValue,
dateRangeDisplay,
dateRange,
nextDateRangeIsFuture,
DATE_RANGE_SET_ANCHOR_DATE_MAPPING,
} = useEnergyOverviewTimeframe({
measurementFiltersData: measurementFilters,
dateLocale: gasMeasurements.dateLocale,
});
const gasData = useEnergyOverview({
measurementsData: gasMeasurements,
currency: 'GBP',
locale: 'en-GB',
});
return (
<EnergyOverview
dateLocale={gasMeasurements.dateLocale}
loading={false}
>
<EnergyOverviewTimeframeControls
onDateChange={setAnchorDate}
onIntervalChange={(value) => {
setDateRangeIntervalValue(value);
}}
date={anchorDate}
intervalValues={intervalValues}
toggleIntervalValue={toggleIntervalValue}
dateRangeIntervalValue={dateRangeIntervalValue}
datePickerLabel="Start Date"
intervalLabel="Interval"
defaultIntervalValue={intervalValues[1]}
>
<EnergyOverviewTimeframeToggleButton
onChange={(value) => {
setToggleIntervalValue(value);
}}
toggleIntervalValue={toggleIntervalValue}
>
<EnergyOverviewTimeframeToggleOptionGroup>
{controlValues.map((option) => (
<EnergyOverviewTimeframeToggleOption
value={option.value}
key={option.value}
>
{option.label}
</EnergyOverviewTimeframeToggleOption>
))}
</EnergyOverviewTimeframeToggleOptionGroup>
</EnergyOverviewTimeframeToggleButton>
<EnergyOverviewTimeframeNavigation
disableForwardButton={nextDateRangeIsFuture}
onClickBack={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
-1
)
)
}
onClickForward={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
1
)
)
}
/>
</EnergyOverviewTimeframeControls>
<EnergyOverviewCard
utilityType="gas"
chartData={gasData.chartData}
legendEntries={gasData.legendEntries}
lineChartData={gasData.lineChartData}
dateRange={dateRange}
dateLocale={gasData.dateLocale}
currency={gasData.currency}
locale={gasData.locale}
measurementUnit={gasData.measurementUnit}
unitRatePricingLabel="Half-hour pricing"
costOfUsageCurrency={gasData.costOfUsageCurrency}
informationalText={{ tooltipNoDataText: 'No Data' }}
measurementWithMultipleStatisticsEntries={
gasData.measurementWithMultipleStatisticsEntries
}
totalConsumption={gasData.totalConsumption}
totalStandingCharge={gasData.totalStandingCharge}
>
<EnergyOverviewHeader>
<EnergyOverviewTitle>
<IconFire /> Gas
</EnergyOverviewTitle>
<EnergyOverviewViewType />
</EnergyOverviewHeader>
<EnergyOverviewDataSection>
<EnergyOverviewTimeframeSummary>
<EnergyOverviewDateDisplay>
{dateRangeDisplay}
</EnergyOverviewDateDisplay>
<EnergyOverviewTotalValue />
</EnergyOverviewTimeframeSummary>
<EnergyOverviewSettingsAndDisplay>
<EnergyOverviewSettingsControls>
<EnergyOverviewStandingCharge />
<EnergyOverviewUnitToggle defaultValue="kWh">
<EnergyOverviewUnitToggleOption value="kWh">
kWh
</EnergyOverviewUnitToggleOption>
<EnergyOverviewUnitToggleOption value="cost">
£
</EnergyOverviewUnitToggleOption>
</EnergyOverviewUnitToggle>
</EnergyOverviewSettingsControls>
<EnergyOverviewEnergyUsage>
{`Gas usage ${gasData.marketSupplyPointId}`}
</EnergyOverviewEnergyUsage>
</EnergyOverviewSettingsAndDisplay>
</EnergyOverviewDataSection>
</EnergyOverviewCard>
</EnergyOverview>
);Data
Data comes from Blueprint’s useMeasurementFilters and useMeasurements hooks, which is then transformed by our useEnergyOverviewTimeframe and useEnergyOverview hooks. See useEnergyOverview for more information and examples.
import { enGB } from 'date-fns/locale';
export const gasMockMeasurements = {
day: {
anchorDate: '2026-01-13T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '10.22',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '10.73',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
measurementWithCostOfUsageData: {
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '10.22',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '10.73',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 3.7164000000000015,
totalStandingCharge: 0.29760000000000003,
chartData: [
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.0062,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0062,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0062,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.1073,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.1445,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0,
},
...
],
],
dateRange: 'DAY',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-14T00:00:00.000Z',
startAt: '2026-01-13T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-19T00:00:00.000Z',
startAt: '2026-01-12T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '10.22',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '10.73',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '2.9919',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13.76',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '14.45',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.0000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'10.22',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'10.73',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '2.9919',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'13.76',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'14.45',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.0000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ3',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 100,
startAt: '2026-01-13T00:00:00.000Z',
endAt: '2026-01-14T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'DAY',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
week: {
anchorDate: '2026-01-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '460.84',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '483.88',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
measurementWithCostOfUsageData: {
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '460.84',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '483.88',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 32.9902,
totalStandingCharge: 2.0797,
chartData: [
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.29710000000000003,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.29710000000000003,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.29710000000000003,
},
...
],
],
dateRange: 'WEEK',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-07T00:00:00.000Z',
startAt: '2026-01-06T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-12T00:00:00.000Z',
startAt: '2026-01-05T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '460.84',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '483.88',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '103.1433',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '461.41',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '484.48',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '70.5598',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '315.57',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '331.35',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'460.84',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'483.88',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '103.1433',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'461.41',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'484.48',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '70.5598',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'315.57',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'331.35',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjY=',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 7,
startAt: '2026-01-05T00:00:00.000Z',
endAt: '2026-01-12T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'WEEK',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
month: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '316.85',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '332.69',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
measurementWithCostOfUsageData: {
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '316.85',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '332.69',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 108.00909999999999,
totalStandingCharge: 9.210100000000006,
chartData: [
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.29710000000000003,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.29710000000000003,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.29710000000000003,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 3.3269,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 2.6219,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 3.5899,
},
...
],
],
dateRange: 'MONTH',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '316.85',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '332.69',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '57.4156',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '249.71',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '262.19',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '78.2206',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '341.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '358.99',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'316.85',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'332.69',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '57.4156',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'249.71',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'262.19',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '78.2206',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'341.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'358.99',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjMw',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 31,
startAt: '2025-12-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'MONTH',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
year: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '810.96',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '851.51',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '14791.95',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '15531.54',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
measurementWithCostOfUsageData: {
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '810.96',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '851.51',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '14791.95',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '15531.54',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 863.4067999999999,
totalStandingCharge: 106.94360000000002,
chartData: [
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 8.5151,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 7.691,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 9.0404,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 155.3154,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 129.4642,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 75.887,
},
...
],
],
dateRange: 'YEAR',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '810.96',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '851.51',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '14791.95',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '15531.54',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '2086.3426',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '732.48',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '769.10',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '12329.93',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '12946.42',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '1350.5564',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '860.98',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '904.04',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '7227.34',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7588.70',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'810.96',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'851.51',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'14791.95',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'15531.54',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '2086.3426',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'732.48',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'769.10',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'12329.93',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'12946.42',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '1350.5564',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'860.98',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'904.04',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'7227.34',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7588.70',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjEx',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 12,
startAt: '2025-01-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'YEAR',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
};Multi example
Preview
Electricity
Electricity usage 1610030294301
Day rate
Night rate
Gas
Gas usage 1457094105
Consumption
Code
import { useMeasurements, useMeasurementFilters } from "@krakentech/blueprint-utils/client";
const intervalValues = [
{ value: CustomDateRangeSelectValue.DAY, label: 'Day' },
{ value: CustomDateRangeSelectValue.WEEK, label: 'Week' },
{ value: CustomDateRangeSelectValue.MONTH, label: 'Month' },
];
const controlValues = [
{ value: DateRangeToggleValue.DAY, label: 'Day' },
{ value: DateRangeToggleValue.WEEK, label: 'Week' },
{ value: DateRangeToggleValue.MONTH, label: 'Month' },
{ value: DateRangeToggleValue.YEAR, label: 'Year' },
{ value: DateRangeToggleValue.CUSTOM },
];
// Measurement hooks from blueprint
const measurementFilters = useMeasurementFilters();
const electricityMeasurements = useMeasurements({
variables: {
accountNumber,
dateLocale,
propertyId,
utilityType: FuelType.Electricity,
measurementFilters,
},
});
const gasMeasurements = useMeasurements({
variables: {
accountNumber,
dateLocale,
propertyId,
utilityType: FuelType.Gas,
measurementFilters,
},
});
const {
anchorDate,
setAnchorDate,
toggleIntervalValue,
setToggleIntervalValue,
dateRangeIntervalValue,
setDateRangeIntervalValue,
dateRangeDisplay,
dateRange,
nextDateRangeIsFuture,
DATE_RANGE_SET_ANCHOR_DATE_MAPPING,
} = useEnergyOverviewTimeframe({
measurementFiltersData: measurementFilters,
dateLocale: electricityMeasurements.dateLocale,
});
const electricityData = useEnergyOverview({
measurementsData: electricityMeasurements,
currency: 'GBP',
locale: 'en-GB',
});
const gasData = useEnergyOverview({
measurementsData: gasMeasurements,
currency: 'GBP',
locale: 'en-GB',
});
return (
<EnergyOverview
dateLocale={gasMeasurements.dateLocale}
loading={false}
>
<EnergyOverviewTimeframeControls
onDateChange={setAnchorDate}
onIntervalChange={(value) => {
setDateRangeIntervalValue(value);
}}
date={anchorDate}
intervalValues={intervalValues}
toggleIntervalValue={toggleIntervalValue}
dateRangeIntervalValue={dateRangeIntervalValue}
datePickerLabel="Start Date"
intervalLabel="Interval"
defaultIntervalValue={intervalValues[1]}
>
<EnergyOverviewTimeframeToggleButton
onChange={(value) => {
setToggleIntervalValue(value);
}}
toggleIntervalValue={toggleIntervalValue}
>
<EnergyOverviewTimeframeToggleOptionGroup>
{controlValues.map((option) => (
<EnergyOverviewTimeframeToggleOption
value={option.value}
key={option.value}
>
{option.label}
</EnergyOverviewTimeframeToggleOption>
))}
</EnergyOverviewTimeframeToggleOptionGroup>
</EnergyOverviewTimeframeToggleButton>
<EnergyOverviewTimeframeNavigation
disableForwardButton={nextDateRangeIsFuture}
onClickBack={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
-1
)
)
}
onClickForward={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
1
)
)
}
/>
</EnergyOverviewTimeframeControls>
<EnergyOverviewCard
utilityType="electricity"
chartData={electricityData.chartData}
legendEntries={electricityData.legendEntries}
lineChartData={electricityData.lineChartData}
dateRange={dateRange}
dateLocale={electricityData.dateLocale}
currency={electricityData.currency}
locale={electricityData.locale}
measurementUnit={electricityData.measurementUnit}
unitRatePricingLabel="Half-hour pricing"
costOfUsageCurrency={electricityData.costOfUsageCurrency}
informationalText={{ tooltipNoDataText: 'No Data' }}
measurementWithMultipleStatisticsEntries={
electricityData.measurementWithMultipleStatisticsEntries
}
totalConsumption={electricityData.totalConsumption}
totalStandingCharge={electricityData.totalStandingCharge}
>
<EnergyOverviewHeader>
<EnergyOverviewTitle>
<IconBolt /> Electricity
</EnergyOverviewTitle>
<EnergyOverviewViewType />
</EnergyOverviewHeader>
<EnergyOverviewDataSection>
<EnergyOverviewTimeframeSummary>
<EnergyOverviewDateDisplay>
{dateRangeDisplay}
</EnergyOverviewDateDisplay>
<EnergyOverviewTotalValue />
</EnergyOverviewTimeframeSummary>
<EnergyOverviewSettingsAndDisplay>
<EnergyOverviewSettingsControls>
<EnergyOverviewStandingCharge />
<EnergyOverviewUnitToggle defaultValue="kWh">
<EnergyOverviewUnitToggleOption value="kWh">
kWh
</EnergyOverviewUnitToggleOption>
<EnergyOverviewUnitToggleOption value="cost">
£
</EnergyOverviewUnitToggleOption>
</EnergyOverviewUnitToggle>
</EnergyOverviewSettingsControls>
<EnergyOverviewEnergyUsage>
{`Electricity usage ${electricityData.marketSupplyPointId}`}
</EnergyOverviewEnergyUsage>
</EnergyOverviewSettingsAndDisplay>
</EnergyOverviewDataSection>
</EnergyOverviewCard>
<EnergyOverviewCard
utilityType="gas"
chartData={gasData.chartData}
legendEntries={gasData.legendEntries}
lineChartData={gasData.lineChartData}
dateRange={dateRange}
dateLocale={gasData.dateLocale}
currency={gasData.currency}
locale={gasData.locale}
measurementUnit={gasData.measurementUnit}
costOfUsageCurrency={gasData.costOfUsageCurrency}
informationalText={{ tooltipNoDataText: 'No Data' }}
measurementWithMultipleStatisticsEntries={
gasData.measurementWithMultipleStatisticsEntries
}
totalConsumption={gasData.totalConsumption}
totalStandingCharge={gasData.totalStandingCharge}
>
<EnergyOverviewHeader>
<EnergyOverviewTitle>
<IconFire /> Gas
</EnergyOverviewTitle>
<EnergyOverviewViewType />
</EnergyOverviewHeader>
<EnergyOverviewDataSection>
<EnergyOverviewTimeframeSummary>
<EnergyOverviewDateDisplay>
{dateRangeDisplay}
</EnergyOverviewDateDisplay>
<EnergyOverviewTotalValue />
</EnergyOverviewTimeframeSummary>
<EnergyOverviewSettingsAndDisplay>
<EnergyOverviewSettingsControls>
<EnergyOverviewStandingCharge />
<EnergyOverviewUnitToggle defaultValue="kWh">
<EnergyOverviewUnitToggleOption value="kWh">
kWh
</EnergyOverviewUnitToggleOption>
<EnergyOverviewUnitToggleOption value="cost">
£
</EnergyOverviewUnitToggleOption>
</EnergyOverviewUnitToggle>
</EnergyOverviewSettingsControls>
<EnergyOverviewEnergyUsage>
{`Gas usage ${gasData.marketSupplyPointId}`}
</EnergyOverviewEnergyUsage>
</EnergyOverviewSettingsAndDisplay>
</EnergyOverviewDataSection>
</EnergyOverviewCard>
</EnergyOverview>
);Data
Data comes from Blueprint’s useMeasurementFilters and useMeasurements hooks, which is then transformed by our useEnergyOverviewTimeframe and useEnergyOverview hooks. See useEnergyOverview for more information and examples.
import { enGB } from 'date-fns/locale';
export const electricityMockMeasurements = {
day: {
anchorDate: '2026-01-13T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
measurementWithCostOfUsageData: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 2.9203449429000004,
totalStandingCharge: 0.5040000000000002,
chartData: [
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.0105,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0105,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0105,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.023426235000000004,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0077347725,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0052698449999999996,
},
...
],
],
lineChartData: [
{
x: new Date('2026-01-13T00:00:00.000Z'),
y: 0.29747599999999996,
},
{
x: new Date('2026-01-13T00:30:00.000Z'),
y: 0.08095000000000001,
},
{
x: new Date('2026-01-13T01:00:00.000Z'),
y: 0.08095000000000001,
},
...
],
dateRange: 'DAY',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-14T00:00:00.000Z',
startAt: '2026-01-13T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-19T00:00:00.000Z',
startAt: '2026-01-12T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.091000',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '0.73664500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.77347725000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.062000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '0.50189000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.52698450000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'2.23107000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'2.34262350000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.091000',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'0.73664500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'0.77347725000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.062000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'0.50189000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'0.52698450000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ3',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 100,
startAt: '2026-01-13T00:00:00.000Z',
endAt: '2026-01-14T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'DAY',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
week: {
anchorDate: '2026-01-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
measurementWithCostOfUsageData: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 35.4718276171,
totalStandingCharge: 3.5202999999999998,
chartData: [
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.5029,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.5029,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.5029,
},
...
],
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 4.496275370999999,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 3.276549402,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 5.865929244,
},
...
],
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.11525661,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.1928593275,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.063748125,
},
...
],
],
dateRange: 'WEEK',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-07T00:00:00.000Z',
startAt: '2026-01-06T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-12T00:00:00.000Z',
startAt: '2026-01-05T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '12.759000',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '312.05232400000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '327.65494020000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '18.36755500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '19.28593275000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '19.530000',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '558.65992800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '586.59292440000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '6.07125000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.37481250000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'428.21670200000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'449.62753710000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'10.97682000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'11.52566100000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '12.759000',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'312.05232400000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'327.65494020000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'18.36755500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'19.28593275000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '19.530000',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'558.65992800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'586.59292440000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'6.07125000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.37481250000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjY=',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 7,
startAt: '2026-01-05T00:00:00.000Z',
endAt: '2026-01-12T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'WEEK',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
month: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
measurementWithCostOfUsageData: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 127.72460605775001,
totalStandingCharge: 15.379100000000005,
chartData: [
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.4961,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.4961,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.4961,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 5.787043899,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 1.7299072245,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 2.8768136355,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.06289815,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.0759027675,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.06017823,
},
...
],
],
dateRange: 'MONTH',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '6.691000',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '164.75306900000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '172.99072245000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '7.22883500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7.59027675000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '10.350000',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '273.98225100000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '287.68136355000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.73126000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.01782300000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'551.14703800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'578.70438990000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5.99030000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.28981500000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '6.691000',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'164.75306900000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'172.99072245000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'7.22883500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7.59027675000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '10.350000',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'273.98225100000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'287.68136355000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5.73126000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.01782300000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjMw',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 31,
startAt: '2025-12-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'MONTH',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
year: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
measurementWithCostOfUsageData: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
legendEntries: [
'Standing charge',
'Consumption',
'Day rate',
'Night rate',
],
measurementUnit: 'kWh',
totalConsumption: 1246.1187842772501,
totalStandingCharge: 179.24669999999998,
chartData: [
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 15.4287,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 13.976099999999999,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 15.474,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 136.7996,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 38.0334,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 0,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 0,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 53.321638419,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 70.048590192,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 0,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 4.5041025225,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 5.4412849575,
},
...
],
],
dateRange: 'YEAR',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '389.799000',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1331.06',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1397.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5078.25127800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '5332.16384190000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.96214500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '450.41025225000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '3622.23',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '3803.34',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '324.961000',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1473.72',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1547.40',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '6671.29430400000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7004.85901920000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '518.21761500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '544.12849575000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1469.40',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1542.87',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'13028.53',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'13679.96',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '389.799000',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1331.06',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1397.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5078.25127800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'5332.16384190000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'428.96214500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'450.41025225000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'3622.23',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'3803.34',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '324.961000',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1473.72',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1547.40',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'6671.29430400000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7004.85901920000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'518.21761500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'544.12849575000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjEx',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 12,
startAt: '2025-01-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'YEAR',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
};
export const gasMockMeasurements = {
day: {
anchorDate: '2026-01-13T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '10.22',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '10.73',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
measurementWithCostOfUsageData: {
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '10.22',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '10.73',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 3.7164000000000015,
totalStandingCharge: 0.29760000000000003,
chartData: [
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.0062,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0062,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0062,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.1073,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.1445,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0,
},
...
],
],
dateRange: 'DAY',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-14T00:00:00.000Z',
startAt: '2026-01-13T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-19T00:00:00.000Z',
startAt: '2026-01-12T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '10.22',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '10.73',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '2.9919',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13.76',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '14.45',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.0000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '2.2216',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'10.22',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'10.73',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '2.9919',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'13.76',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'14.45',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.0000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.59',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.62',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.00',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ3',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 100,
startAt: '2026-01-13T00:00:00.000Z',
endAt: '2026-01-14T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'DAY',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
week: {
anchorDate: '2026-01-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '460.84',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '483.88',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
measurementWithCostOfUsageData: {
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '460.84',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '483.88',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 32.9902,
totalStandingCharge: 2.0797,
chartData: [
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.29710000000000003,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.29710000000000003,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.29710000000000003,
},
...
],
],
dateRange: 'WEEK',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-07T00:00:00.000Z',
startAt: '2026-01-06T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-12T00:00:00.000Z',
startAt: '2026-01-05T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '460.84',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '483.88',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '103.1433',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '461.41',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '484.48',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '70.5598',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '315.57',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '331.35',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '101.0291',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'460.84',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'483.88',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '103.1433',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'461.41',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'484.48',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '70.5598',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'315.57',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'331.35',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjY=',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 7,
startAt: '2026-01-05T00:00:00.000Z',
endAt: '2026-01-12T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'WEEK',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
month: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '316.85',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '332.69',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
measurementWithCostOfUsageData: {
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '316.85',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '332.69',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 108.00909999999999,
totalStandingCharge: 9.210100000000006,
chartData: [
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.29710000000000003,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.29710000000000003,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.29710000000000003,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 3.3269,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 2.6219,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 3.5899,
},
...
],
],
dateRange: 'MONTH',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '316.85',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '332.69',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '57.4156',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '249.71',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '262.19',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '78.2206',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '28.29',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '29.71',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '341.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '358.99',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '72.0279',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'316.85',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'332.69',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '57.4156',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'249.71',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'262.19',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '78.2206',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'28.29',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'29.71',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'341.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'358.99',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjMw',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 31,
startAt: '2025-12-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'MONTH',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
year: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '810.96',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '851.51',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '14791.95',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '15531.54',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
measurementWithCostOfUsageData: {
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '810.96',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '851.51',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '14791.95',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '15531.54',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
legendEntries: ['Standing charge', 'Consumption'],
measurementUnit: 'kWh',
totalConsumption: 863.4067999999999,
totalStandingCharge: 106.94360000000002,
chartData: [
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 8.5151,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 7.691,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 9.0404,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 155.3154,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 129.4642,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 75.887,
},
...
],
],
dateRange: 'YEAR',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'GAS',
marketSupplyPointId: '012345678901',
isLoading: false,
isFetching: false,
data: [
{
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '810.96',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '851.51',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '14791.95',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '15531.54',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '2086.3426',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '732.48',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '769.10',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '12329.93',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '12946.42',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '1350.5564',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '860.98',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '904.04',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '7227.34',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7588.70',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '2543.3626',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'810.96',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'851.51',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'14791.95',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'15531.54',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '2086.3426',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'732.48',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'769.10',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'12329.93',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'12946.42',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '1350.5564',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'860.98',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'904.04',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'7227.34',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7588.70',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjEx',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 12,
startAt: '2025-01-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'GAS',
propertyId: '1234567',
dateRange: 'YEAR',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
};Loading
Preview
Electricity
Electricity usage 1610030294301
Code
import { useMeasurements, useMeasurementFilters } from "@krakentech/blueprint-utils/client";
const intervalValues = [
{ value: CustomDateRangeSelectValue.DAY, label: 'Day' },
{ value: CustomDateRangeSelectValue.WEEK, label: 'Week' },
{ value: CustomDateRangeSelectValue.MONTH, label: 'Month' },
];
const controlValues = [
{ value: DateRangeToggleValue.DAY, label: 'Day' },
{ value: DateRangeToggleValue.WEEK, label: 'Week' },
{ value: DateRangeToggleValue.MONTH, label: 'Month' },
{ value: DateRangeToggleValue.YEAR, label: 'Year' },
{ value: DateRangeToggleValue.CUSTOM },
];
// Measurement hooks from blueprint
const measurementFilters = useMeasurementFilters();
const electricityMeasurements = useMeasurements({
variables: {
accountNumber,
dateLocale,
propertyId,
utilityType: FuelType.Electricity,
measurementFilters,
},
});
const {
anchorDate,
setAnchorDate,
toggleIntervalValue,
setToggleIntervalValue,
dateRangeIntervalValue,
setDateRangeIntervalValue,
dateRangeDisplay,
dateRange,
nextDateRangeIsFuture,
DATE_RANGE_SET_ANCHOR_DATE_MAPPING,
} = useEnergyOverviewTimeframe({
measurementFiltersData: measurementFilters,
dateLocale: electricityMeasurements.dateLocale,
});
const electricityData = useEnergyOverview({
measurementsData: electricityMeasurements,
currency: 'GBP',
locale: 'en-GB',
});
return (
<EnergyOverview
dateLocale={electricityMeasurements.dateLocale}
loading={true}
>
<EnergyOverviewTimeframeControls
onDateChange={setAnchorDate}
onIntervalChange={(value) => {
setDateRangeIntervalValue(value);
}}
date={anchorDate}
intervalValues={intervalValues}
toggleIntervalValue={toggleIntervalValue}
dateRangeIntervalValue={dateRangeIntervalValue}
datePickerLabel="Start Date"
intervalLabel="Interval"
defaultIntervalValue={intervalValues[1]}
>
<EnergyOverviewTimeframeToggleButton
onChange={(value) => {
setToggleIntervalValue(value);
}}
toggleIntervalValue={toggleIntervalValue}
>
<EnergyOverviewTimeframeToggleOptionGroup>
{controlValues.map((option) => (
<EnergyOverviewTimeframeToggleOption
value={option.value}
key={option.value}
>
{option.label}
</EnergyOverviewTimeframeToggleOption>
))}
</EnergyOverviewTimeframeToggleOptionGroup>
</EnergyOverviewTimeframeToggleButton>
<EnergyOverviewTimeframeNavigation
disableForwardButton={nextDateRangeIsFuture}
onClickBack={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
-1
)
)
}
onClickForward={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
1
)
)
}
/>
</EnergyOverviewTimeframeControls>
<EnergyOverviewCard
utilityType="electricity"
chartData={electricityData.chartData}
legendEntries={electricityData.legendEntries}
lineChartData={electricityData.lineChartData}
dateRange={dateRange}
dateLocale={electricityData.dateLocale}
currency={electricityData.currency}
locale={electricityData.locale}
measurementUnit={electricityData.measurementUnit}
unitRatePricingLabel="Half-hour pricing"
costOfUsageCurrency={electricityData.costOfUsageCurrency}
informationalText={{ tooltipNoDataText: 'No Data' }}
measurementWithMultipleStatisticsEntries={
electricityData.measurementWithMultipleStatisticsEntries
}
totalConsumption={electricityData.totalConsumption}
totalStandingCharge={electricityData.totalStandingCharge}
>
<EnergyOverviewHeader>
<EnergyOverviewTitle>
<IconBolt /> Electricity
</EnergyOverviewTitle>
<EnergyOverviewViewType />
</EnergyOverviewHeader>
<EnergyOverviewDataSection>
<EnergyOverviewTimeframeSummary>
<EnergyOverviewDateDisplay>
{dateRangeDisplay}
</EnergyOverviewDateDisplay>
<EnergyOverviewTotalValue />
</EnergyOverviewTimeframeSummary>
<EnergyOverviewSettingsAndDisplay>
<EnergyOverviewSettingsControls>
<EnergyOverviewStandingCharge />
<EnergyOverviewUnitToggle defaultValue="kWh">
<EnergyOverviewUnitToggleOption value="kWh">
kWh
</EnergyOverviewUnitToggleOption>
<EnergyOverviewUnitToggleOption value="cost">
£
</EnergyOverviewUnitToggleOption>
</EnergyOverviewUnitToggle>
</EnergyOverviewSettingsControls>
<EnergyOverviewEnergyUsage>
{`Electricity usage ${electricityData.marketSupplyPointId}`}
</EnergyOverviewEnergyUsage>
</EnergyOverviewSettingsAndDisplay>
</EnergyOverviewDataSection>
</EnergyOverviewCard>
</EnergyOverview>
);Data
Data comes from Blueprint’s useMeasurementFilters and useMeasurements hooks, which is then transformed by our useEnergyOverviewTimeframe and useEnergyOverview hooks. See useEnergyOverview for more information and examples.
import { enGB } from 'date-fns/locale';
export const electricityMockMeasurements = {
day: {
anchorDate: '2026-01-13T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
measurementWithCostOfUsageData: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 2.9203449429000004,
totalStandingCharge: 0.5040000000000002,
chartData: [
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.0105,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0105,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0105,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0.023426235000000004,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0,
},
...
],
[
{
labels: {
date: '2026-01-13T00:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768262400000,
y: 0,
},
{
labels: {
date: '2026-01-13T00:30:00.000Z',
durationInSeconds: 1800,
},
x: 1768264200000,
y: 0.0077347725,
},
{
labels: {
date: '2026-01-13T01:00:00.000Z',
durationInSeconds: 1800,
},
x: 1768266000000,
y: 0.0052698449999999996,
},
...
],
],
lineChartData: [
{
x: new Date('2026-01-13T00:00:00.000Z'),
y: 0.29747599999999996,
},
{
x: new Date('2026-01-13T00:30:00.000Z'),
y: 0.08095000000000001,
},
{
x: new Date('2026-01-13T01:00:00.000Z'),
y: 0.08095000000000001,
},
...
],
dateRange: 'DAY',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-14T00:00:00.000Z',
startAt: '2026-01-13T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-19T00:00:00.000Z',
startAt: '2026-01-12T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: true,
isFetching: false,
data: [
{
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '2.23107000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '2.34262350000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.091000',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '0.73664500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.77347725000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
{
value: '0.062000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '0.50189000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '0.52698450000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 100,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '0.075000',
unit: 'kwh',
startAt: '2026-01-13T00:00:00+00:00',
endAt: '2026-01-13T00:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'2.23107000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'2.34262350000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.091000',
unit: 'kwh',
startAt: '2026-01-13T00:30:00+00:00',
endAt: '2026-01-13T01:00:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'0.73664500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'0.77347725000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '0.062000',
unit: 'kwh',
startAt: '2026-01-13T01:00:00+00:00',
endAt: '2026-01-13T01:30:00+00:00',
durationInSeconds: 1800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1.00',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1.05',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'0.50189000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'0.52698450000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ3',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 100,
startAt: '2026-01-13T00:00:00.000Z',
endAt: '2026-01-14T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'DAY',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
week: {
anchorDate: '2026-01-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
measurementWithCostOfUsageData: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 35.4718276171,
totalStandingCharge: 3.5202999999999998,
chartData: [
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.5029,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.5029,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.5029,
},
...
],
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 4.496275370999999,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 3.276549402,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 5.865929244,
},
...
],
[
{
labels: {
date: '2026-01-05T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767571200000,
y: 0.11525661,
},
{
labels: {
date: '2026-01-06T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767657600000,
y: 0.1928593275,
},
{
labels: {
date: '2026-01-07T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1767744000000,
y: 0.063748125,
},
...
],
],
dateRange: 'WEEK',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2026-01-07T00:00:00.000Z',
startAt: '2026-01-06T00:00:00.000Z',
},
WEEK: {
endAt: '2026-01-12T00:00:00.000Z',
startAt: '2026-01-05T00:00:00.000Z',
},
MONTH: {
endAt: '2026-02-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
YEAR: {
endAt: '2027-01-01T00:00:00.000Z',
startAt: '2026-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: true,
isFetching: false,
data: [
{
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.21670200000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '449.62753710000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '10.97682000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '11.52566100000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '12.759000',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '312.05232400000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '327.65494020000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '18.36755500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '19.28593275000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
{
value: '19.530000',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.90',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '50.29',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '558.65992800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '586.59292440000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '6.07125000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.37481250000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 7,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '15.751000',
unit: 'kwh',
startAt: '2026-01-05T00:00:00+00:00',
endAt: '2026-01-06T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'428.21670200000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'449.62753710000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'10.97682000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'11.52566100000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '12.759000',
unit: 'kwh',
startAt: '2026-01-06T00:00:00+00:00',
endAt: '2026-01-07T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'312.05232400000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'327.65494020000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'18.36755500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'19.28593275000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '19.530000',
unit: 'kwh',
startAt: '2026-01-07T00:00:00+00:00',
endAt: '2026-01-08T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.90',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'50.29',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '29.74760',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'558.65992800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'586.59292440000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'6.07125000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.37481250000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjY=',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 7,
startAt: '2026-01-05T00:00:00.000Z',
endAt: '2026-01-12T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'WEEK',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
month: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
measurementWithCostOfUsageData: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
legendEntries: ['Standing charge', 'Day rate', 'Night rate'],
measurementUnit: 'kWh',
totalConsumption: 127.72460605775001,
totalStandingCharge: 15.379100000000005,
chartData: [
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.4961,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.4961,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.4961,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 5.787043899,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 1.7299072245,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 2.8768136355,
},
...
],
[
{
labels: {
date: '2025-12-01T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764547200000,
y: 0.06289815,
},
{
labels: {
date: '2025-12-02T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764633600000,
y: 0.0759027675,
},
{
labels: {
date: '2025-12-03T00:00:00.000Z',
durationInSeconds: 86400,
},
x: 1764720000000,
y: 0.06017823,
},
...
],
],
dateRange: 'MONTH',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: true,
isFetching: false,
data: [
{
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '551.14703800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '578.70438990000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.99030000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.28981500000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '6.691000',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '164.75306900000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '172.99072245000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '7.22883500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7.59027675000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
{
value: '10.350000',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '47.24',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '49.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '273.98225100000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '287.68136355000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5.73126000000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '6.01782300000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 31,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '20.136000',
unit: 'kwh',
startAt: '2025-12-01T00:00:00+00:00',
endAt: '2025-12-02T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'551.14703800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'578.70438990000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5.99030000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.28981500000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '6.691000',
unit: 'kwh',
startAt: '2025-12-02T00:00:00+00:00',
endAt: '2025-12-03T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'164.75306900000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'172.99072245000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'7.22883500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7.59027675000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '10.350000',
unit: 'kwh',
startAt: '2025-12-03T00:00:00+00:00',
endAt: '2025-12-04T00:00:00+00:00',
durationInSeconds: 86400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'47.24',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'49.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '28.41550',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'273.98225100000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'287.68136355000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5.73126000000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'6.01782300000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjMw',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 31,
startAt: '2025-12-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'MONTH',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
year: {
anchorDate: '2025-12-06T00:00:00.000Z',
costOfUsageCurrency: 'GBP',
costOfUsageSelected: true,
measurementWithMultipleStatisticsEntries: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
measurementWithCostOfUsageData: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
legendEntries: [
'Standing charge',
'Consumption',
'Day rate',
'Night rate',
],
measurementUnit: 'kWh',
totalConsumption: 1246.1187842772501,
totalStandingCharge: 179.24669999999998,
chartData: [
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 15.4287,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 13.976099999999999,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 15.474,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 136.7996,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 38.0334,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 0,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 0,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 53.321638419,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 70.048590192,
},
...
],
[
{
labels: {
date: '2025-01-01T00:00:00.000Z',
durationInSeconds: 2678400,
},
x: 1735689600000,
y: 0,
},
{
labels: {
date: '2025-02-01T00:00:00.000Z',
durationInSeconds: 2419200,
},
x: 1738368000000,
y: 4.5041025225,
},
{
labels: {
date: '2025-03-01T00:00:00.000Z',
durationInSeconds: 2674800,
},
x: 1740787200000,
y: 5.4412849575,
},
...
],
],
dateRange: 'YEAR',
dateRangeStartAtEndAtMapping: {
DAY: {
endAt: '2025-12-07T00:00:00.000Z',
startAt: '2025-12-06T00:00:00.000Z',
},
WEEK: {
endAt: '2025-12-08T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
MONTH: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-12-01T00:00:00.000Z',
},
YEAR: {
endAt: '2026-01-01T00:00:00.000Z',
startAt: '2025-01-01T00:00:00.000Z',
},
},
readingDirection: 'CONSUMPTION',
utilityType: 'ELECTRICITY',
marketSupplyPointId: '012345678901',
isLoading: true,
isFetching: false,
data: [
{
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1469.40',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1542.87',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '13028.53',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '13679.96',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '389.799000',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1331.06',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1397.61',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '5078.25127800000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '5332.16384190000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '428.96214500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '450.41025225000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '3622.23',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '3803.34',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
{
value: '324.961000',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount: '1473.72',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '1547.40',
__typename: 'EstimatedMoneyType',
},
value: null,
description: 'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '6671.29430400000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '7004.85901920000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename: 'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount: '518.21761500000',
__typename: 'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount: '544.12849575000',
__typename: 'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename: 'StatisticOutput',
},
],
__typename: 'MeasurementsMetadataOutput',
},
first: 12,
},
...
],
rawData: {
account: {
properties: [
{
id: '1234567',
measurements: {
edges: [
{
node: {
value: '470.928000',
unit: 'kwh',
startAt: '2025-01-01T00:00:00+00:00',
endAt: '2025-02-01T00:00:00+00:00',
durationInSeconds: 2678400,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1469.40',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1542.87',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'13028.53',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'13679.96',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '389.799000',
unit: 'kwh',
startAt: '2025-02-01T00:00:00+00:00',
endAt: '2025-03-01T00:00:00+00:00',
durationInSeconds: 2419200,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1331.06',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1397.61',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'5078.25127800000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'5332.16384190000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'428.96214500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'450.41025225000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'3622.23',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'3803.34',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The calculated cost of consumption for the interval',
label: 'CONSUMPTION',
type: 'CONSUMPTION_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
{
node: {
value: '324.961000',
unit: 'kwh',
startAt: '2025-03-01T00:00:00+00:00',
endAt: '2025-04-01T00:00:00+01:00',
durationInSeconds: 2674800,
__typename: 'IntervalMeasurementType',
metaData: {
statistics: [
{
costExclTax: {
pricePerUnit: null,
costCurrency: 'GBP',
estimatedAmount:
'1473.72',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'1547.40',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'Daily charge rate (standing charge)',
label: null,
type: 'STANDING_CHARGE_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '25.56600',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'6671.29430400000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'7004.85901920000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'DAY_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
{
costExclTax: {
pricePerUnit: {
amount: '8.09500',
__typename:
'PricePerUnit',
},
costCurrency: 'GBP',
estimatedAmount:
'518.21761500000',
__typename:
'EstimatedMoneyType',
},
costInclTax: {
costCurrency: 'GBP',
estimatedAmount:
'544.12849575000',
__typename:
'EstimatedMoneyType',
},
value: null,
description:
'The apportion cost of a time of use bucket for the interval.',
label: 'NIGHT_RATE',
type: 'TOU_BUCKET_COST',
__typename:
'StatisticOutput',
},
],
__typename:
'MeasurementsMetadataOutput',
},
},
__typename: 'MeasurementEdge',
},
...
],
pageInfo: {
hasNextPage: false,
hasPreviousPage: false,
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjEx',
__typename: 'PageInfo',
},
__typename: 'MeasurementConnection',
},
__typename: 'PropertyType',
},
],
__typename: 'AccountType',
},
},
queryVariables: {
accountNumber: 'A-12345678',
first: 12,
startAt: '2025-01-01T00:00:00.000Z',
endAt: '2026-01-01T00:00:00.000Z',
timezone: 'Europe/London',
utilityType: 'ELECTRICITY',
propertyId: '1234567',
dateRange: 'YEAR',
readingDirection: 'CONSUMPTION',
marketSupplyPointId: '012345678901',
deviceId: '00-00-00-00-00-00-00-00',
},
dateLocale: enGB,
},
};No data / error
Preview
Unable to load EnergyOverview!
Code
import { useMeasurements, useMeasurementFilters } from "@krakentech/blueprint-utils/client";
const intervalValues = [
{ value: CustomDateRangeSelectValue.DAY, label: 'Day' },
{ value: CustomDateRangeSelectValue.WEEK, label: 'Week' },
{ value: CustomDateRangeSelectValue.MONTH, label: 'Month' },
];
const controlValues = [
{ value: DateRangeToggleValue.DAY, label: 'Day' },
{ value: DateRangeToggleValue.WEEK, label: 'Week' },
{ value: DateRangeToggleValue.MONTH, label: 'Month' },
{ value: DateRangeToggleValue.YEAR, label: 'Year' },
{ value: DateRangeToggleValue.CUSTOM },
];
// Measurement hooks from blueprint
const measurementFilters = useMeasurementFilters();
const electricityMeasurements = useMeasurements({
variables: {
accountNumber,
dateLocale,
propertyId,
utilityType: FuelType.Electricity,
measurementFilters,
},
});
const {
anchorDate,
setAnchorDate,
toggleIntervalValue,
setToggleIntervalValue,
dateRangeIntervalValue,
setDateRangeIntervalValue,
dateRangeDisplay,
dateRange,
nextDateRangeIsFuture,
DATE_RANGE_SET_ANCHOR_DATE_MAPPING,
} = useEnergyOverviewTimeframe({
measurementFiltersData: measurementFilters,
dateLocale: electricityMeasurements.dateLocale,
});
const electricityData = useEnergyOverview({
measurementsData: electricityMeasurements,
currency: 'GBP',
locale: 'en-GB',
});
return (
<EnergyOverview
dateLocale={electricityMeasurements.dateLocale}
loading={false}
error={true}
>
<EnergyOverviewTimeframeControls
onDateChange={setAnchorDate}
onIntervalChange={(value) => {
setDateRangeIntervalValue(value);
}}
date={anchorDate}
intervalValues={intervalValues}
toggleIntervalValue={toggleIntervalValue}
dateRangeIntervalValue={dateRangeIntervalValue}
datePickerLabel="Start Date"
intervalLabel="Interval"
defaultIntervalValue={intervalValues[1]}
>
<EnergyOverviewTimeframeToggleButton
onChange={(value) => {
setToggleIntervalValue(value);
}}
toggleIntervalValue={toggleIntervalValue}
>
<EnergyOverviewTimeframeToggleOptionGroup>
{controlValues.map((option) => (
<EnergyOverviewTimeframeToggleOption
value={option.value}
key={option.value}
>
{option.label}
</EnergyOverviewTimeframeToggleOption>
))}
</EnergyOverviewTimeframeToggleOptionGroup>
</EnergyOverviewTimeframeToggleButton>
<EnergyOverviewTimeframeNavigation
disableForwardButton={nextDateRangeIsFuture}
onClickBack={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
-1
)
)
}
onClickForward={() =>
setAnchorDate(
DATE_RANGE_SET_ANCHOR_DATE_MAPPING[dateRange](
anchorDate,
1
)
)
}
/>
</EnergyOverviewTimeframeControls>
<EnergyOverviewCard
utilityType="electricity"
chartData={electricityData.chartData}
legendEntries={electricityData.legendEntries}
lineChartData={electricityData.lineChartData}
dateRange={dateRange}
dateLocale={electricityData.dateLocale}
currency={electricityData.currency}
locale={electricityData.locale}
measurementUnit={electricityData.measurementUnit}
unitRatePricingLabel="Half-hour pricing"
costOfUsageCurrency={electricityData.costOfUsageCurrency}
informationalText={{ tooltipNoDataText: 'No Data' }}
measurementWithMultipleStatisticsEntries={
electricityData.measurementWithMultipleStatisticsEntries
}
totalConsumption={electricityData.totalConsumption}
totalStandingCharge={electricityData.totalStandingCharge}
>
<EnergyOverviewHeader>
<EnergyOverviewTitle>
<IconBolt /> Electricity
</EnergyOverviewTitle>
<EnergyOverviewViewType />
</EnergyOverviewHeader>
<EnergyOverviewDataSection>
<EnergyOverviewTimeframeSummary>
<EnergyOverviewDateDisplay>
{dateRangeDisplay}
</EnergyOverviewDateDisplay>
<EnergyOverviewTotalValue />
</EnergyOverviewTimeframeSummary>
<EnergyOverviewSettingsAndDisplay>
<EnergyOverviewSettingsControls>
<EnergyOverviewStandingCharge />
<EnergyOverviewUnitToggle defaultValue="kWh">
<EnergyOverviewUnitToggleOption value="kWh">
kWh
</EnergyOverviewUnitToggleOption>
<EnergyOverviewUnitToggleOption value="cost">
£
</EnergyOverviewUnitToggleOption>
</EnergyOverviewUnitToggle>
</EnergyOverviewSettingsControls>
<EnergyOverviewEnergyUsage>
{`Electricity usage ${electricityData.marketSupplyPointId}`}
</EnergyOverviewEnergyUsage>
</EnergyOverviewSettingsAndDisplay>
</EnergyOverviewDataSection>
</EnergyOverviewCard>
</EnergyOverview>
);Data
Data comes from Blueprint’s useMeasurementFilters and useMeasurements hooks, which is then transformed by our useEnergyOverviewTimeframe and useEnergyOverview hooks. See useEnergyOverview for more information and examples.
import { enGB } from 'date-fns/locale';
export const electricityMockMeasurements = {};