#ngx-charts-bar-vertical-normalized

3 messages · Page 1 of 1 (latest)

primal pecan
#

Hi bros, I came here to question your the next:

I have a ngx-charts-bar-vertical-normalized, this function is ok. In this moment, when I put the click above the bar, they show me a percent. I need the number of percent always. Not only when I put the click above the bar.

I leave the code:

<ngx-charts-bar-vertical-normalized [view]="[1000, 400]" [results]="multi [xAxis]="showXAxis" [yAxis]="showYAxis" [legend]="showLegend" [legendTitle]="''"[showXAxisLabel]="showXAxisLabel" [showYAxisLabel]="showYAxisLabel"[yAxisLabel]="yAxisLabel" [tooltipTemplate]="tooltipTemplate"[customColors]="myColors" [showDataLabel]="true"><ng-template #tooltipTemplate let-model="model"><div style="padding: 5px; font-size: 15px;"><div>{{model.series}} <span style="font-size:20px;"> . </span>{{model.name}}</div> {{model.value}}%</div></ng-template></ngx-charts-bar-vertical-normalized>

The number that I said is {{model.value}}
Can you help me?

twin gull
#

Its appear like this cause its inside a tooltiptemplate

primal pecan
#

Do you know any way to show the number of percent inside the bar? Thanks bro