Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new in d3.js. I am modifying data using this code.

d3.csv("items1(3).csv",function(data) 
       { data.forEach(function(d) 
                      { if(typeof d.Sales === "string")
                      { d.Sales = +d.Sales || 0}
                      }); console.log(data); 
       });


I want to save this modified data in csv file. How I can do that?

What I have tried:

I have searched on internet but did not found any help
Posted
Updated 2-May-20 23:36pm

 
Share this answer
 
d3.js is a library to display data and draw charts; it is not meant to save anything at all.
javascript save csv[^] will give you a lot of material to start with.
 
Share this answer
 
Comments
Member 8840306 3-May-20 6:55am    
it javascript help not d3.js
phil.o 3-May-20 7:00am    
That's why the search page I gave a link for will give you plenty of sources to get what you need done.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900