 
     @svgXAxis = @svgWrapper.append 'rect'
       .attr 'x', 0
-      .attr 'y', 70
-      .attr 'height', 5
+      .attr 'y', @dimensions.xAxisTop
+      .attr 'height', @dimensions.xAxisHeight
       .classed "#{bn}__axis #{bn}__axis--x", true
 
     @svgPoints = @svgWrapper.append 'g'

bn = 'beatmap-discussions-chart'

class @BeatmapDiscussionsChart
  transition: 1000

  constructor: (area, @length) ->
    @scaleX = d3.scale.linear()

      .classed "#{bn}__bar", true
      .attr 'x1', 0
      .attr 'x2', 0
      .attr 'y1', @dimensions.barTop
      .attr 'y2', @dimensions.barTop + @dimensions.barHeight

    points
      .append 'text'
      .classed "#{bn}__icon", true
      .style 'text-anchor', 'middle'
      .attr 'y', @dimensions.iconTop
      .html (d) =>
        icon = BeatmapDiscussionMessageType.icon[d.message_type]
        text = BeatmapDiscussionMessageType.iconText[d.message_type]
