Concatenate data variables in Highchart Series -
i trying bring together multiple variables 1 series in highcharts have not working:
series: [ { cursor: 'pointer', name: 'im', data: responsejson.resultset[0].im0+','+responsejson.resultset[1].im1+','+responsejson.resultset[2].im2 },
any ideas?
the problem line:
data: responsejson.resultset[0].im0+','+responsejson.resultset[1].im1+','+responsejson.resultset[2].im2
will create string. in highcharts, need utilize array, proper format:
data: [ responsejson.resultset[0].im0, responsejson.resultset[1].im1, responsejson.resultset[2].im2 ]
note: im0/1/2 need number/array of values/object of values.
highcharts
No comments:
Post a Comment