https://bl.ocks.org/mbostock/3886208 i am working on d3 charts, here they 
provided  csv file i want to import it to my component.

https://plnkr.co/edit/BooZfKJz0nLATpTe1SwH?p=info  in this plunker they 
have provided  json data like wise i want to return CSV data.


created local CSV file.

data.CSV file

export var pie =  my CSV data;

in my component  

import {pie} from '../data';

like this  i tried to return the data

d3.csv("data.csv", function(d, i, columns) {
  for (i = 1, t = 0; i < columns.length; ++i) t += d[columns[i]] = 
+d[columns[i]];
  d.total = t;
  return d;
}, function(error, data)


there i am not getting the data help me.



  

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to