Schleifenmessung style
This commit is contained in:
@@ -28,7 +28,7 @@ ChartJS.register(
|
|||||||
Legend,
|
Legend,
|
||||||
Filler
|
Filler
|
||||||
);
|
);
|
||||||
|
import { getColor } from "../../../../../../utils/colors";
|
||||||
const usePreviousData = (data: any[]) => {
|
const usePreviousData = (data: any[]) => {
|
||||||
const ref = useRef<any[]>([]);
|
const ref = useRef<any[]>([]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -90,34 +90,42 @@ const LoopMeasurementChart = () => {
|
|||||||
label: "Messwert Minimum",
|
label: "Messwert Minimum",
|
||||||
data: loopMeasurementCurveChartData.map((e) => e.i).reverse(),
|
data: loopMeasurementCurveChartData.map((e) => e.i).reverse(),
|
||||||
borderColor: "lightgrey",
|
borderColor: "lightgrey",
|
||||||
borderWidth: 1,
|
borderWidth: 2,
|
||||||
fill: false,
|
// fill: false,
|
||||||
pointRadius: 0,
|
pointRadius: 0,
|
||||||
|
pointHoverRadius: 10,
|
||||||
|
tension: 0.1,
|
||||||
},
|
},
|
||||||
selectedMode === "DIA0"
|
selectedMode === "DIA0"
|
||||||
? {
|
? {
|
||||||
label: "Messwert",
|
label: "Messwert",
|
||||||
data: loopMeasurementCurveChartData.map((e) => e.m).reverse(),
|
data: loopMeasurementCurveChartData.map((e) => e.m).reverse(),
|
||||||
borderColor: "#00AEEF",
|
borderColor: getColor("littwin-blue"),
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
fill: false,
|
// fill: false,
|
||||||
pointRadius: 2,
|
pointRadius: 0,
|
||||||
|
pointHoverRadius: 10,
|
||||||
|
tension: 0.1,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
label: "Messwert Durchschnitt",
|
label: "Messwert Durchschnitt",
|
||||||
data: loopMeasurementCurveChartData.map((e) => e.g).reverse(),
|
data: loopMeasurementCurveChartData.map((e) => e.g).reverse(),
|
||||||
borderColor: "#00AEEF",
|
borderColor: getColor("littwin-blue"),
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
fill: false,
|
// fill: false,
|
||||||
pointRadius: 2,
|
pointRadius: 0,
|
||||||
|
pointHoverRadius: 10,
|
||||||
|
tension: 0.1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Messwert Maximum",
|
label: "Messwert Maximum",
|
||||||
data: loopMeasurementCurveChartData.map((e) => e.a).reverse(),
|
data: loopMeasurementCurveChartData.map((e) => e.a).reverse(),
|
||||||
borderColor: "lightgrey",
|
borderColor: "lightgrey",
|
||||||
borderWidth: 1,
|
borderWidth: 2,
|
||||||
fill: false,
|
// fill: false,
|
||||||
pointRadius: 0,
|
pointRadius: 0,
|
||||||
|
pointHoverRadius: 10,
|
||||||
|
tension: 0.1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@@ -127,7 +135,11 @@ const LoopMeasurementChart = () => {
|
|||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
plugins: {
|
plugins: {
|
||||||
legend: { position: "top" as const },
|
legend: { position: "top" as const },
|
||||||
tooltip: { mode: "index" as const, intersect: false },
|
tooltip: {
|
||||||
|
yAlign: "bottom", // Tooltip oberhalb des Punktes
|
||||||
|
mode: "index" as const,
|
||||||
|
intersect: false,
|
||||||
|
},
|
||||||
zoom: {
|
zoom: {
|
||||||
pan: { enabled: true, mode: "x" as const },
|
pan: { enabled: true, mode: "x" as const },
|
||||||
zoom: {
|
zoom: {
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.202";
|
const webVersion = "1.6.203";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user