drh/daily-gluecose-profile/index.sql
-- not including shell
-- not including breadcrumbs from sqlpage_aide_navigation
-- not including page title from sqlpage_aide_navigation
SELECT 'html' as component,
'<style>
.line {
fill: none;
stroke: lightgrey;
stroke-width: 1px;
}
.highlight-area {
fill: lightgreen;
opacity: 1;
}
.highlight-line {
fill: none;
stroke: green;
stroke-width: 1px;
}
.highlight-glucose-h-line {
fill: none;
stroke: orange;
stroke-width: 1px;
}
.highlight-glucose-l-line {
fill: none;
stroke: red;
stroke-width: 1px;
}
.reference-line {
stroke: black;
stroke-width: 1px;
}
.vertical-line {
stroke: rgb(223, 223, 223);
stroke-width: 1px;
}
.day-label {
font-size: 10px;
fill: #000;
}
.day-label-top {
font-size: 12px;
text-anchor: middle;
fill: #000;
}
.axis path,
.axis line {
fill: none;
shape-rendering: crispEdges;
}
.mg-dl-label {
font-size: 14px;
font-weight: bold;
text-anchor: middle;
fill: #000;
transform: rotate(-90deg);
transform-origin: left center;
}
.horizontal-line {
stroke: rgb(223, 223, 223);
stroke-width: 1px;
}
</style>
<div class="fs-3 p-1 fw-bold" style="background-color: #E3E3E2; text-black; display: flex; flex-direction: row; justify-content: space-between;">DAILY GLUCOSE PROFILE <div style="display: flex; justify-content: flex-end; align-items: center;"><formula-component content="The Ambulatory Glucose Profile (AGP) summarizes glucose monitoring data over a specified period, typically 14 to 90 days. It provides a visual representation of glucose levels, helping to identify patterns and variability in glucose management."></formula-component></div></div>
<dgp-chart></dgp-chart>
<p class="py-2 px-4 text-gray-800 font-normal text-xs hidden" id="dgp-note"><b>NOTE:</b> The Daily Glucose
Profile
plots the glucose levels of the last 14 days.</p>
' as html;