Published
Edited
Apr 17, 2021
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
myTOUTariff = {
let tariff = new my.Tariff();
tariff.touPrice = [
{ valid_from: '2021-03-02T00:00:00.000+00:00', valid_to: '2021-03-02T06:00:00.000+00:00', value_inc_vat: 0.095 },
{ valid_from: '2021-03-02T06:00:00.000+00:00', valid_to: '2021-03-02T16:30:00.000+00:00', value_inc_vat: 0.142 },
{ valid_from: '2021-03-02T16:30:00.000+00:00', valid_to: '2021-03-03T00:00:00.000+00:00', value_inc_vat: 0.247 },
];
return tariff;
}
Insert cell
Insert cell
Insert cell
myMulitdDateTOUTariff = {
let tariff = new my.Tariff();
tariff.touPrice = [
{ valid_from: '2021-03-02T14:00:00.000+00:00', valid_to: '2021-03-03T01:00:00.000+00:00', value_inc_vat: 0.080 },
{ valid_from: '2021-03-03T01:00:00.000+00:00', valid_to: '2021-03-03T14:00:00.000+00:00', value_inc_vat: 0.120 },
];
return tariff;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {vl} from '@vega/vega-lite-api'
Insert cell
import {table} from '@tmcw/tables/2'
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more