We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec468bd commit 5ee5addCopy full SHA for 5ee5add
src/components/plotly/shared/custom-plot.js
@@ -56,6 +56,13 @@ const CustomPlot = ({
56
57
// record warnings
58
const [problem, setProblem] = useState()
59
+ useEffect(() => {
60
+ setProblem(
61
+ height < 50
62
+ ? `There isn't enough space to render the visualization${doSubPlots ? 's' : ''}.`
63
+ : null,
64
+ )
65
+ }, [doSubPlots, height])
66
67
// special styling is needed for square visualizations due to plotly.js deficiencies
68
// however, this should only be applied if the container is taller than it is wide
0 commit comments