Having experience with Kendo UI charts, I am new to highcharts. In Kendo, we could specify the fieldname for plotting the chart like this:
series: [{
name: "steps",
field: "steps",
categoryField: "createddate"
}]
We could also define the dataSource as follows:
dataSource: dSource
where dSource is an AJAX URL.
I couldn't find a similar approach in the tutorial. The JSON data I have is shown below:
[{"ActivitySummaryKey":174000,
"id":"kkse2",
"activityscore":-,
"activitycalories":456,
"caloriesBMR":1017,
"caloriesOut":1412,
"distances":1.57828236,
"elevation":0,
"fairlyActiveminutes":34,
"floors":0,
"lightlyActiveMinutes":28,
"marginalCalories":334,
"sedentaryMinutes":827,
"steps":5077,
"veryActiveMinutes":26,
"trackersteps":0,
"trackerdistances":0,
"trackerfloors":0,
"trackerelevation":0,
"trackerActivityCalories":0,
"trackerCaloriesOut":0,
"trackerMinutesSedentary":0,
"trackerminutesLightlyActive":0,
"trackerminutesFairlyActive":0,
"trackerminutesVeryActive":0,
"createddate":"9/17/2014 12:00:00 AM",
"distanceunit":"Miles"
}]
I aim to plot steps on the y-axis and created date on the x-axis.
Any suggestions on how to achieve this with highcharts?