     type = params.type
 
     margin = top: 20, right: 80, bottom: 30, left: 80
+    if params.title
+      margin.top += 30
+
 
     width -= margin.left + margin.right
     height -= margin.top + margin.bottom

  hideLegend: false
  hideXAxis: false
  hideYAxis: false
  #lineWidth: 1

fgColorParams = ['axisLineColor', 'axisTextColor', 'crosshairLineColor', 'crosshairTextColor']


  svg = d3.select(container).append('svg')
    .on('mousemove', (d, i) -> mouseMoves.push d3.mouse g.node())

  title = svg.append('text')
    .style('text-anchor', 'middle')

  # TODO font
  g = svg
