codxse / batavia

Batavia visualization app
1 stars 1 forks source link

Struktur Ekonomi Pie Date Filter #16

Closed codxse closed 8 years ago

codxse commented 8 years ago

the problem same as #14

but the endpoint is

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

ngOnInit

  private ngOnInit(): void {
    console.log('on ngOnInit');
    this.tahun = 2012;
    this.url = "https://api.kawaljakarta.org/v1/struktur-ekonomi/key=tahun&gd=%22"
                +(this.tahun - 1).toString()+"%22&ld=%22"+this.tahun.toString()+"%22";
    this.loadData(this.url);
  }
codxse commented 8 years ago

done with #19 and https://github.com/codxse/batavia/commit/c1a63ae9893caac8f16176b8c493de62e1a28a89