score:2
Accepted answer
Such static files are usually stored in priv/static
. One way to do this would be to put data.tsv
in priv/static/data/data.tsv
, and then adding data
to the list of directories that Plug.Static
should serve, by changing lib/my_app/endpoint.txt
like this:
plug Plug.Static,
at: "/", from: :my_app, gzip: false,
- only: ~w(css fonts images js favicon.ico robots.txt)
+ only: ~w(css fonts images js favicon.ico robots.txt data)
Source: stackoverflow.com
Related Query
- Phoenix: How to load a static tsv file for d3 graph
- D3js: How to load a tsv file and select only the data which is available for two different points
- How to load data from an internal JSON array rather than from an external resource / file for a collapsible tree in d3.js?
- How to load a csv file from static in django into javascript function
- How to load tsv file to use with D3
- How to load data from Django to a variable for a D3 graph
- How to load data from a CSV file in D3 v5
- how to load a json object instead of json file
- how to use svg file for image source in D3
- How to add a title for a NVD3.js graph
- How to calculate in-degree, out-degree and weigted degree for force directed graph (d3.js)?
- D3: How to dynamically refresh a graph by changing the data file source?
- How to check d3 js force graph for nodes with no links and remove them?
- How to load CSV File in Angular JS to do charts
- d3: how can I load external CSV file into data?
- How to fetch data from json file to draw a dynamic graph by using d3.js
- How to Increase the width of C3 pie chart Legend only. Not for the whole graph
- How do I graph an individual line for each the groups within a Javascript map object using D3.js
- how to draw a d3 bubble chart for a local geojson file
- How to specify 3 different custom colors for 3 nodes in D3 force layout on load
- d3.js - How to do data mapping and filter for Stacked Bar graph
- how to load geometryCollection of geojson file in d3
- How would I parse a large TSV file in node.js?
- How to use json data instead of tsv file in d3 multi line charts?
- D3.js - How to use inline JSON as dataset for D3 charts, instead of csv/tsv/json file
- How to call JSON from a file instead of in-line for Multi-Edge D3 Example
- How to bring in a d3JS javascript file to R Shiny to draw for a Force Network graph?
- How to load a .csv file into crossfilter with d3?
- How can on make a static force graph in D3.js V4?
- d3.tsv to load tsv file not working
More Query from same tag
- mousemove callback on a path element in d3js
- Display informations about a bubble chart D3.js in AngularJS
- transition a circle into a line by unrolling it with SVG and d3
- .datum multiple values in NVD3.js
- Adding a key to nested elements in a d3.js chart with the data() method
- I'm trying to build D3.js by using CodeMirror editor, but anything I input in there can't be properly visualized by D3.js. What am I missing?
- NVD3 - line chart NaN on safari using latest versions
- how can I see the current element that represents a bar to which the hovering is applied
- Release all sticky nodes
- Making histogram of frequency of words
- How to change x axis format from d3.js line charts
- D3 Mouse Move on Two Graphs at once
- d3.js changing data on click (multiple instances of Donut Chart )
- What does input parameter 'd' mean in D3.js function?
- D3 chart with JSON web service
- Make d3.text run sequentially?
- Get raw element from d3 selection
- How to "hide" text in center of d3 zoomable sunburst when zooming?
- d3js negative and positive barplot looses its alignment when more bars added
- d3 v4: How to make a path being curved when only start and end point are known?
- d3js - How to update an existing svg path in a simple d3 line chart with new data flowing through?
- How do I build simple D3 charts that display massive amounts of data?
- d3.layout.histogram() returning wrong output
- d3 network (graph) visualization - remove node (+ links) on click
- programmatically accessing compiled CSS class names in angular 2
- How is it to debug the data() call in D3?
- Using D3 and blobs to render svg to image
- How to use python pandas to get intersection of sets from a csv file
- Transition both circles and text (within g element) in single general update pattern
- Angular Reload D3 Chart Directive after event