- setLarge(!large)} />
+ setLarge(!large)} instant={instant} />
);
}
-function Courbes({ selection: { station, du, au }, d }) {
+function Courbes({ selection: { station, du, au }, d, caler }) {
const { A, B, T, plots: PLOTS } = d;
const indice = (titre, sinon) => { const i = PLOTS.findIndex(p => p.titre === titre); return i < 0 ? sinon : i; };
const [Plotly, setPlotly] = useState(null), [pret, setPret] = useState(false);
@@ -140,7 +140,7 @@ function Courbes({ selection: { station, du, au }, d }) {
return Plotly.react(g, p.traces.map(t => ({ type: "scatter", mode: t.mode || "lines", marker: { size: 4 }, x: T[t.t], y: t.y, name: t.name,
uid: t.name.replace(/\W/g, "_"), line: t.line,
hovertemplate: `${t.name} : %{y}