 
   renderGraph: ->
     return if @model.has('error')
+    @$el.removeClass('has-content')
 
     @setupGraph() unless @svg
     @updateDomain()


  events:
    'click svg': 'cycleFormat'

  contentChanging: -> @$el.removeClass('has-content')

  fetchData: -> @model.fetchData()
  getFormat: -> @model.get('format') || @defaultFormat


  initialize: ->
    @listenTo(@model, 'change:data change:error change:format', @dataUpdated)
    @listenTo(@model, 'refresh', @fetchData)

    @listenTo(@model, 'destroy', @remove)
