I'm currently developing a project using React and Bootstrap that involves incorporating a large bar graph with two smaller boxes, all positioned horizontally together.
To visualize how it should appear, please expand the pen window to see them arranged side by side correctly:
https://codesandbox.io/s/lO9rvrBYM
However, I am encountering challenges with conditional rendering logic when there is no data and I need to avoid displaying the big bar graph. To explore this issue further, click on the following link:
https://codesandbox.io/s/ELLzLo3g
In the scenario involving conditional rendering, the elements are not properly positioned and end up stacked on top of one another permanently.
It seems like the problem may be related to line 69. I believe that modifying the rendering of the graph by removing one extra closing </div>
could help maintain the horizontal layout, but this modification leads to a syntax error.
If anyone with expertise in Bootstrap has any advice or tips on resolving this issue, your input would be greatly appreciated.