- toggleVisibility() and toggleSelection() for legend entries

- use FontAwesomeModule also in app.module
- select and hide events in geomon-timeseries-chart.component.ts
This commit is contained in:
Arno Kaimbacher 2021-10-06 15:20:52 +02:00
parent 91cd763da0
commit e797122055
6 changed files with 183 additions and 34 deletions

View file

@ -0,0 +1,40 @@
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;
}