score:0
you need to add p-chart in declarations : [ ] in app.module.ts so that you can access it in other components.
import { ngmodule } from '@angular/core';
import { commonmodule } from '@angular/common';
import { salescomponent } from './sales.component';
import { genericmodule } from '../generic.module';
import { chartmodule } from 'primeng/chart';
import { pchartcomponent} from './pchart.component';
@ngmodule({
declarations: [salescomponent, pchartcomponent],
imports: [
commonmodule,
genericmodule,
chartmodule
]
})
export class salesmodule { }
Source: stackoverflow.com
Related Query
- Chart in other module
- Angularjs - Charts.js: Same chart element doesn't redraw on other view
- How to Draw Gantt chart using chart js or other libraries
- Fill Chart.js bar chart with diagonal stripes or other patterns
- chart.js - link to other page when click on specific section in chart
- Mouse over on line chart data active other data-set in Chart.js
- A chart Js error issue are occured in my Laravel other page?
- Chartjs - Stacked bar chart data order causes invisible other values
- what is wrong with my code ? java script chart position
- How to print a chart rendered by code
- Chartjs - Stacked bar chart blocking other values
- Syntax error : Cannot use import statement outside a module in Vue2 chart js
- VueJS + Chartjs - Chart only renders after code change
- How do I destroy/update Chart Data in this chart.js code example?
- Can't use a chart module with angularjs
- getting additional value fields from data source for dx.chartjs doughnut chart
- 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
- Gantt Chart Variation with Chart JS or other libraries
- ChartJS Bar chart with time scale - Bars overlap with each other
- Getting the HTML code of a chart created by chart.js
- How to run Chart.js samples using source code
- how to not repeat code while creating multiple charts in chart js
- how to only show zero grid axes at center and hide all other gridlines in chart js
- Set height of chart in Chart.js
- Dynamically update values of a chartjs chart
- How to add text inside the doughnut chart using Chart.js?
- How to clear a chart from a canvas so that hover events cannot be triggered?
- In Chart.js set chart title, name of x axis and y axis?
- Limit labels number on Chart.js line chart
- Destroy chart.js bar graph to redraw other graph in same <canvas>
More Query from same tag
- How to customize Data Labels of area chart on ChartJS?
- Chartjs show seconds on the x axis and volume on the y
- Not able to remove legent from Radar Chart in chart.js even using legent: {display : false}
- how to use vuechartkick in nuxt js
- Chart.js scatter axis titles
- How to make data always visible on bars Chart.js
- Chartjs - Set start and end value into a Bar Chart
- How to start the chart from specific time and offest hour and then show the data on chart from target datetime in chartjs
- Chartjs in Reactjs - how can I update data dynamically?
- Chartjs v7.0 with plugin zoom, strange effect when use "drag" mode.
- Reverse tick order
- Javascript window.onload not displaying charts with Chart.js and Flask
- dynamic line styling in chartjs
- Passing the same props while rendering different elements conditionally in React.js
- How to make a prefilled doughnut in chart.js?
- Chart.js configuration
- chartjs how to update dynamically data from database(Chartjs cant get the data)
- mysql sum query for chartjs
- Is it possible to draw a bar and arrow/pointer on the right side of a chart?
- Chart JS custom tooltip not showing
- Output array of hashes from Ruby on Rails to chart.js
- Chart.js the value on the graph does not disappear when deselected
- add editable textbox to specific datapoint in a chart
- How to properly unpack data from PHP array encoded as JSON from a JavaScript file
- How to use JSON data in creating a chart with chartjs?
- Chart.js label and point getting cutoff on the right
- How to create a line on a chart using chartjs-plugin-annotation
- Is there a way to implement chart-js-plugin-waterfall as a react component
- Labeling and Data (ChartJS)
- How to properly use the chartjs datalabels plugin