Refresh data in a component reloadData()


Within an UiViewUsageAndEvents component I want to put the below function at the end of the initialize() to refresh the data every x seconds.
How can I access the component itself to call the reloadData then? I have this.relaodData() is not a function error.

setInterval(function() {
}, 30000)


I did remix the initialize() function adding this

setInterval(function() {
_.each(self.get(‘series’), function(series) {

   var now=;
   var before =;

    series.dataSource.c3arguments.spec.start =   before.toString();
    series.dataSource.c3arguments.spec.end =    now.toString();

}, 30000)