this was a problem where it would add a semicolon after every command instead of using the fluent interface. for instances it would give me
chart.yAxis
            .setLabel('blah');
            .tickFormat(d3.format(',d'));
which obviously is wrong. my fixes makes it:
chart.yAxis
            .setLabel('blah')
            .tickFormat(d3.format(',d'))
            ;