data_generator: |
const noon = new Date();
noon.setHours(0, 0, 0, 0);
const prices = entity.attributes.today.concat(entity.attributes.tomorrow);
const data = [];
for (let i = 0; i < prices.length; i++) {
const roundedPrice = Math.ceil(prices[i].total * 100);
data.push([noon.getTime() + i * 1000 * 3600, roundedPrice]);
}
return data;