如何使用anychart在一行中设置两个图表?

How to set two chart in one row using anychart?

我想在一行中显示两个图表 我已经应用了 chart.bounds() 方法,但在这里仍然不起作用我的每个图表都在不同的组件中,我正在像这样连续传递两个组件:

<Container>
        <Row>
          <Col>
            <Graph />
          </Col>
          <Col>
            <Demo />
          </Col>
        </Row>
      </Container>

这里当我使用 react-bootstrap.

时,Graph 和 Demo 没有显示在一行中

由于图表放置在不同的容器中,因此无需对它们应用 bounds() 设置。这完全是关于 CSS 内容设置。