How to pass string as a argument to d3.csv() function and process further for plotting heatmap in d3.js?
问题 I want to plot histogram using csv data using d3.js. I'm referring this link. In that tutorial they are using local file csv data but in my application data comes from the web-socket so, I'm thinking that I can collect this data and create one string as a csv data and pass this string to the d3.csv or d3.csv.parse function. meanwhile, I'm getting stuck at one point because my data is not properly populating over web-page. Web-socket server is sending this file data line by line : date,bucket