I am trying to populate a number of charts with data in a .json file. I have the chart working as required with some dummy/hard coded values (commented out in plunker), but when I try to add the values from the .json file/model it does not work.
html template:
<highchart config="chartConfig"></highchart>
controller:
series:[
{
data: ['part.before_hp','part.before_torque'], //this doesn't work
//data: [2,3], //this works
dataLabels: {
enabled: true,
color: '#FFFFFF',
y: 40,
style: {
fontSize: '24px',
fontFamily: 'tg, sans-serif',
textShadow: '0 0 3px black'
}
},
borderColor: 'transparent',
pointPadding: 0.03
},
{
data: ['part.after_hp','part.after_torque'], //this doesn't work
//data: [5,6], //this works
dataLabels: {
enabled: true,
color: '#FFFFFF',
y: 40,
style: {
fontSize: '24px',
fontFamily: 'tg, sans-serif',
textShadow: '0 0 3px black'
}
},
borderColor: 'transparent',
pointPadding: 0.03
}
],
I am really stuck on this, have been trying for days to fix it, if anybody can help I would really appreciate it.
I have created this plunker to demonstrate what I am doing.