API
The table is rendered according to the configured width
and height
by default:
const s2Options = {
width: 600,
height: 400,
}
It should be noted that the table is rendered based on Canvas
, and the width and height of the configuration are actually setting the width
and height
of the canvas
, which means that configurations such as 100%
, 80vw
, etc. will not take effect:
const s2Options = {
width: '100%', // ❌
height: '20vh',// ❌
}