score:0

we need to use "type" instead of "charttype".

the below code works

 <div style="display: block;">
        <canvas basechart 
        [datasets]="barchartdata"
        [labels]="barchartlabels"
        [options]="barchartoptions"
        [plugins]="barchartplugins"
        [legend]="barchartlegend"
        **[type]**="barcharttype">
      </canvas>
    </div>

details for the solution

score:1

in your html template, you should replace [charttype]="barcharttype" by [type]="barcharttype".

for further information, please consult chart types from ng2-charts documentation.


Related Query

More Query from same tag