+R = React.DOM
+
 # Canvases for charts
 PieChartCanvas = React.createClass
   render: ->

      @noticeProcessingAjax() if @state.ajax

      R.h2 null, "Moving volume overview"
      R.div
        className: 'row'
        R.div
          className: 'col-sm-12'
          @chartsPanel()

      R.hr null

      R.h2 null, "Add a new item"

    React.DOM.canvas
      style: { height: 200, width: 400 }


@MovingRecordsApp = React.createClass

  getInitialState: ->
    records: @props.data
    ajax:    false
    barChartInstance: null
    pieChartInstance: null

  getDefaultProps: ->
    records: []
