git commit -m "Entferne Modulnummer und Icon aus Tooltip im TDR-Chart"
This commit is contained in:
@@ -34,7 +34,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
|
|||||||
|
|
||||||
// **Redux-States für aktive Messkurve (TDR oder Schleife)**
|
// **Redux-States für aktive Messkurve (TDR oder Schleife)**
|
||||||
const activeMode = useSelector(
|
const activeMode = useSelector(
|
||||||
(state: RootState) => state.tdrChart.selectedChartType
|
(state: RootState) => state.kueChartMode.activeMode
|
||||||
);
|
);
|
||||||
const isFullScreen = useSelector(
|
const isFullScreen = useSelector(
|
||||||
(state: RootState) => state.kabelueberwachungChart.isFullScreen
|
(state: RootState) => state.kabelueberwachungChart.isFullScreen
|
||||||
@@ -142,26 +142,6 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
|
|||||||
height: "100%",
|
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" ? (
|
{activeMode === "Schleife" ? (
|
||||||
<>
|
<>
|
||||||
<h3 className="text-lg font-semibold">Schleifenmessung</h3>
|
<h3 className="text-lg font-semibold">Schleifenmessung</h3>
|
||||||
|
|||||||
@@ -72,6 +72,13 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
|
tooltip: {
|
||||||
|
callbacks: {
|
||||||
|
label: function (context) {
|
||||||
|
return `${context.raw.m.toFixed(0)}`; // Nur den Wert anzeigen, ohne Icon und Modulnummer
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
zoom: {
|
zoom: {
|
||||||
pan: {
|
pan: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.141";
|
const webVersion = "1.6.142";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user