score:1
based on comment, you are importing the html page and not the js file.
here is what you can do to resolve the issue.
after visiting https://cdnjs.com/libraries/chart.js you can,
- select the version of build that you want.
- select the type of asset that you want (javascript / stylesheet).
- click on '</>' to copy the script tag which can be pasted and used directly in your page.
Source: stackoverflow.com
Related Query
- Cross-Origin Read Blocking (CORB) blocked cross-origin response https://cdnjs.com/libraries/Chart.js
- How to run Chart.js samples using source code
- How can i fix my code so i can read my data
- Chart Js Cannot read property 'length' of undefined
- Uncaught TypeError: Cannot read property 'offsetWidth' of undefined - chart.js
- Chartjs cannot read property datasets of undefined
- TypeError: Cannot read property 'defaults' of undefined when using the react wrapper of chartjs
- Cannot read property 'labels' of undefined
- Chart.js Cannot read property 'fontSize' of undefined
- Chart.JS Can not read property '_meta' of Undefined
- Drawing line chart in chart.js with json response
- TypeError: Cannot read property 'legend' of undefined | Angular + ng2-charts
- TypeError: Cannot read property 'currentStyle' of null in chart.js
- ChartJS: Uncaught TypeError: Cannot read property 'call' of undefined
- Cannot read property 'transition' null chartjs
- Uncaught TypeError: Cannot read property 'draw' of undefined
- error : "Uncaught TypeError: Cannot read property 'length' of null" Chart.js
- Ionic/Chart.js - Cannot read property 'nativeElement' of undefined
- How to add ChartJS code in Html2Pdf to view image
- chartjs - multi axis line chart - cannot read property 'min' of undefined
- Updating Chart.js with JSON, cannot read property 'length' of undefined
- Creating dynamic object to reorganize API response using Typescript
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- chartjs & asp.net: Cannot read property 'labels' of undefined
- Angular / ng2-charts: Fetching json data in chart object showing: Cannot read property 'length' of undefined
- code works fine on jsfiddle but one function is not working on website
- Chartjs not working with d3 from csv source
- Error in created hook (Promise/async): "TypeError: Cannot read property 'position' of undefined"
- Problems with ChartJS "Uncaught TypeError: Cannot read property 'length' of null"
- Uncaught TypeError: Cannot read property 'draw' of undefined : Angular chart js
More Query from same tag
- Chart.js generate chart with foreach mvc
- Chartjs 2.0 - Increase height of x-axis labels
- vue-chartjs reactive data error
- Charts not rendering properly in Angular
- chart.JS i want to put different color for each Y axis value grid line color
- Chart.js radar chart ticks are hidden behind the graph
- Flickering of charts and getcontext error with chartjs in the context of Vuejs
- chart.js plugins.register function with outer data
- How to select and pass array object to data setting of chart.js config?
- ChartsJS get value of Data/Dataset Label for Tooltip
- Change Angular js charts.js chart type dynamically
- How to disable scientific notations in logarithmic chart type
- chart.js is not visible on blank data
- How to use chart.js script to draw multiple pie Charts
- Remove gridlines in AngularCharts
- Chartjs - Doughnut chart with multi layer and running value
- Remove 0% from pie chart
- Line Chart Labels - Ng2Charts - ChartJS
- Plotting jqplot points to a chart.js chart
- Applying Callback To One Y-Axis
- using chart-dataset-override option in angular-chart.js
- How to apply gradient color in chart.js?
- Chart.js V2 formatting / styling labels
- Unable to set width and height on canvas in chart js
- chart.js remove on hover effect
- How to Remove Unnecessary Spaces around a semi-Doughnut Chart.js Chart
- creating a dynamic number of charts using chart.js using angular
- How to apply each color to each dataset
- How to add a custom event on legend click
- Conditional in ChartJS axes tick callback function isn't returning the expected labels