
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NISTâs handling of the National Vulnerability Database.
@coreui/angular-chartjs
Advanced tools
Explore @coreui/angular-chartjs docs & examples Âť
Report bug
¡
Request feature
¡
Blog
Featured CoreUI for Angular libraries:
¡ CoreUI Components for Angular
¡ CoreUI Angular wrapper for Chart.js v4
¡ CoreUI Icons for Angular
ng add @coreui/angular-chartjs
npm install chart.js@4
npm install @coreui/chartjs@~4.1
npm install @coreui/angular-chartjs@~5.4
// ng modules
import { ChartjsModule } from '@coreui/angular-chartjs';
@NgModule({
imports: [
ChartjsModule,
...
// standalone components
import { ChartjsComponent } from '@coreui/angular-chartjs';
@Component({
imports: [
ChartjsComponent,
...
@Component({
selector: 'app-chart-sample',
template: `<c-chart type="line" [data]="data" [options]="options" width="300"></c-chart>`,
})
export class ChartSample {
colors = {
label: 'My dataset',
backgroundColor: 'rgba(77,189,116,.2)',
borderColor: '#4dbd74',
pointHoverBackgroundColor: '#fff',
}
labels = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
data = {
labels: this.labels,
datasets: [{
data: [65, 59, 84, 84, 51, 55, 40],
...this.colors,
fill: {value: 65}
}],
}
options = {
plugins: {
legend: {
display: false
}
},
maintainAspectRatio: false,
elements: {
line: {
tension: 0.4
},
}
};
}
component
name | description | type | default |
---|---|---|---|
customTooltips | Enables custom html based tooltips | boolean | true |
data | The data passed to Chart.js chart | ChartData | required |
options | The options object that is passed into the Chart.js chart | ChartOptions | undefined |
plugins | The plugins array that is passed into the Chart.js chart | PluginOptionsByType | undefined |
redraw | If true, will tear down and redraw chart on all updates | boolean | false |
type | Chart.js chart type. | keyof ChartTypeRegistry | bar |
wrapper | Put the chart into the wrapper with display: block . | boolean | true |
height | Height attribute applied to the rendered canvas (px) | number | undefined |
width | Width attribute applied to the rendered canvas (px) | number | undefined |
id | Html id attribute applied to the rendered canvas | string | undefined |
name | description |
---|---|
getDatasetAtEvent | Proxy for Chart.js getDatasetAtEvent. Calls with dataset and triggering event. |
getElementAtEvent | Proxy for Chart.js getElementAtEvent. Calls with single element array and triggering event. |
getElementsAtEvent | Proxy for Chart.js getElementsAtEvent. Calls with element array and triggering event. |
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying the CoreUI PRO or by becoming a sponsor via Open Collective.
Support this project by becoming a Platinum Sponsor. A large company logo will be added here with a link to your website.
Support this project by becoming a Gold Sponsor. A big company logo will be added here with a link to your website.
Support this project by becoming a Silver Sponsor. A medium company logo will be added here with a link to your website.
Support this project by becoming a Bronze Sponsor. The company avatar will show up here with a link to your OpenCollective Profile.
Thanks to all the backers and sponsors! Support this project by becoming a backer.
Copyright 2025 creativeLabs Ĺukasz Holeczek. Code released under the MIT License. Docs released under Creative Commons.
5.4.13
FAQs
Angular wrapper component for Chart.js
The npm package @coreui/angular-chartjs receives a total of 17,299 weekly downloads. As such, @coreui/angular-chartjs popularity was classified as popular.
We found that @coreui/angular-chartjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NISTâs handling of the National Vulnerability Database.
Research
Security News
Socketâs Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.