score:36
Accepted answer
High probability primeng still only works with v2 of chart.js since v3 just released this month and had some breaking changes.
Downgrading chart.js to version 2.9.4 should resolve your issue
score:-1
Cahnge
import Chart from 'chart.js'
into
import { Chart, registerables } from 'chart.js';
import 'chartjs-adapter-moment'; // or another adapter to avoid moment
Chart.register(...registerables);
from here.
Source: stackoverflow.com
Related Query
- Chartjs not rendering chart and no error thrown
- ChartJS on NodeJS: error Chart is not defined
- Syntax error : Cannot use import statement outside a module in Vue2 chart js
- Error says Chart is not defined
- Reproduce Error in Chartjs v2 Polar chart not plotting all supplied data
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Chart.js returns a console error and does not display the chart when using variables as data input
- 'require is not defined' error when attempting to use chartjs in javascript code
- Chart JS ShowChart()bar" is not a chart type error
- Chart.js; Chart is not showing time and imported data.
- how to not repeat code while creating multiple charts in chart js
- why i have this error Utils is not defined when i want create a chart from chart.js
- 404 Not Found Error when trying to display a chart with Chart.js
- Chart.js core.js:6162 ERROR Error: "line" is not a registered controller
- ReferenceError: Chart is not defined - chartjs
- core.js:4197 ERROR TypeError: chart_js__WEBPACK_IMPORTED_MODULE_2__ is not a constructor
- Chart.js: bar chart first bar and last bar not displaying in full
- react-chartjs-2 with chartJs 3: Error "arc" is not a registered element
- TimeSeries scale in ChartJS 3.0.2. brings error "This method is not implemented: either no adapter can be found or an incomplete integration was ..."
- Chart.js responsive option - Chart not filling container
- show label in tooltip but not in x axis for chartjs line chart
- chartjs + Angular6 is not showing charts or any error
- Html chart does not fit a small Android WebView
- Chart.js ng2-charts colors in pie chart not showing
- Chart.JS Mixed Chart - Bars Not Showing
- Chart looks only grey, does not show the color - Chartjs,discordjs
- Angular-chart.js - Make line chart does not curve
- angular-chartjs line chart TypeError: t.merge is not a function
- Chart.js line chart is not displaying
- Chart.js: width and height of a pie chart not respected
More Query from same tag
- How to generate bubble chart (Chart.js) using data from database FILTERED by user in Django?
- Chart.js in flex element overflows instead of shrinking
- Chart.js not working - Uncaught RefernceError:
- How do I place a new line in a label with Chart.js?
- Chart.js. Edit bar width -v2.5-
- How do I make the Line in ChartJS not exceed the maximum of yAxes
- How to remove rectangle box next to the legend text in Chart.js
- Angular 13, Chart.js, ng2-chart Update data from API dynamically
- how to increase space between legend and chart in chartjs (ng2charts ) using angular
- ChartJS showing old values when mouse over on Doughnut after updating values
- How to change the Y-axis value in chartjs
- Is there a way to align title and legend on the same line?
- Chart.JS Display 5 largest values in the legend
- How to convert pandas dataframe to specific json format
- ChartJS adding 3yAxes
- How to wait for all items to load within ng-repeat before then rendering a chart for each item
- Chart js show levels on top. (Bar chart with Stacked group)
- Stacked bar chart results in misaligned bars
- Chart.js sets canvas dimentions to 0x0 and do not display anything
- ChartJS tooltip when having multiple lines on a time graph
- PHP Date and Time, getting the 1st, 2nd, 3rd, and 4th week in a month
- Change ChartJs axis title dynamically
- How To get keys(index) of collection in laravel
- Why does putting two data sets with a Time Cartesian axis in Chart.js cause two Y axis tick sets?
- Charts.js dynamic data call (Angular)
- Charts in Ionic 2
- ChartJS and Flask, how to pass data?
- Chart.js with Django - Using REST
- charts.js Stacked Bar Graphs - selecting row and dataset selected
- Removing ChartJS 2 border and shadow from point style legend