switch (this.options.render) {
case 'value':
label = dataset.data[index];
break;
case 'label':
label = this.chart.config.data.labels[index];
break;
case 'image':
label = this.options.images[index] ? this.loadImage(this.options.images[index]) : '';
break;
case 'percentage':
default:
label = this.getPercentage(dataset, element, index) + '%';
break;
}
const appRoutes: Routes = [
{ path: '', component: HomeComponent },
{ path: 'projects/:id', component: ProgectsComponent},
{ path: 'projects/:sectorid/:rogectid', component: ProgectComponent},
{ path: 'polls', component: PollsComponent},
{ path: 'poll/:id', component: PollComponent},
{ path: '**', redirectTo: '/' }
];