score:0

Accepted answer

i guess i answer my own question. since i am using ngx-charts. i didn't notice that it had a [results] option which is basically what @erevald was suggesting. therefore the data option was already built in. so the answer was basically to add another html tag.

<ngx-charts-bar-vertical-stacked       
          [results]="data2"      
</ngx-charts-bar-vertical-stacked>

after that, modify the ts file , with ngx-chart suggestions and that's it.


Related Query

More Query from same tag