правки по графикам
Gitea Actions Demo / build_and_push (push) Successful in 44s
Details
Gitea Actions Demo / build_and_push (push) Successful in 44s
Details
This commit is contained in:
parent
f573aff39c
commit
ef216d5ba7
|
|
@ -434,7 +434,12 @@ const getUnit = (label: string) => {
|
||||||
};
|
};
|
||||||
/** Computes "Данные участка" over every metric for the given point range. */
|
/** Computes "Данные участка" over every metric for the given point range. */
|
||||||
const computeAreaData = (start: number, end: number) => {
|
const computeAreaData = (start: number, end: number) => {
|
||||||
markedCoordinats.value = lineCoordinates.slice(start, end);
|
// The purple line on the map is shown only for a real sub-range;
|
||||||
|
// a full-range zoom keeps "Данные участка" but highlights nothing.
|
||||||
|
markedCoordinats.value =
|
||||||
|
start > 0 || end < lineCoordinates.length
|
||||||
|
? lineCoordinates.slice(start, end)
|
||||||
|
: [];
|
||||||
let avgData: AvgData = {};
|
let avgData: AvgData = {};
|
||||||
for (const config of chartConfigs.value) {
|
for (const config of chartConfigs.value) {
|
||||||
const values = config.data.datasets[0].data.slice(start, end);
|
const values = config.data.datasets[0].data.slice(start, end);
|
||||||
|
|
@ -832,6 +837,7 @@ const buildChartOptions = (
|
||||||
activeSection.value = null;
|
activeSection.value = null;
|
||||||
group.resetAll();
|
group.resetAll();
|
||||||
areaAvgData.value = {};
|
areaAvgData.value = {};
|
||||||
|
markedCoordinats.value = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
activeSection.value = sectionNo;
|
activeSection.value = sectionNo;
|
||||||
|
|
@ -1064,6 +1070,7 @@ const resetChartZoom = () => {
|
||||||
group.resetAll();
|
group.resetAll();
|
||||||
activeSection.value = null;
|
activeSection.value = null;
|
||||||
areaAvgData.value = {};
|
areaAvgData.value = {};
|
||||||
|
markedCoordinats.value = [];
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue