d3.js Integration with Vaadin - Passing csv or tsv file to JS

Hi,

I have been trying to integrate d3.js with my vaadin project. I am able to load the JS file and all using my java classes extending AbstractJavaScriptComponent and JavaScriptComponentState. But, I am facing difficulty in passing a csv or tsv file to the JS file.

d3.tsv(“data.tsv”, function(error, data) {
data.forEach(function(d) {
// TODO
});
//TODO
});

Can someone help me with on how to pass the required data to the d3js file ?

Hi Daniccan,

here is an useless answer after 3 years ^_^’
This is my first post on this forum. I started working with Vaadin a few days ago and I am faced with my first problem.
I need to program a statistics framework on an already existing web page using D3.js.
How can I integrate the JS library (https://d3js.org/) on Vaadin?

Thank you