Question about chart generation and dom node handling

Hey guys,

i am creating a dashboard application with plotly.js and react-plotly-js and i have a question about the generation of SVG-based scatter plots.
I am currently using 2 csv datasets. The first one has 5.000 lines and 12 columns, the second one has 10.000 lines.
All columns of these datasets are visualized using a line chart.
Apparently the node count in the DOM does not change drastically when comparing the visualization of the 5000-lines dataset to the 10.000-lines dataset.

I am new to plotly and unfortunately I cannot find out, how the library is handling the amount of dom nodes, especially when doubling the data to be displayed.
Can anybody help me with this question, please?