{"id":19684720,"url":"https://github.com/rashidmakki/process-control-charts","last_synced_at":"2025-07-20T04:33:49.096Z","repository":{"id":65475680,"uuid":"363382371","full_name":"rashidmakki/process-control-charts","owner":"rashidmakki","description":"methods to solve p-chart, np-chart, c-chart, u-chart","archived":false,"fork":false,"pushed_at":"2023-10-13T18:40:32.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T17:08:49.445Z","etag":null,"topics":["c-chart","np-chart","p-chart","process-control-charts","statistical-quality-control","u-chart"],"latest_commit_sha":null,"homepage":"https://rashidmakki.github.io/process-control-charts-example/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rashidmakki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-01T10:28:29.000Z","updated_at":"2025-01-09T19:35:37.000Z","dependencies_parsed_at":"2023-01-25T06:05:12.581Z","dependency_job_id":null,"html_url":"https://github.com/rashidmakki/process-control-charts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rashidmakki/process-control-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashidmakki%2Fprocess-control-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashidmakki%2Fprocess-control-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashidmakki%2Fprocess-control-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashidmakki%2Fprocess-control-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rashidmakki","download_url":"https://codeload.github.com/rashidmakki/process-control-charts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rashidmakki%2Fprocess-control-charts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067301,"owners_count":23871328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-chart","np-chart","p-chart","process-control-charts","statistical-quality-control","u-chart"],"created_at":"2024-11-11T18:18:48.364Z","updated_at":"2025-07-20T04:33:49.067Z","avatar_url":"https://github.com/rashidmakki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Process Control Charts\nprocess-control-chart is npm package which provides statistical methods to solve p-chart, np-chart, c-chart, u-chart in order to study how the process changes over time.\n\n## Getting Started\n* [Live Demo](https://rashidmakki.github.io/process-control-charts-example/)\n* [Example](https://github.com/rashidmakki/process-control-charts-example/)\n\n### Install process-control-charts package\n\n```\nnpm install process-control-charts\n```\nor\n\n```\nyarn add process-control-charts\n```\n## Example\n\n```js\n// index.js\nlet { pChart } = require('process-control-charts');\n\nlet data = [12,15,8, 10, 4, 7, 16, 9, 14, 10, 5, 6, 17, 12, 22 ,8,10, 5 , 13, 11, 20, 18, 24, 15, 9, 12, 7, 13, 9, 6];\nlet details = pChart(data, 50);\nconsole.log(details);\n\n/* \nx --\u003e Sample number\ny --\u003e Sample fraction nonconforming\n*/\n\n```\n\n### Run\n```\nnpm start\n```\n\n### Output\n```\n\n{\n  lcl: 0,\n  cl: 0.074,\n  ucl: 0.1850599837925434,\n  samplesOutOfControl: 0,\n  sampleData: [\n    { x: 1, y: 0.04 },  { x: 2, y: 0.06 },\n    { x: 3, y: 0.16 },  { x: 4, y: 0.02 },\n    { x: 5, y: 0.02 },  { x: 6, y: 0.08 },\n    { x: 7, y: 0.02 },  { x: 8, y: 0.08 },\n    { x: 9, y: 0.1 },   { x: 10, y: 0.02 },\n    { x: 11, y: 0.16 }, { x: 12, y: 0.04 },\n    { x: 13, y: 0.08 }, { x: 14, y: 0.06 },\n    { x: 15, y: 0.08 }, { x: 16, y: 0.02 },\n    { x: 17, y: 0.16 }, { x: 18, y: 0.06 },\n    { x: 19, y: 0.14 }, { x: 20, y: 0.08 }\n  ],\n  lclPlot: [\n    { x: 1, y: 0 },  { x: 2, y: 0 },\n    { x: 3, y: 0 },  { x: 4, y: 0 },\n    { x: 5, y: 0 },  { x: 6, y: 0 },\n    { x: 7, y: 0 },  { x: 8, y: 0 },\n    { x: 9, y: 0 },  { x: 10, y: 0 },\n    { x: 11, y: 0 }, { x: 12, y: 0 },\n    { x: 13, y: 0 }, { x: 14, y: 0 },\n    { x: 15, y: 0 }, { x: 16, y: 0 },\n    { x: 17, y: 0 }, { x: 18, y: 0 },\n    { x: 19, y: 0 }, { x: 20, y: 0 }\n  ],\n  clPlot: [\n    { x: 1, y: 0.074 },  { x: 2, y: 0.074 },\n    { x: 3, y: 0.074 },  { x: 4, y: 0.074 },\n    { x: 5, y: 0.074 },  { x: 6, y: 0.074 },\n    { x: 7, y: 0.074 },  { x: 8, y: 0.074 },\n    { x: 9, y: 0.074 },  { x: 10, y: 0.074 },\n    { x: 11, y: 0.074 }, { x: 12, y: 0.074 },\n    { x: 13, y: 0.074 }, { x: 14, y: 0.074 },\n    { x: 15, y: 0.074 }, { x: 16, y: 0.074 },\n    { x: 17, y: 0.074 }, { x: 18, y: 0.074 },\n    { x: 19, y: 0.074 }, { x: 20, y: 0.074 }\n  ],\n  uclPlot: [\n    { x: 1, y: 0.1850599837925434 },\n    { x: 2, y: 0.1850599837925434 },\n    { x: 3, y: 0.1850599837925434 },\n    { x: 4, y: 0.1850599837925434 },\n    { x: 5, y: 0.1850599837925434 },\n    { x: 6, y: 0.1850599837925434 },\n    { x: 7, y: 0.1850599837925434 },\n    { x: 8, y: 0.1850599837925434 },\n    { x: 9, y: 0.1850599837925434 },\n    { x: 10, y: 0.1850599837925434 },\n    { x: 11, y: 0.1850599837925434 },\n    { x: 12, y: 0.1850599837925434 },\n    { x: 13, y: 0.1850599837925434 },\n    { x: 14, y: 0.1850599837925434 },\n    { x: 15, y: 0.1850599837925434 },\n    { x: 16, y: 0.1850599837925434 },\n    { x: 17, y: 0.1850599837925434 },\n    { x: 18, y: 0.1850599837925434 },\n    { x: 19, y: 0.1850599837925434 },\n    { x: 20, y: 0.1850599837925434 }\n  ]\n}\n\n```\n\n## Methods Available\n| Method Name   | Parameter              | Output Type   |\n| ------------- | ---------------------  | ------------- |\n| pChart        | ( [data], SampleSize ) | { Object }    |\n| npChart       | ( [data], SampleSize ) | { Object }    |\n| cChart        | ( [data])              | { Object }    |\n| uChart        | ( [data], SampleSize ) | { Object }    |\n\n## Help\nRaise the issue or problem on this repository.\n\n## Authors\n* [Saurabh Tiwari](https://github.com/saurabhtiwarii/)\n* [Rashid Makki](https://github.com/rashidmakki/)\n\n## Example \n* [Process Control Charts Example](https://github.com/rashidmakki/process-control-charts-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frashidmakki%2Fprocess-control-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frashidmakki%2Fprocess-control-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frashidmakki%2Fprocess-control-charts/lists"}