geomon.viewer/src/shared/models/chart.ts
Arno Kaimbacher e797122055 - toggleVisibility() and toggleSelection() for legend entries
- use FontAwesomeModule also in app.module
- select and hide events in geomon-timeseries-chart.component.ts
2021-10-06 15:20:52 +02:00

40 lines
No EOL
989 B
TypeScript

import { DatasetOptions } from "./options";
import { Duration, unitOfTime } from 'moment';
export interface DataEntry {
timestamp: number;
value: number;
xDiagCoord?: number;
yDiagCoord?: number;
}
export interface InternalDataEntry {
internalId: string;
// hoverId: string;
data: number[];
selected?: boolean;
options: DatasetOptions;
bar?: {
startOf: unitOfTime.StartOf;
period: Duration;
};
axisOptions: {
uom: string;
label?: string;
zeroBased?: boolean;
// yAxisRange?: MinMaxRange;
autoRangeSelection?: boolean;
separateYAxis?: boolean;
parameters?: {
feature?: { id: string, label: string };
phenomenon?: { id: string, label: string };
offering?: { id: string, label: string };
};
};
referenceValueData: {
id: string;
color: string;
data: DataEntry[];
}[];
visible: boolean;
}