/*
 * == BSD2 LICENSE ==
 * Copyright (c) 2016, Tidepool Project
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the associated License, which is identical to the BSD 2-Clause
 * License as published by the Open Source Initiative at opensource.org.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the License for more details.
 *
 * You should have received a copy of the License along with this program; if
 * not, you can obtain one from Tidepool Project at tidepool.org.
 * == BSD2 LICENSE ==
 */

import { scaleLinear } from 'd3-scale';

const trendsWidth = 864;
const trendsHeight = 360;

const trendsXScale = scaleLinear()
  .domain([0, 864e5])
  .range([0, trendsWidth]);

const trendsYScale = scaleLinear()
  .domain([40, 400])
  .range([trendsHeight, 0])
  .clamp(true);

const trends = { trendsWidth, trendsHeight, trendsXScale, trendsYScale };

export { trends };

@@ -1053,16 +1053,329 @@
 %7D;%0A%0A
-export %7B
+const detailWidth = 864;%0Aconst detailHeight = 100;%0A%0Aconst detailXScale = scaleLinear()%0A  .domain(%5B0, 864e5%5D)%0A  .range(%5B0, detailWidth%5D);%0A%0Aconst detailBolusScale = scaleLinear()%0A  .domain(%5B0, 15%5D)%0A  .range(%5BdetailHeight, 0%5D);%0A%0Aconst detail = %7B detailWidth, detailHeight, detailXScale, detailBolusScale %7D;%0A%0Aexport %7B detail,
  tre

add scales for testing daily detail rendering