{"id":15184836,"url":"https://github.com/greetclock/angular-gauge-chart","last_synced_at":"2025-10-27T01:30:45.256Z","repository":{"id":39577425,"uuid":"123162449","full_name":"greetclock/angular-gauge-chart","owner":"greetclock","description":"Angular Gauge Chart","archived":false,"fork":false,"pushed_at":"2023-01-07T02:19:29.000Z","size":5955,"stargazers_count":61,"open_issues_count":57,"forks_count":40,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-29T10:17:01.320Z","etag":null,"topics":["angular","gauge-chart"],"latest_commit_sha":null,"homepage":"https://recogizer.github.io/gauge-chart/examples/samples/","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/greetclock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-02-27T17:15:09.000Z","updated_at":"2024-09-10T12:12:49.000Z","dependencies_parsed_at":"2023-02-06T10:31:49.468Z","dependency_job_id":null,"html_url":"https://github.com/greetclock/angular-gauge-chart","commit_stats":null,"previous_names":["recogizer/angular-gauge-chart"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greetclock%2Fangular-gauge-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greetclock%2Fangular-gauge-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greetclock%2Fangular-gauge-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greetclock%2Fangular-gauge-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greetclock","download_url":"https://codeload.github.com/greetclock/angular-gauge-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238418232,"owners_count":19468869,"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":["angular","gauge-chart"],"created_at":"2024-09-27T17:40:52.651Z","updated_at":"2025-10-27T01:30:39.858Z","avatar_url":"https://github.com/greetclock.png","language":"TypeScript","readme":"# Angular Gauge Chart\n\nThis is an angular wrap-over for the library [gauge-chart](https://github.com/recogizer/gauge-chart)\n\n**A library for creating nice and flexible gauge charts with Angular.**\n\nYou can [catch us on twitter](https://twitter.com/recogizer): [@recogizer](https://twitter.com/recogizer) or head over to [our company's website](http://www.recogizer.com/).\n\n## [Demo](https://recogizer.github.io/gauge-chart/examples/samples/) | [Docs](https://recogizer.github.io/angular-gauge-chart/docs)\n\n## Installation\n\n```\n  npm install angular-gauge-chart\n```\n\n## Usage\n\nImport `angular-gauge-chart` into your module and add as a declaration.\n\n```typescript\nimport { GaugeChartModule } from 'angular-gauge-chart'\n\nimports: [\n    GaugeChartModule,\n]\n```\n\nCreate an element for positioning gauge in your html file:\n\n```html\n\u003crg-gauge-chart\n    [canvasWidth]=\"canvasWidth\"\n    [needleValue]=\"needleValue\"\n    [centralLabel]=\"centralLabel\"\n    [options]=\"options\"\n    [name]=\"name\"\n    [bottomLabel]=\"bottomLabel\"\u003e\u003c/rg-gauge-chart\u003e\n```\n\nNow you're ready to draw your own gauge.\n\nJust copy to your ts file the following code:\n\n```typescript\npublic canvasWidth = 300\npublic needleValue = 65\npublic centralLabel = ''\npublic name = 'Gauge chart'\npublic bottomLabel = '65'\npublic options = {\n    hasNeedle: true,\n    needleColor: 'gray',\n    needleUpdateSpeed: 1000,\n    arcColors: ['rgb(44, 151, 222)', 'lightgray'],\n    arcDelimiters: [30],\n    rangeLabel: ['0', '100'],\n    needleStartValue: 50,\n}\n```\n\n#### Result:\n\n![Gauge Example](/img/gauge.png \"Gauge Example\")\n\nFeel free to change or delete any of the gaugeOptions properties as long as their values are in permitted ranges.\n\n## Options\n\ncanvasWidth: number\n\nneedleValue: number\n\ncentralLabel: string\n\noptions = { ... } :\n\n| Name | Values Ranges | Description |\n| ---- | ------------- | ----------- |\n| hasNeedle | true / false | determines whether to show the needle or not |\n| needleColor | [value supported by CSS](https://www.w3schools.com/colors/default.asp) | colorizes needle with specified colors |\n| needleUpdateSpeed | number larger than 0 | determines the speed of needle update animation |\n| arcColors | [array of values supported by CSS](https://www.w3schools.com/colors/default.asp) | colorizes gauge with specified color |\n| arcDelimiters | array of numbers from 0 to 100 | specifies delimiters of the gauge in ascending order |\n| rangeLabel | array of two strings | depicts gauge ranges on both sides of the chart |\n| centralLabel | string | depicts gauge inner label |\n\nname?: string (will be shown above the gauge)\n\nnameFont?: number (font size of the name)\n\nbottomLabel?: string (will be shown bellow the gauge)\n\nbottomLabelFont?: number (font size of the bottom label)\n\n## Examples\n\nSome examples of what you can get out of the library using different properties:\n\n![Gauge Examples](/img/gauges.png \"Gauge Examples\")\n\n## Contributing\nBuild the library with `npm run build`. This will fetch all dependencies and then compile the `dist` files. To see the examples locally you can start a web server with `npm start` and go to `localhost:4200`.\n\n## License\nMIT License. Copyright (c) 2017 RECOGIZER GROUP GmbH.\n\n[Angular Starter](https://github.com/gdi2290/angular-starter) was used.\n\nThe project was generated with [Angular CLI](https://github.com/angular/angular-cli).\n\n## Authors\n[Alexey Karpov](https://github.com/cherurg), [Maxim Maltsev](https://github.com/mmaltsev).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreetclock%2Fangular-gauge-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreetclock%2Fangular-gauge-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreetclock%2Fangular-gauge-chart/lists"}