{"id":20893456,"url":"https://github.com/arction/lcjs-example-0050-linepalettex","last_synced_at":"2025-03-12T19:14:45.626Z","repository":{"id":98723606,"uuid":"454735971","full_name":"Arction/lcjs-example-0050-linePaletteX","owner":"Arction","description":"Example showcasing Line Series feature for coloring line dynamically based on X coordinates","archived":false,"fork":false,"pushed_at":"2025-02-05T11:36:21.000Z","size":11825,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T12:31:32.759Z","etag":null,"topics":["charts","demo","ecg","lightningchart-js","template"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0050-linePaletteX.html","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/Arction.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":"2022-02-02T10:48:33.000Z","updated_at":"2025-02-05T11:35:21.000Z","dependencies_parsed_at":"2025-02-05T12:28:25.242Z","dependency_job_id":"ccb68763-0a56-4d1d-a032-7d98d625587d","html_url":"https://github.com/Arction/lcjs-example-0050-linePaletteX","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0050-linePaletteX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0050-linePaletteX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0050-linePaletteX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0050-linePaletteX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arction","download_url":"https://codeload.github.com/Arction/lcjs-example-0050-linePaletteX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243277498,"owners_count":20265352,"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":["charts","demo","ecg","lightningchart-js","template"],"created_at":"2024-11-18T10:15:55.345Z","updated_at":"2025-03-12T19:14:45.620Z","avatar_url":"https://github.com/Arction.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript ECG Chart with Highlighted Beats\n\n![JavaScript ECG Chart with Highlighted Beats](linePaletteX-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\nExample that showcases `LineSeries` feature for coloring line dynamically based on X coordinates.\n\nIn this example, there is a ECG data set (voltage measurements from a heart over short period of time).\nThis data is visualized as a _Line Chart_ where X dimension represents _time_ and Y dimension measured _voltage_.\n\nThis is a very traditional and well known setting, but this example adds a little twist to it in order to showcase the dynamic X coloring feature.\n\nThe example code automatically detects heart beats from the data set and tracks the X coordinate intervals that contain active heart beats.\n\n[//]: # 'IMPORTANT: The assets will not show before README.md is built - relative path is different!'\n\n![](./assets/picture1.jpg)\n\nThis heart beat information is then used to prepare a _Value - Color lookup table_, a conceptually simple object that can be widely used with many different LightningChart JS components.\n\nThe lookup table associates a range of _Values_ with corresponding _Colors_. In this example, this means defining the X value ranges which should be colored \"normally\" and ranges which should be colored in \"highlighted\" manner.\n\n[//]: # 'IMPORTANT: The assets will not show before README.md is built - relative path is different!'\n\n![](./assets/picture2.jpg)\n\nDynamic line coloring is a powerful feature which can serve many different needs. The best thing about it is that it doesn't compromise performance, meaning that you can use it just as well with 100 data points or 100 million data points.\n\nIn addition to dynamic coloring by X coordinate there are also more dynamic coloring modes available:\n\n-   [Line dynamic coloring by Y coordinates](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-0051-linePaletteY.html)\n-   [Line dynamic coloring by separate Value data set](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-0052-linePaletteValue.html)\n\n\n## API Links\n\n* [Chart XY]\n* [Axis]\n* [Line series]\n* [Axis tick strategies]\n* [Paletted fill]\n* [Color lookup table]\n* [Color RGBA]\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-2022. All rights reserved.\n\n\n[Chart XY]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/ChartXY.html\n[Axis]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/Axis.html\n[Line series]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/LineSeries.html\n[Axis tick strategies]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/AxisTickStrategies.html\n[Paletted fill]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/PalettedFill.html\n[Color lookup table]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/LUT.html\n[Color RGBA]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/functions/ColorRGBA.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-0050-linepalettex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farction%2Flcjs-example-0050-linepalettex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-0050-linepalettex/lists"}