codxse / batavia

Batavia visualization app
1 stars 1 forks source link

Komponen Inflasi Pie Date Filter #14

Closed codxse closed 8 years ago

codxse commented 8 years ago

Though the date only 2012, please make a filter so it can changes to another date (year). The code is your call.

    console.log('on ngOnInit');
    this.tahun = 2012;
    this.url = "https://api.kawaljakarta.org/v1/komponen-inflasi/key=tahun&gd=%22"
                +(this.tahun - 1).toString()+"%22&ld=%22"+this.tahun.toString()+"%22";
    this.loadData(this.url);

for example, for 2012 data the end point

https://api.kawaljakarta.org/v1/komponen-inflasi/key=tahun&gd='2011'&ld='2012'

please make the default value is the last year

codxse commented 8 years ago

done #18