git commit -m "Entferne Modulnummer und Icon aus Tooltip im TDR-Chart"

This commit is contained in:
ISA
2025-03-20 15:18:21 +01:00
parent 75529f030e
commit d5cf14ef87
3 changed files with 9 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
// **Redux-States für aktive Messkurve (TDR oder Schleife)**
const activeMode = useSelector(
(state: RootState) => state.tdrChart.selectedChartType
(state: RootState) => state.kueChartMode.activeMode
);
const isFullScreen = useSelector(
(state: RootState) => state.kabelueberwachungChart.isFullScreen
@@ -142,26 +142,6 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
height: "100%",
}}
>
{/* Auswahl zwischen TDR und Schleife */}
<div className="flex space-x-4 mb-4">
<button
className={`p-2 text-white ${
activeMode === "TDR" ? "bg-blue-500" : "bg-gray-400"
}`}
onClick={() => setChartType("TDR")}
>
TDR
</button>
<button
className={`p-2 text-white ${
activeMode === "Schleife" ? "bg-blue-500" : "bg-gray-400"
}`}
onClick={() => setChartType("Schleife")}
>
Schleife
</button>
</div>
{activeMode === "Schleife" ? (
<>
<h3 className="text-lg font-semibold">Schleifenmessung</h3>

View File

@@ -72,6 +72,13 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
},
},
plugins: {
tooltip: {
callbacks: {
label: function (context) {
return `${context.raw.m.toFixed(0)}`; // Nur den Wert anzeigen, ohne Icon und Modulnummer
},
},
},
zoom: {
pan: {
enabled: true,

View File

@@ -6,5 +6,5 @@
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
*/
const webVersion = "1.6.141";
const webVersion = "1.6.142";
export default webVersion;