Home forums Using CanvasJS charts in ionic 2 y-axis labels changes Reply To: charts in ionic 2 y-axis labels changes

#17627

Prabhjot
Member

here is my html code

<canvas baseChart *ngIf=”showBarChart && !noRecord” class=”chart base-chart” [colors]=”barChartColors” [datasets]=”barChartData”
[labels]=”barChartLabels” [options]=”barChartOptions” [legend]=”barChartLegend” [chartType]=”barChartType” (chartHover)=”chartHovered($event)” (chartClick)=”chartClicked($event)”></canvas>

Js code
this.barChartOptions={
axisY: {
labelFormatter: {suffix: “K”}
},
};

i try to add suffix like this but it is not working. Plz help .

i want to add suffix K to yaxis label.