I am trying to read tsv data using d3. However, my data has comment lines as follows
#Comment line
@Different comment line
x y
1 2
4 2
5 1
Is it possible to get d3 to ignore those lines?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
D3 has no built-in way to ignore comment lines. Your easiest option is going to be to pre-process the file before parsing with D3: