I am trying to modify this fiddle
where in instead of this Json
var data = [{"symbol":"MSFT","date":"Day1","price":40},{"symbol":"MSFT","date":"Day2","price":23.18},{"symbol":"MSFT","date":"Day3","price":24.43}
data I want to pass this Json format {
"day1": 10,
"day2": 154,
"day3": 24,
"day4": 48,
"day5": 154,
"day6": 48,
"day7": 154,
"day8": 154,
"lineName": "cars",
}.
{
"day1": 10,
"day2": 154,
"day3": 24,
"day4": 48,
"day5": 154,
"day6": 48,
"day7": 154,
"day8": 154,
"lineName": "bikes",
},
{
"day1": 10,
"day2": 154,
"day3": 24,
"day4": 48,
"day5": 154,
"day6": 48,
"day7": 154,
"day8": 154,
"lineName": "planes",
}
I am new to JS and D3.js can any one give me some hint or example on hoe can i modify the code that it would accept the above Json . or any way of massaging the data