A million minutes of feeder current
A source-faithful two-year electrical archive moves from a 4,196-point first frame to all four current channels and every explicit gap.
Interactive chart. Use Left and Right Arrow to pan, Plus and Minus to zoom, and Home to reset.
- Source
- FeederBW feeder_001
- Licence
- 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: "A million minutes of feeder current" } },
axis: {
bottom: {
format: {
type: "time",
locale: "en-US",
timeZone: "UTC",
hour12: false,
},
},
},
tooltip: {
titleFormat: {
type: "time",
locale: "en-US",
timeZone: "UTC",
hour12: false,
},
},
padding: { bottom: 32 },
series: [
{ name: "L1 apparent current", type: "step-after", unit: { suffix: " A" } },
{ name: "L2 apparent current", type: "step-after", unit: { suffix: " A" } },
{ name: "L3 apparent current", type: "step-after", unit: { suffix: " A" } },
{ name: "L/PEN apparent current", 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 });