visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.74k stars 302 forks source link

how do I use rem unit in vis-timeline? #1799

Open wine-fall opened 1 month ago

wine-fall commented 1 month ago

here is the option

{
    height: 400
}

and the 400 means '400px', right? Can I change it to rem with some settings?

I know I can do sth like this:

{
    height: '8rem'
}

but can I do this automatically with some settings or plugins?