Browse Source

cleanup

pull/14488/head
Maksym Tsymbarov 10 months ago
parent
commit
631a580211
  1. 10
      ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart.ts
  2. 2
      ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axes-panel.component.ts
  3. 1
      ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axis-row.component.ts

10
ui-ngx/src/app/modules/home/components/widget/lib/chart/time-series-chart.ts

@ -307,12 +307,10 @@ export class TbTimeSeriesChart {
const data = this.ctx.latestData.find(d => d.dataKey === yAxis.maxLatestDataKey);
if (data?.data[0]) {
const value = this.parseAxisLimitData(data.data[0][1], yAxis.unitConvertor);
// if (yAxis.option.max !== value) {
// yAxis.option.max = value;
// update = true;
// }
update = true;
yAxis.option.max = 124;
if (yAxis.option.max !== value) {
yAxis.option.max = value;
update = true;
}
}
}
}

2
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axes-panel.component.ts

@ -250,8 +250,6 @@ export class TimeSeriesChartYAxesPanelComponent implements ControlValueAccessor,
const foundYAxisKeys: DataKey[] = [];
for(const yAxis of yAxes) {
console.log("yAxis",yAxis)
const min = yAxis.min as ValueSourceConfig;
const max = yAxis.max as ValueSourceConfig;
if (min.type === ValueSourceType.latestKey) {

1
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axis-row.component.ts

@ -226,7 +226,6 @@ export class TimeSeriesChartYAxisRowComponent implements ControlValueAccessor, O
private updateModel() {
const value = this.axisFormGroup.getRawValue();
console.log("value", value);
this.modelValue.label = value.label;
this.modelValue.position = value.position;
this.modelValue.units = value.units;

Loading…
Cancel
Save