Search
HTML Layout

The chart graphics scale to fill all space available to the component. As such, CSS width and height attributes are both set to 100%, filling all space provided by parent HTML element (such as div). If you need to display fixed-size charts, e.g. in sidebars or in tooltip overlays, assign the size to parent div's width and height attributes. If you prefer charts to grow dynamically to fill browser's window, we recommend using a CSS grid, with chart placed in fr-unit tracks, with additional constraints applied using minmax CSS function. Latter approach is shown in sample projects from library's distribution.