 
         dataSet.notifyDataSetChanged()
         data.notifyDataChanged()
-        self.lineChart.notifyDataSetChanged()
       } else {
         let dataSet = LineChartDataSet(values: entries, label: nil)
         dataSet.setColor(EmonCMSColors.Chart.Blue)

    } else {
      self.barChart.data = nil
    }
  }

}


        dataSet.notifyDataSetChanged()
        data.notifyDataChanged()
      } else {
        let dataSet = BarChartDataSet(values: entries, label: "kWh")
        dataSet.setColor(EmonCMSColors.Chart.Blue)
