Un millón de minutos de corriente del alimentador
Un archivo eléctrico de dos años fiel a la fuente pasa de un primer fotograma de 4196 puntos a los cuatro canales de corriente y todos los huecos explícitos.
Gráfico interactivo. Usa las flechas izquierda y derecha para desplazar, Más y Menos para ampliar y Home para restablecer.
- Fuente
- FeederBW feeder_001
- Licencia
- CC BY 4.0
import { LineChart } from "@sixtyfold/line";
import { createFeederCurrentData } from "./example-data";
const canvas = document.querySelector("canvas")!;
const feederCurrent = createFeederCurrentData();
const options = {
renderMode: "auto",
animated: true,
lod: { mode: "adaptive", density: 0.75 },
legend: {
visible: true,
interactive: true,
position: "bottom",
padding: { top: 12, right: 0, bottom: 24, left: 0 },
},
rangeSelector: { visible: true },
labels: { top: { text: "Un millón de minutos de corriente del alimentador" } },
axis: {
bottom: {
format: {
type: "time",
locale: "es-ES",
timeZone: "UTC",
hour12: false,
},
},
},
tooltip: {
titleFormat: {
type: "time",
locale: "es-ES",
timeZone: "UTC",
hour12: false,
},
},
padding: { bottom: 32 },
series: [
{ name: "Corriente aparente L1", type: "step-after", unit: { suffix: " A" } },
{ name: "Corriente aparente L2", type: "step-after", unit: { suffix: " A" } },
{ name: "Corriente aparente L3", type: "step-after", unit: { suffix: " A" } },
{ name: "Corriente aparente L/PEN", type: "step-after", unit: { suffix: " A" } },
],
minViewportRange: 30 * 60_000,
};
const chart = new LineChart(canvas, options);
await chart.initialize();
chart.setMultiSeriesData(feederCurrent);
// Releases its worker, observers, listeners, and data references.
window.addEventListener("pagehide", () => chart.destroy(), { once: true });