I need replace d3.csv that read data from a file, and replace it with hardcoded data. How to do it in d3 ?
var width,height
var chartWidth, chartHeight
var margin
var svg = d3.select("#graph").append("svg")
var chartLayer = svg.append("g").classed("chartLayer", true)
d3.csv("data.csv", cast, main)
file (data.csv):
name,value
hoge,100
hellow, 312
world, 222
fuga, 254
I need to not depend on the CSV file.