I cannot seem to be able to get my variable to reference the local json file instead of the current remote json file. I want to be able to set the Javascript to read the local test.json file instead of the remote resturl url. I want to change the current resturl variable to the commented resturl below it. Please let me know if you need more information. The scripts are based off of: https://github.com/kenklin/aws-price-comparison-chart
function update() {
// Construct REST URL
var resturl = "http://p1software-eb1.elasticbeanstalk.com/awsec2offering/api"
+ "/" + d3.select("#availabilityZone").node().value // us-east-1a
+ "/" + d3.select("#productDescription").node().value // linux
+ "/" + d3.select("#offeringType").node().value // heavy
+ "/" + d3.select("#instanceType1").node().value // t1.micro
+ "," + d3.select("#instanceType2").node().value; // m1.small
// resturl = "test.json"
// resturl = "http://localhost:8080/awsec2offering/awsec2offering/api/us-east-1a/linux/heavy/t1.micro,m1.small."
d3.json(resturl, function(error, json) {
data = json.ec2offerings;
// Assign colors to each unique name.
var color = d3.scale.category10();
color.domain(data.map(function(p) { return createUniqueName(p); }));
// Coerce the data to numbers.
data.forEach(function(d) {
d.month = +d.month;
});