Javascript – Use of Dom in echarts in charts.int(Dom) vs echarts.init(document.getElementById(id));
I see some use: var dom = document.getElementById('id'); var myChart = echarts.init(dom); and others: myChart = echarts.init(document.getElementById('id')); Is one preferable for some reason or is it just a matter of choice? I prefer the second as it saves a line…