Kai Anforderung: TDR Chart keine Punkte auf 0 setzen, für bessere Darstellung

This commit is contained in:
ISA
2025-03-31 15:38:23 +02:00
parent d250dc1400
commit 458bce6c51
4 changed files with 23 additions and 7 deletions

View File

@@ -83,13 +83,16 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
data: {
datasets: [
{
label: `Modul ${
/* label: `Modul ${
selectedSlot !== null ? selectedSlot + 1 : "?"
}`,
}`, */
label: `TDR Kurve`,
data: tdrChartData,
borderColor: getColor("littwin-blue"),
borderWidth: 1,
tension: 0.1,
pointRadius: 0,
pointHoverRadius: 5,
parsing: {
xAxisKey: "d",
yAxisKey: "p",
@@ -127,6 +130,7 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
yAxisKey: "p",
},
order: 9999,
pointHoverRadius: 15,
// Hier die Reihenfolge der Marker bestimmen
},
],

View File

@@ -101,7 +101,7 @@ const TDRChartActionBar: React.FC = () => {
{selectedId !== null && (
<button
onClick={handleSetReference}
className="border border-blue-500 text-blue-600 bg-white rounded px-3 py-1 text-sm hover:bg-blue-100"
className="border border-littwin-blue text-littwin-blue bg-white rounded px-3 py-1 text-sm hover:bg-blue-100"
>
Als Referenzkurve setzen
</button>
@@ -110,7 +110,7 @@ const TDRChartActionBar: React.FC = () => {
{/* 🔽 Dropdown für Messungen */}
<div className="flex items-center space-x-2">
<label htmlFor="tdrIdSelect" className="text-sm font-semibold">
Messung ID
TDR Messung
</label>
<select
id="tdrIdSelect"