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>
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.
Source: stackoverflow.com
Related Query
- ng2-chart with Angular 4: Can't bind to 'data' since it isn't a known property of 'canvas'
- Can't bind to 'chartType' since it isn't a known property of 'canvas' with angular12
- NG2-Charts Can't bind to 'datasets' since it isn't a known property of 'canvas'
- Can't bind to 'data' since it isn't a known property of 'canvas'
- How to bind json array data to chart.js with same canvas id?
- Bootstrap grid not working with canvas
- ChartJS with AngularJS - Canvas won't display anything
- Test a Chart.js canvas with Protractor
- Creating dropdown options with Chart.js using select tag and multiple canvas
- React chart : prevent chart's canvas scaling with height and width
- Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused. chat.JS
- Updating Chart.js with JSON, cannot read property 'length' of undefined
- Chartjs not working with d3 from csv source
- How can I implement Polar area charts with Chart.js and Canvas
- Problems with ChartJS "Uncaught TypeError: Cannot read property 'length' of null"
- Reusable react component with Canvas doesn't render canvas with its props
- Point Style property with Inverted Image in Line Chart.js
- How to set chart's percentageInnerCutout property with ng2-charts
- How to change draw order by line property with chart.js
- Legend isnt moving to the right on my doughnut chart created with chart.js
- How to write better code in es6 for formatting an object with array values
- angular-chart.js : issue with pointHoverBorderColor property for line chart
- <Canvas is already in use. Chart with ID '18' must be destroyed before the canvas can be reused> in react
- Problem with script src for Chart.js. The CDN for Chart.js funtions fine, so my code is ok. Somehow I'm not linking the file correctly
- HorizontalBar chart is displayed below canvas when I set height with style attribute for chart div (Chart.js 2.9.4)
- Updating Chartjs to 2.5 with custom code
- Show base64 image next to canvas with charts.js
- Eror: chart.min.js:13 Uncaught (in promise) Error: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused
- what is wrong with my code ? java script chart position
- Hide the element text on line charts since it overlaps with the line
More Query from same tag
- Angular Chartjs Overlapping Bar Chart with Chartjs ver 2.7
- Showing Percentage and Total In stacked Bar Chart of chart.js
- Chart.js: call method outside of onRefresh() method
- How to use async data for use with chart.js in ionic
- Chart.js Error: You may need an appropriate loader to handle this file type
- How to display Line Chart dataset point labels with Chart.js?
- Chart.js - disable tooltip when cursor moves outside the main canvas
- Show values on each arc doughnut Chart.js
- Chart JS - Change the color of the last element in a Bar Chart
- chart.js npm module not working
- Add watermark/logo to Chart.js
- Draw a Chart.js with data retrieved through ajax call
- How should i apply date picker in my chart
- Chart.js How to invert (swap) axes?
- How to emit an event with vue-chartjs?
- chart js not dispalying data array that comes from an axios request
- How to display data values on bar graph (chart.js)?
- Angularjs lazy load chartjs when in another tab
- Chart JS tooltip and label width is zeroed
- Programmatically open and close Chart.js tooltip
- Chart.js: only show labels on x-axis for data points
- Strikethough labels when data is hidden
- How to maintain chartjs / ng2-charts gradient on window resize?
- Chart.register is not a function
- Can I plot random points on a chart.js or Google Charts chart?
- ChartJS won't draw graph inside bootstrap tab until window resize
- Using Datalabels and ChartJS with Chartjs-node-canvas
- Having problems displaying multiple charts on a page
- How to add vertical line in bar chart using chartJs and ng2-charts?
- Chart.Mvc scale begin at 0 - Nullable bool property remains null