             .dimension dimension1
             .group group1
             .elasticY true
-            .x d3.time.scale()
-                .domain d3.extent dimension1.top Number.POSITIVE_INFINITY, yearAccessor
+            .x d3.time.scale().domain d3.extent dimension1.top Number.POSITIVE_INFINITY, yearAccessor
                 .xUnits d3.time.years
         chart1.yAxis().tickFormat priceFormat
         chart1.render()

            .group group6
            .title (d) ->
                'Country: ' + GeoService.countryISO2toCountryName.get(d.key) + '\n' + 'Value: ' + d.value
            .overlayGeoJson worldGeoFeatures, 'state', (d) ->
                d.id
            .projection d3.geo.mercator()
                .scale (chart6Width + 1) / 2 / Math.PI
                .translate [ chart6Width / 2, chart6Height / 1.8 ]
        chart6.on 'preRender', (chart) ->
            chart.colorDomain d3.extent(chart.data(), chart.valueAccessor())
        chart6.on 'preRedraw', (chart) ->

            .group group5
            .title (d) ->
                'Country: ' + GeoService.countryISO2toCountryName.get(d.key) + '\n' + 'Value: ' + d.value
        projection5 = d3.geo.mercator()
        projection5.scale (chart5Width + 1) / 2 / Math.PI
        projection5.translate [ chart5Width / 2, chart5Height / 1.8 ]
        chart5.projection projection5
        chart5.overlayGeoJson worldGeoFeatures, 'state', (d) -> d.id
        chart5.on 'preRender', (chart) ->
            chart.colorDomain d3.extent chart.data(), chart.valueAccessor()
        chart5.on 'preRedraw', (chart) ->
