685
| <![CDATA[<script defer>
var maxTicksLimit = 6;
var pointRadius = 3;
function resize() {
var w = document.documentElement.clientWidth;
if (w < 460) {
maxTicksLimit = 1;
pointRadius = 0;
} else if (w < 560) {
maxTicksLimit = 2;
pointRadius = 0;
} else if (w < 900) {
maxTicksLimit = 3;
pointRadius = 0;
}
document.querySelectorAll('canvas').forEach(function (el) {
if (w < 1024) {
el.height = 600;
el.style.height = "600px";
} else {
el.height = 300;
el.style.height = "300px";
}
});
}
// window.addEventListener("resize", resize);
resize();
var tabs = document.querySelectorAll(".tabs li");
tabs.forEach(function (tab) {
tab.addEventListener("click", function () {
var tabActive = document.querySelector(".tabs li.active");
tabActive.classList.remove('active');
tab.classList.add('active');
var pts = document.querySelectorAll("li.card.point");
pts.forEach(function (p) {
p.style.display = "none";
})
var selector = tab.getAttribute("data-tab");
var pointsCard = document.querySelectorAll("." + selector);
pointsCard.forEach(function (p) {
p.style.display = "block";
});
});
});
window.addEventListener("load", function(event) {
var canvas_river = document.getElementById('chart-river');
if ( typeof canvas_river != null) {
var colors = [
{ border: 'red', background: 'rgba(255, 0, 0, 0.5)' },
{ border: 'orange', background: 'rgba(255, 165, 0, 0.5)' },
{ border: 'yellow', background: 'rgba(255, 255, 0, 0.5)' },
{ border: 'green', background: 'rgba(0, 128, 0, 0.5)' },
{ border: 'blue', background: 'rgba(0, 0, 255, 0.5)' },
{ border: 'purple', background: 'rgba(128, 0, 128, 0.5)' },
{ border: 'grey', background: 'rgba(128, 128, 128, 0.5)' },
{ border: 'RebeccaPurple', background: 'rgba(102, 51, 153, 0.5)' },
{ border: 'Aquamarine', background: 'rgba(127, 255, 212, 0.5)' },
];
var chart_river = new Chart(canvas_river, {
type: 'bar',
data: {
labels: [
'24/09/2023 14:30', '24/09/2023 15:30', '24/09/2023 16:30', '24/09/2023 17:30', '24/09/2023 18:30', '24/09/2023 19:30', '24/09/2023 20:30', '24/09/2023 21:30', '24/09/2023 22:30', '24/09/2023 23:30', '25/09/2023 00:30', '25/09/2023 01:30', ],
datasets: [
{
label: 'DC-01 Rio Itajaí-Açu - ICMBio/CEPSUL',
data: [
0.38, 0.47, 0.56, 0.58, 0.47, 0.44, 0.58, 0.72, 0.55, 0.64, 0.76, 0.67, 0.59, 0.64, 0.73, 0.78, 0.63, 0.62, 0.57, 0.76, 0.71, 0.74, 0.69, 0.51, 0.58, 0.66, 0.51, 0.55, 0.40, 0.51, 0.52, 0.44, 0.34, 0.44, 0.58, 0.49, 0.18, 0.14, 0.46, 0.50, 0.30, 0.25, 0.38, 0.26, 0.29, 0.35, 0.24, 0.09, 0.29, 0.28, 0.09, 0.19, 0.36, 0.35, 0.20, 0.23, 0.38, 0.40, 0.47, 0.37, 0.23, 0.46, 0.58, 0.53, 0.62, 0.69, 0.67, 0.64, 0.70, 0.87, 0.71, 0.79, ],
backgroundColor: colors[0].background,
borderColor: colors[0].border,
fill: false,
},
{
label: 'DC-02 Rio Itajaí-Açu - Praça Celso Pereira da Silva',
data: [
1.29, 1.14, 1.13, 1.16, 1.32, 1.37, 1.20, 1.36, 1.35, 1.26, 1.29, 1.34, 1.34, 1.40, 1.22, 1.25, 1.29, 1.39, 1.30, 1.29, 1.33, 1.14, 1.24, 1.17, 1.16, 1.11, 1.10, 1.11, 1.07, 1.08, 0.96, 1.11, 1.05, 0.99, 0.71, 0.90, 1.04, 1.04, 0.85, 0.82, 1.00, 0.80, 0.95, 0.88, 0.76, 0.74, 0.94, 0.80, 0.78, 0.85, 0.98, 0.87, 0.85, 1.00, 0.96, 1.10, 1.04, 0.94, 1.02, 1.17, 1.27, 1.20, 1.30, 1.39, 1.25, 1.37, 1.35, 1.44, 1.36, 1.44, 1.47, 1.57, ],
backgroundColor: colors[1].background,
borderColor: colors[1].border,
fill: false,
},
{
label: 'DC-03 Rio Itajaí-Mirim (canal retificado) - Captação SEMASA',
data: [
0.96, 0.91, 0.94, 0.99, 1.01, 0.98, 1.04, 1.02, 1.01, 0.98, 0.96, 0.94, 0.93, 0.90, 0.88, 0.86, 0.84, 0.83, 0.80, 0.79, 0.76, 0.73, 0.70, 0.70, 0.68, 0.66, 0.65, 0.63, 0.55, 0.57, 0.55, 0.54, 0.52, 0.49, 0.46, 0.47, 0.41, 0.38, 0.39, 0.41, 0.41, 0.45, 0.36, 0.42, 0.47, 0.52, 0.48, 0.55, 0.57, 0.57, 0.60, 0.63, 0.69, 0.66, 0.65, 0.68, 0.73, 0.74, 0.74, 0.78, 0.80, 0.79, 0.85, 0.86, 0.86, 0.85, 0.85, 0.83, 0.90, 0.86, 0.80, 0.84, ],
backgroundColor: colors[2].background,
borderColor: colors[2].border,
fill: false,
},
{
label: 'DC-04 Rio Itajaí-Mirim (canal retificado e curso antigo) - Vitalmar Pescados',
data: [
1.05, 1.05, 0.90, 1.01, 1.01, 1.01, 1.12, 0.97, 1.16, 1.12, 0.98, 1.04, 1.16, 1.13, 1.16, 0.99, 1.02, 1.20, 1.15, 1.02, 1.05, 1.05, 1.05, 1.05, 0.92, 0.92, 0.90, 0.94, 0.94, 0.78, 0.78, 1.00, 1.00, 0.80, 0.51, 0.51, 0.86, 0.86, 0.82, 0.59, 0.59, 0.80, 0.82, 0.82, 0.70, 0.61, 0.59, 0.62, 0.58, 0.66, 0.77, 0.77, 0.67, 0.78, 0.78, 0.92, 0.78, 0.72, 0.78, 0.78, 0.91, 1.04, 0.99, 1.17, 1.01, 1.01, 1.20, 1.13, 1.21, 1.13, 1.25, 1.34, ],
backgroundColor: colors[3].background,
borderColor: colors[3].border,
fill: false,
},
{
label: 'DC-05 Rio Itajaí-Mirim (curso antigo) - Propriedade privada',
data: [
0.80, 0.80, 0.80, 0.80, 0.79, 0.79, 0.80, 0.80, 0.80, 0.80, 0.80, 0.79, 0.80, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.78, 0.78, 0.78, 0.78, 0.77, 0.77, 0.77, 0.77, 0.77, 0.77, 0.77, 0.75, 0.75, 0.75, 0.75, 0.73, 0.75, 0.74, 0.73, 0.73, 0.71, 0.73, 0.73, 0.71, 0.71, 0.71, 0.71, 0.70, 0.69, 0.69, 0.69, 0.68, 0.68, 0.68, 0.68, 0.68, 0.67, 0.66, 0.65, 0.65, 0.66, 0.65, 0.64, 0.64, 0.62, 0.63, 0.62, 0.62, ],
backgroundColor: colors[4].background,
borderColor: colors[4].border,
fill: false,
},
{
label: 'DC-06 Rio Itajaí-Mirim (curso antigo) - Itamirim Clube de Campo',
data: [
1.32, 1.36, 1.36, 1.36, 1.46, 1.36, 1.45, 1.36, 1.36, 1.46, 1.46, 1.46, 1.36, 1.39, 1.39, 1.36, 1.44, 1.44, 1.37, 1.37, 1.31, 1.33, 1.33, 1.26, 1.25, 1.23, 1.27, 1.16, 1.17, 1.24, 1.17, 1.12, 0.98, 1.09, 1.14, 1.15, 1.06, 0.97, 0.98, 0.98, 1.09, 1.03, 0.98, 1.05, 1.03, 1.03, 1.06, 1.15, 1.09, 1.10, 1.10, 1.17, 1.29, 1.24, 1.24, 1.24, 1.33, 1.41, 1.39, 1.39, 1.51, 1.51, 1.44, 1.54, 1.59, 1.55, 1.59, 1.59, 1.62, 1.65, 1.67, 1.62, ],
backgroundColor: colors[5].background,
borderColor: colors[5].border,
fill: false,
},
{
label: 'DC-07 Ribeirão da Murta - Portal',
data: [
0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, ],
backgroundColor: colors[6].background,
borderColor: colors[6].border,
fill: false,
},
{
label: 'DC-08 Ribeirão Canhanduba - Propriedade privada',
data: [
0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.66, 0.66, 0.66, 0.66, 0.66, 0.65, 0.64, 0.64, 0.64, 0.64, 0.63, 0.63, 0.63, 0.63, 0.63, 0.62, 0.62, 0.62, 0.62, 0.61, 0.61, 0.61, 0.61, 0.60, 0.59, 0.59, 0.58, 0.58, 0.58, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.58, 0.58, 0.58, 0.59, 0.60, 0.61, 0.61, 0.62, 0.62, 0.63, 0.63, 0.63, 0.64, 0.64, 0.65, 0.64, 0.64, 0.64, 0.63, 0.63, 0.62, ],
backgroundColor: colors[7].background,
borderColor: colors[7].border,
fill: false,
},
{
label: 'DC-09 Ribeirão Ariribá - Clube União Ariribá',
data: [
0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.08, 0.09, 0.11, 0.14, 0.21, 0.21, 0.11, 0.18, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.04, 0.05, 0.05, 0.05, 0.04, ],
backgroundColor: colors[8].background,
borderColor: colors[8].border,
fill: false,
},
],
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_2_tel = document.getElementById('chart-2-tel');
if ( typeof canvas_2_tel != null) {
var chart_2_tel = new Chart(canvas_2_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:10:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 20:50:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
0.79, 0.71, 0.87, 0.70, 0.64, 0.67, 0.69, 0.62, 0.53, 0.58, 0.46, 0.23, 0.37, 0.47, 0.40, 0.38, 0.23, 0.20, 0.35, 0.36, 0.19, 0.09, 0.28, 0.29, 0.09, 0.24, 0.35, 0.29, 0.26, 0.38, 0.25, 0.30, 0.50, 0.46, 0.14, 0.18, 0.49, 0.58, 0.44, 0.34, 0.44, 0.52, 0.51, 0.40, 0.55, 0.51, 0.66, 0.58, 0.51, 0.69, 0.74, 0.71, 0.76, 0.57, 0.62, 0.63, 0.78, 0.73, 0.64, 0.59, 0.67, 0.76, 0.64, 0.55, 0.72, 0.58, 0.44, 0.47, 0.58, 0.56, 0.47, 0.38, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, 0.90, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, 1.10, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, 1.30, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_3_tel = document.getElementById('chart-3-tel');
if ( typeof canvas_3_tel != null) {
var chart_3_tel = new Chart(canvas_3_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:10:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 20:50:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
1.57, 1.47, 1.44, 1.36, 1.44, 1.35, 1.37, 1.25, 1.39, 1.30, 1.20, 1.27, 1.17, 1.02, 0.94, 1.04, 1.10, 0.96, 1.00, 0.85, 0.87, 0.98, 0.85, 0.78, 0.80, 0.94, 0.74, 0.76, 0.88, 0.95, 0.80, 1.00, 0.82, 0.85, 1.04, 1.04, 0.90, 0.71, 0.99, 1.05, 1.11, 0.96, 1.08, 1.07, 1.11, 1.10, 1.11, 1.16, 1.17, 1.24, 1.14, 1.33, 1.29, 1.30, 1.39, 1.29, 1.25, 1.22, 1.40, 1.34, 1.34, 1.29, 1.26, 1.35, 1.36, 1.20, 1.37, 1.32, 1.16, 1.13, 1.14, 1.29, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, 2.00, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, 3.30, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_4_tel = document.getElementById('chart-4-tel');
if ( typeof canvas_4_tel != null) {
var chart_4_tel = new Chart(canvas_4_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:00:00', '24/09/2023 14:10:00', '24/09/2023 14:20:00', '24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
0.84, 0.80, 0.86, 0.90, 0.83, 0.85, 0.85, 0.86, 0.86, 0.85, 0.79, 0.80, 0.78, 0.74, 0.74, 0.73, 0.68, 0.65, 0.66, 0.69, 0.63, 0.60, 0.57, 0.57, 0.55, 0.48, 0.52, 0.47, 0.42, 0.36, 0.45, 0.41, 0.41, 0.39, 0.38, 0.41, 0.47, 0.46, 0.49, 0.52, 0.54, 0.55, 0.57, 0.55, 0.63, 0.65, 0.66, 0.68, 0.70, 0.70, 0.73, 0.76, 0.79, 0.80, 0.83, 0.84, 0.86, 0.88, 0.90, 0.93, 0.94, 0.96, 0.98, 1.01, 1.02, 1.04, 0.98, 1.01, 0.99, 0.94, 0.91, 0.96, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, 1.48, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_5_tel = document.getElementById('chart-5-tel');
if ( typeof canvas_5_tel != null) {
var chart_5_tel = new Chart(canvas_5_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:10:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 20:50:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
1.34, 1.25, 1.13, 1.21, 1.13, 1.20, 1.01, 1.01, 1.17, 0.99, 1.04, 0.91, 0.78, 0.78, 0.72, 0.78, 0.92, 0.78, 0.78, 0.67, 0.77, 0.77, 0.66, 0.58, 0.62, 0.59, 0.61, 0.70, 0.82, 0.82, 0.80, 0.59, 0.59, 0.82, 0.86, 0.86, 0.51, 0.51, 0.80, 1.00, 1.00, 0.78, 0.78, 0.94, 0.94, 0.90, 0.92, 0.92, 1.05, 1.05, 1.05, 1.05, 1.02, 1.15, 1.20, 1.02, 0.99, 1.16, 1.13, 1.16, 1.04, 0.98, 1.12, 1.16, 0.97, 1.12, 1.01, 1.01, 1.01, 0.90, 1.05, 1.05, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_6_tel = document.getElementById('chart-6-tel');
if ( typeof canvas_6_tel != null) {
var chart_6_tel = new Chart(canvas_6_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:10:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 20:50:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
0.62, 0.62, 0.63, 0.62, 0.64, 0.64, 0.65, 0.66, 0.65, 0.65, 0.66, 0.67, 0.68, 0.68, 0.68, 0.68, 0.68, 0.69, 0.69, 0.69, 0.70, 0.71, 0.71, 0.71, 0.71, 0.73, 0.73, 0.71, 0.73, 0.73, 0.74, 0.75, 0.73, 0.75, 0.75, 0.75, 0.75, 0.77, 0.77, 0.77, 0.77, 0.77, 0.77, 0.77, 0.78, 0.78, 0.78, 0.78, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.79, 0.80, 0.79, 0.80, 0.80, 0.80, 0.80, 0.80, 0.79, 0.79, 0.80, 0.80, 0.80, 0.80, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, 1.44, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, 1.80, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_7_tel = document.getElementById('chart-7-tel');
if ( typeof canvas_7_tel != null) {
var chart_7_tel = new Chart(canvas_7_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:20:00', '24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:10:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
1.62, 1.67, 1.65, 1.62, 1.59, 1.59, 1.55, 1.59, 1.54, 1.44, 1.51, 1.51, 1.39, 1.39, 1.41, 1.33, 1.24, 1.24, 1.24, 1.29, 1.17, 1.10, 1.10, 1.09, 1.15, 1.06, 1.03, 1.03, 1.05, 0.98, 1.03, 1.09, 0.98, 0.98, 0.97, 1.06, 1.15, 1.14, 1.09, 0.98, 1.12, 1.17, 1.24, 1.17, 1.16, 1.27, 1.23, 1.25, 1.26, 1.33, 1.33, 1.31, 1.37, 1.37, 1.44, 1.44, 1.36, 1.39, 1.39, 1.36, 1.46, 1.46, 1.46, 1.36, 1.36, 1.45, 1.36, 1.46, 1.36, 1.36, 1.36, 1.32, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, 1.50, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, 1.85, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, 2.25, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_8_tel = document.getElementById('chart-8-tel');
if ( typeof canvas_8_tel != null) {
var chart_8_tel = new Chart(canvas_8_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 13:50:00', '24/09/2023 14:00:00', '24/09/2023 14:10:00', '24/09/2023 14:20:00', '24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, 0.22, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_9_tel = document.getElementById('chart-9-tel');
if ( typeof canvas_9_tel != null) {
var chart_9_tel = new Chart(canvas_9_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:20:00', '24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:10:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:50:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
0.62, 0.63, 0.63, 0.64, 0.64, 0.64, 0.65, 0.64, 0.64, 0.63, 0.63, 0.63, 0.62, 0.62, 0.61, 0.61, 0.60, 0.59, 0.58, 0.58, 0.58, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.57, 0.58, 0.58, 0.58, 0.59, 0.59, 0.60, 0.61, 0.61, 0.61, 0.61, 0.62, 0.62, 0.62, 0.62, 0.63, 0.63, 0.63, 0.63, 0.63, 0.64, 0.64, 0.64, 0.64, 0.65, 0.66, 0.66, 0.66, 0.66, 0.66, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, 0.67, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, 2.50, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, 3.00, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, 3.40, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
var canvas_10_tel = document.getElementById('chart-10-tel');
if ( typeof canvas_10_tel != null) {
var chart_10_tel = new Chart(canvas_10_tel, {
type: 'line',
data: {
labels: [
'24/09/2023 14:20:00', '24/09/2023 14:30:00', '24/09/2023 14:40:00', '24/09/2023 14:50:00', '24/09/2023 15:00:00', '24/09/2023 15:10:00', '24/09/2023 15:20:00', '24/09/2023 15:30:00', '24/09/2023 15:40:00', '24/09/2023 15:50:00', '24/09/2023 16:00:00', '24/09/2023 16:10:00', '24/09/2023 16:20:00', '24/09/2023 16:30:00', '24/09/2023 16:40:00', '24/09/2023 16:50:00', '24/09/2023 17:00:00', '24/09/2023 17:10:00', '24/09/2023 17:20:00', '24/09/2023 17:30:00', '24/09/2023 17:40:00', '24/09/2023 17:50:00', '24/09/2023 18:00:00', '24/09/2023 18:20:00', '24/09/2023 18:30:00', '24/09/2023 18:40:00', '24/09/2023 18:50:00', '24/09/2023 19:00:00', '24/09/2023 19:10:00', '24/09/2023 19:20:00', '24/09/2023 19:30:00', '24/09/2023 19:40:00', '24/09/2023 19:50:00', '24/09/2023 20:00:00', '24/09/2023 20:10:00', '24/09/2023 20:20:00', '24/09/2023 20:30:00', '24/09/2023 20:40:00', '24/09/2023 20:50:00', '24/09/2023 21:00:00', '24/09/2023 21:10:00', '24/09/2023 21:20:00', '24/09/2023 21:30:00', '24/09/2023 21:40:00', '24/09/2023 21:50:00', '24/09/2023 22:00:00', '24/09/2023 22:10:00', '24/09/2023 22:20:00', '24/09/2023 22:30:00', '24/09/2023 22:40:00', '24/09/2023 22:50:00', '24/09/2023 23:00:00', '24/09/2023 23:10:00', '24/09/2023 23:20:00', '24/09/2023 23:30:00', '24/09/2023 23:40:00', '24/09/2023 23:50:00', '25/09/2023 00:00:00', '25/09/2023 00:10:00', '25/09/2023 00:20:00', '25/09/2023 00:30:00', '25/09/2023 00:40:00', '25/09/2023 00:50:00', '25/09/2023 01:00:00', '25/09/2023 01:10:00', '25/09/2023 01:20:00', '25/09/2023 01:30:00', '25/09/2023 01:40:00', '25/09/2023 01:50:00', '25/09/2023 02:00:00', '25/09/2023 02:10:00', '25/09/2023 02:20:00', ],
datasets: [
{
label: 'Nível do Rio (Metros)',
data: [
0.04, 0.05, 0.05, 0.05, 0.04, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.18, 0.11, 0.21, 0.21, 0.14, 0.11, 0.09, 0.08, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, ],
pointRadius: pointRadius,
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgb(54, 162, 235)',
fill: true,
},
{
label: 'Atenção',
data: [
0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98, ],
pointRadius: 0,
backgroundColor: 'rgba(237, 226, 27, 0.2)',
borderColor: 'rgb(237, 226, 27)',
fill: false,
},
{
label: 'Alerta',
data: [
1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, 1.23, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 165, 0, 0.2)',
borderColor: 'rgb(255, 165, 0)',
fill: false,
},
{
label: 'Emergência',
data: [
1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, 1.60, ],
pointRadius: 0,
backgroundColor: 'rgba(255, 0, 0, 0.2)',
borderColor: 'rgb(255, 0, 0)',
fill: false,
},
]
},
options: {
title: {
display: true,
text: 'Nível dos Rios nas Últimas 12 horas',
},
legend: {
position: 'top',
},
maintainAspectRatio: false,
scales: {
yAxes: [
{
ticks: {
beginAtZero: true,
callback: function(value, index, values) {
return value + ' m';
}
},
scaleLabel: {
display: true,
labelString: 'Metros'
},
}
],
xAxes: [
{
ticks: {
maxTicksLimit: maxTicksLimit,
maxRotation: 0,
minRotation: 0
},
scaleLabel: {
display: true,
labelString: 'Data e Hora'
},
}
]
}
}
});
}
});
</script>]]>
|