I am using d3.js in Grails. I have a view called vis. In the script section I called:
<body>
<script>
...
d3.csv("data", function(error, data) {
if (error) throw error;
...
}
</script>
</body>
In my UrlMappings I have:
"/vis/data"(view:'/vis/data.csv')
When the page load I am getting the following error:
Class: java.lang.OutOfMemoryError
Message: Error mapping onto view [/vis/data.csv]: Java heap space
Caused by: Java heap space
My csv file has 230MB.
What is the correct way to call the d3 library in Grails? I want to have my csv file in conf/data folder.
EDIT
I need to load the file in the client side, I believe is not the same question in Large file download using grails
I know that big files need to be reading in parts, but how can I accomplish this in the client side?
Thanks in advance.