- 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:
parent
91cd763da0
commit
e797122055
6 changed files with 183 additions and 34 deletions
40
src/shared/models/chart.ts
Normal file
40
src/shared/models/chart.ts
Normal 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;
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue