I have a cubism d3 chart on my page. I also want to add more charts to the page. Is it possible to add more d3 charts in the same page or will i have to use some other libraries?
I am asking this because every visualization in d3 uses .axis and if i give some style to cubism graph then it would affect other graphs as well.
I would recommend wrapping the entire generating code in a function which specifies which DOM element you want to put the chart in as a parameter. This will leverage javascript closure and everything should work itself out.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.