{"id":27126956,"url":"https://github.com/lightning-chart/lcjs-example-1601-valueindicatorgauge","last_synced_at":"2025-10-15T20:21:01.707Z","repository":{"id":263582288,"uuid":"838208160","full_name":"Lightning-Chart/lcjs-example-1601-valueIndicatorGauge","owner":"Lightning-Chart","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-05T11:40:56.000Z","size":10121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T13:11:34.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Lightning-Chart.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}},"created_at":"2024-08-05T07:06:37.000Z","updated_at":"2025-02-05T11:37:16.000Z","dependencies_parsed_at":"2025-02-13T18:48:36.845Z","dependency_job_id":null,"html_url":"https://github.com/Lightning-Chart/lcjs-example-1601-valueIndicatorGauge","commit_stats":null,"previous_names":["arction/lcjs-example-1601-valueindicatorgauge","lightning-chart/lcjs-example-1601-valueindicatorgauge"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-1601-valueIndicatorGauge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-1601-valueIndicatorGauge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-1601-valueIndicatorGauge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-1601-valueIndicatorGauge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightning-Chart","download_url":"https://codeload.github.com/Lightning-Chart/lcjs-example-1601-valueIndicatorGauge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685633,"owners_count":20979085,"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":[],"created_at":"2025-04-07T16:21:49.242Z","updated_at":"2025-10-15T20:21:01.695Z","avatar_url":"https://github.com/Lightning-Chart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gauge chart with value indicators\n\n![Gauge chart with value indicators](valueIndicatorGauge-darkGold.png)\n\nThis demo application belongs to the set of examples for LightningChart JS, data visualization library for JavaScript.\n\nLightningChart JS is entirely GPU accelerated and performance optimized charting library for presenting massive amounts of data. It offers an easy way of creating sophisticated and interactive charts and adding them to your website or web application.\n\nThe demo can be used as an example or a seed project. Local execution requires the following steps:\n\n-   Make sure that relevant version of [Node.js](https://nodejs.org/en/download/) is installed\n-   Open the project folder in a terminal:\n\n          npm install              # fetches dependencies\n          npm start                # builds an application and starts the development server\n\n-   The application is available at _http://localhost:8080_ in your browser, webpack-dev-server provides hot reload functionality.\n\n\n## Description\n\nThis example shows the use of value indicators in a gauge chart.\n\nValue indicators are elements to highlight additional value ranges in addition to the main gauge value interval.\nEach value indicator must have a start value, an end value, and a color.\n\n```javascript\ngauge.setValueIndicators([\n    { start: 0, end: 25, color: ColorCSS('red') },\n    { start: 25, end: 50, color: ColorCSS('orange') },\n    { start: 50, end: 75, color: ColorCSS('yellow') },\n    { start: 75, end: 100, color: ColorCSS('green') },\n])\n```\n\n![value indicators](./assets/valueIndicators1.png)\n\nValue indicator labels can be also overridden:\n\n```javascript\ngauge.setValueIndicators([\n    { start: 0, end: 50, color: ColorCSS('red'), startLabel: 'Start', endLabel: '' },\n    { start: 50, end: 100, color: ColorCSS('green'), startLabel: 'Middle', endLabel: 'End' },\n])\n```\n\nTo hide the default gauge labels:\n\n```javascript\ngauge.setTickFormatter((value) =\u003e {\n    if (value === gauge.getInterval().start || value === gauge.getInterval().end) {\n        return ''\n    }\n    return `${value}`\n})\n```\n\n![value indicators with custom labels](./assets/valueIndicators2.png)\n\n\n## API Links\n\n* [Gauge Chart]\n\n\n## Support\n\nIf you notice an error in the example code, please open an issue on [GitHub][0] repository of the entire example.\n\nOfficial [API documentation][1] can be found on [LightningChart][2] website.\n\nIf the docs and other materials do not solve your problem as well as implementation help is needed, ask on [StackOverflow][3] (tagged lightningchart).\n\nIf you think you found a bug in the LightningChart JavaScript library, please contact sales@lightningchart.com.\n\nDirect developer email support can be purchased through a [Support Plan][4] or by contacting sales@lightningchart.com.\n\n[0]: https://github.com/Arction/\n[1]: https://lightningchart.com/lightningchart-js-api-documentation/\n[2]: https://lightningchart.com\n[3]: https://stackoverflow.com/questions/tagged/lightningchart\n[4]: https://lightningchart.com/support-services/\n\n© LightningChart Ltd 2009-2025. All rights reserved.\n\n\n[Gauge Chart]: https://lightningchart.com/js-charts/api-documentation/v8.0.1/classes/GaugeChart.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-chart%2Flcjs-example-1601-valueindicatorgauge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightning-chart%2Flcjs-example-1601-valueindicatorgauge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-chart%2Flcjs-example-1601-valueindicatorgauge/lists"}