{"id":50334514,"url":"https://github.com/komed3/chartjs-plugin-area","last_synced_at":"2026-05-29T12:31:01.082Z","repository":{"id":328379587,"uuid":"1115352920","full_name":"komed3/chartjs-plugin-area","owner":"komed3","description":"Area chart controller for Chart.js with dual-color thresholds and multi-band zones","archived":false,"fork":false,"pushed_at":"2026-05-15T21:31:03.000Z","size":303,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-16T00:10:36.387Z","etag":null,"topics":["area-chart","chartjs","chartjs-plugin"],"latest_commit_sha":null,"homepage":"https://npmjs.com/chartjs-plugin-area","language":"TypeScript","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/komed3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-12T18:17:43.000Z","updated_at":"2026-05-15T21:31:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/komed3/chartjs-plugin-area","commit_stats":null,"previous_names":["komed3/chartjs-plugin-area"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/komed3/chartjs-plugin-area","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komed3%2Fchartjs-plugin-area","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komed3%2Fchartjs-plugin-area/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komed3%2Fchartjs-plugin-area/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komed3%2Fchartjs-plugin-area/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komed3","download_url":"https://codeload.github.com/komed3/chartjs-plugin-area/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komed3%2Fchartjs-plugin-area/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33652977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["area-chart","chartjs","chartjs-plugin"],"created_at":"2026-05-29T12:31:00.786Z","updated_at":"2026-05-29T12:31:01.069Z","avatar_url":"https://github.com/komed3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chart.js Area Controller\n\nArea chart controller for Chart.js supporting dual-color thresholds and multi-band color zones.\n\n## Installation\n\nInstall via npm:\n\n```bash\nnpm install chartjs-plugin-area\n```\n\n**CommonJS (CJS)**\n\n```js\nconst { AreaController } = require( 'chartjs-plugin-area' );\n```\n\n**UMD (Browser)**\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/chart.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/chartjs-plugin-area/dist/index.umd.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\nconst chart = new ChartJS( ctx, {\n  type: 'area',\n  data: {\n    labels: [ 'Jan', 'Feb', 'Mar', ... ],\n    datasets: [ {\n      label: 'Sales',\n      data: [ 10, -5, 20, ... ],\n      // Dataset options below\n    } ]\n  },\n  options: {\n    // Chart options\n  }\n} );\n```\n\n### Dataset Options\n\n- **`color`** `\u003c ChartJS.Color \u003e` – Color for positive values.\n- **`negativeColor`** `\u003c ChartJS.Color \u003e` – Color for negative values.\n- **`threshold`** `\u003c number, default: 0 \u003e` – Threshold value to separate positive and negative colors.\n- **`thresholdColor`** `\u003c ChartJS.Color, optional \u003e` – Color for the threshold line (fades into area colors).\n- **`fillOpacity`** `\u003c number, 0-1, default: 0.6 \u003e` – Opacity for the fill area.\n- **`hoverState`** `\u003c boolean, default: false \u003e` – Enable hover state styling.\n- **`hidePoints`** `\u003c boolean, default: false \u003e` – Hide data points on the chart.\n- **`colorPointsByValue`** `\u003c boolean, default: true \u003e` – Color points based on their values.\n- **`pointOpacity`** `\u003c number, 0-1, default: 1 \u003e` – Opacity for data points.\n- **`colorZones`** `\u003c AreaChartColorZone[] \u003e` – Array of color zones for dynamic coloring.\n\n**Inherited options**\n\n- **`fill`** `\u003c boolean, 'origin', 'start', 'end', default: 'origin' \u003e` – Fill area under the line.\n- **`showLine`** `\u003c boolean, default: true \u003e` – Show the line connecting data points.\n\n**AreaChartColorZone**\n\n- **`from`** `\u003c number \u003e` – Starting value of the zone.\n- **`to`** `\u003c number \u003e` – Ending value of the zone.\n- **`color`** `\u003c ChartJS.Color \u003e` – Color associated with the zone.\n- **`opacity`** `\u003c number, optional, 0-1 \u003e` – Opacity for the zone.\n- **`fadeTo`** `\u003c ChartJS.Color, optional \u003e` – Color to fade to at the end of the zone.\n\n### Examples\n\n**Dual-Color Threshold**\n\n```js\ndatasets: [ {\n  data: [ 10, -5, 20 ],\n  color: '#4ecdc4',\n  negativeColor: '#ff6b6b',\n  threshold: 0\n} ]\n```\n\n**Multi-Band Color Zones**\n\n```js\ndatasets: [ {\n  data: [ 10, 50, 30 ],\n  colorZones: [\n    { from: 0, to: 20, color: '#4ecdc4' },\n    { from: 20, to: 40, color: '#ffdd59' },\n    { from: 40, to: 60, color: '#ff6b6b' }\n  ]\n} ]\n```\n\n## License\n\nSource code is licensed unter the **MIT LICENSE**  \nVisit project at https://github.com/komed3/chartjs-plugin-area  \n**© 2025 Paul Köhler ([komed3](https://github.com/komed3))**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomed3%2Fchartjs-plugin-area","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomed3%2Fchartjs-plugin-area","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomed3%2Fchartjs-plugin-area/lists"}