I currently have the following plot:
The y-values themselves do not matter for this use case. I am trying to find a way to keep the label Signal
while removing the units/values. I found visible: false
but this removes the numbers as well as the label. Thank you for reading!
Here is the code:
return (
<>
{
<Plot
ref={ref}
className="plotly"
data={[
{
x: spectrumData.x,
y: spectrumData.y,
type: "scatter",
marker: { color: "#f50057" },
},
]}
layout={{
title: "Processed Spectrum",
font: { family: "Roboto", color: "#000" },
xaxis: {
range: [params.minWave, params.maxWave],
title: { text: "Wavenumber (cmโปยน)" },
rangeslider: {
autorange: true,
yaxis: { rangemode: "auto" },
},
type: "linear",
},
yaxis: {
autorange: true,
title: {
text: "Signal",
},
type: "linear",
fixedrange: false,
},
}}
useResizeHandler={true}
/>
}
</>
);