Javascript/Coffeescript newb here. I have recently been fiddling with a highcharts dual meter api in coffeescript. I'm trying to change change the style of my labels (i.e. color, font-size). I've looked at examples in the highchart website (Highchart API Reference) by translating javascript to coffeescript can be a bit finicky. The syntax below appears to be incorrect and I was just wondering what's the correct syntax for styling labels.
Coffeescript:
@chart = undefined
labels = {0: '0s', 5: '0.5s', 10: '1s', 15: '10s', 20: '20s'}
.
yAxis: [{
min: 0
max: 20
minorTickPosition: 'outside'
tickPosition: 'outside'
minorTickLength: 13
tickLength: 15
labels:
enabled: true
formatter: -> labels[@value]`
style:
'font-size': '20px'
'color': '#00ff00'`