
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@og_soft/charts
Advanced tools
Chart components are based on Charts.js and PrimeNG.
[TOC]
yarn add @og_soft/charts
The library is dependent on Charts.js (^3.6.0) and PrimeNG (^12.2.2), so please make sure, you have them installed.
yarn add chart.js@^3.6.0
yarn add primeng@^12.2.2
And include the necessary PrimeNG styles into your project configuration (project.json or angular.json) or your stylesheet (see docs for more information):
{
"styles": [
// ...
"node_modules/primeng/resources/themes/saga-blue/theme.css",
"node_modules/primeng/resources/primeng.min.css"
]
}
And also include Chart.js in your project configuration (project.json or angular.json):
{
"scripts": [
// ...
"node_modules/chart.js/dist/Chart.js"
]
}
import { ChartModule } from '@og_soft/charts';
@NgModule({
imports: [
// ...
ChartModule,
],
})
export class YourModule {}
Create data:
const data: ChartData = {
labels: ['1.11.', '2.11.', '3.11.', '4.11.', '5.11.', '6.11.', '7.11.'],
datasets: [
{
label: 'My Dataset',
backgroundColor: '#689F38',
data: [4000, 2300, 3100, 1700, 1800, 2400, 3200],
},
],
};
And use in template:
<og-chart type="bar" [data]="data"></og-chart>
Create data:
const data: ChartData = {
labels: ['1.11.', '2.11.', '3.11.', '4.11.', '5.11.', '6.11.', '7.11.'],
datasets: [
{
label: 'My Dataset',
borderColor: '#689F38',
data: [4000, 2300, 3100, 1700, 1800, 2400, 3200],
},
],
};
And use in template:
<og-chart type="line" [data]="data"></og-chart>
See the CHANGELOG file.
FAQs
Chart components are based on Charts.js and PrimeNG.
We found that @og_soft/charts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.