TDMChartEntry d Type
This commit is contained in:
@@ -50,13 +50,16 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
|
|||||||
: []
|
: []
|
||||||
);
|
);
|
||||||
//--------------------------------
|
//--------------------------------
|
||||||
const tdmChartData = useSelector((state: RootState) => state.tdmChart.data);
|
const tdmChartData = useSelector(
|
||||||
|
(state: RootState) => state.tdmSingleChart.data
|
||||||
|
);
|
||||||
const pinDistance =
|
const pinDistance =
|
||||||
Array.isArray(tdmChartData?.[selectedSlot ?? -1]) &&
|
Array.isArray(tdmChartData?.[selectedSlot ?? -1]) &&
|
||||||
tdmChartData[selectedSlot!]?.length > 0 &&
|
tdmChartData[selectedSlot!]?.length > 0 &&
|
||||||
typeof tdmChartData[selectedSlot!][0].d === "number"
|
typeof tdmChartData[selectedSlot!][0].d === "number"
|
||||||
? tdmChartData[selectedSlot!][0].d
|
? tdmChartData[selectedSlot!][0].d
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
//--------------------------------
|
//--------------------------------
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
import("chartjs-plugin-zoom").then((zoomPlugin) => {
|
import("chartjs-plugin-zoom").then((zoomPlugin) => {
|
||||||
@@ -106,13 +109,15 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
|
|||||||
data: pinDistance !== null ? [{ d: pinDistance, p: 0 }] : [],
|
data: pinDistance !== null ? [{ d: pinDistance, p: 0 }] : [],
|
||||||
borderColor: "red",
|
borderColor: "red",
|
||||||
backgroundColor: "red",
|
backgroundColor: "red",
|
||||||
pointRadius: 5,
|
pointRadius: 6,
|
||||||
pointStyle: "circle",
|
pointStyle: "triangle",
|
||||||
showLine: false,
|
showLine: false,
|
||||||
parsing: {
|
parsing: {
|
||||||
xAxisKey: "d",
|
xAxisKey: "d",
|
||||||
yAxisKey: "p",
|
yAxisKey: "p",
|
||||||
},
|
},
|
||||||
|
order: 10, // 👉 bringt den Punkt in den Vordergrund
|
||||||
|
// z: 10, // optional: zusätzliche Absicherung
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.183";
|
const webVersion = "1.6.184";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { fetchTDMDataBySlotThunk } from "../thunks/fetchTDMListBySlotThunk";
|
|||||||
interface TDMChartEntry {
|
interface TDMChartEntry {
|
||||||
id: number;
|
id: number;
|
||||||
t: string;
|
t: string;
|
||||||
|
d?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TDMChartState {
|
interface TDMChartState {
|
||||||
|
|||||||
Reference in New Issue
Block a user