{"id":27256875,"url":"https://github.com/lightning-chart/lcjs-example-0033-sweepinglinedashboard","last_synced_at":"2025-04-11T03:06:49.059Z","repository":{"id":98723630,"uuid":"601115773","full_name":"Lightning-Chart/lcjs-example-0033-sweepingLineDashboard","owner":"Lightning-Chart","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-05T11:45:00.000Z","size":11873,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T13:11:31.601Z","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":"2023-02-13T12:01:23.000Z","updated_at":"2025-02-05T11:35:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb93bcc3-aa88-4519-891e-9d270fbd776f","html_url":"https://github.com/Lightning-Chart/lcjs-example-0033-sweepingLineDashboard","commit_stats":null,"previous_names":["lightning-chart/lcjs-example-0033-sweepinglinedashboard"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0033-sweepingLineDashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0033-sweepingLineDashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0033-sweepingLineDashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0033-sweepingLineDashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightning-Chart","download_url":"https://codeload.github.com/Lightning-Chart/lcjs-example-0033-sweepingLineDashboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333601,"owners_count":21086200,"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-11T03:06:48.285Z","updated_at":"2025-04-11T03:06:49.053Z","avatar_url":"https://github.com/Lightning-Chart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Sweeping Line Chart Dashboard\n\n![JavaScript Sweeping Line Chart Dashboard](sweepingLineDashboard-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 interactive example with the code editor shows a sweeping ECG line chart created with LightningChart JS library. You can experiment with the variables and parameters to see how the library performs using our online code editor.\n\nSweeping line chart functionality is not built-in in the library. However, it is entirely possible to create performant and visually appealing sweeping line applications with LightningChart JS. Performance is unaffected, but the application code is slightly more complex than the scrolling axis. Some built-in features are also inapplicable, such as real-time axis ticks and glow effects.\n\nThis example displays 6 ECG channels, each with a 1000 Hz frequency.\n\nStress testing has concluded that even 100s of such high-frequency channels can be displayed at the same time. To squeeze more GPU performance out, you can try setting line series thickness to -1 for the best performance.\n\n---\n\nA simplified version of sweeping charts can be found in [this example](https://lightningchart.com/js-charts/interactive-examples/examples/lcjs-example-0041-sweepingLineChartNew.html).\n\nThese two examples have slightly different approaches to realizing the sweeping display, each having their own advantages and disadvantages:\n\nA) **This example, \"sweeping line dashboard\"**\n\n-   Extremely performant, recommended for extremely performance demanding applications with 100+ channels and 10+ kHz stream rates.\n\n*   Relatively complicated application code, having to manage multiple series instances per trend and rectangle overlays to hide old data.\n*   Some chart features are not supported, such as: axis ticks, series glow/drop shadow effects, gradient backgrounds.\n\nB) **\"sweeping line chart\" example**\n\nFound [here](https://lightningchart.com/js-charts/interactive-examples/examples/lcjs-example-0041-sweepingLineChartNew.html)\n\n-   Less performant, works up to 100 channels and 1 kHz stream rate. If less channels can work with higher stream rates too. Just more CPU intensive than the other approach.\n\n*   Very simple to implement and maintain.\n*   No limitations to chart features - axis ticks, cursors, effects, backgrounds all work as normally.\n\n\n## API Links\n\n* [XY cartesian chart]\n* [Line series]\n* [Axis]\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[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/ChartXY.html\n[Line series]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/LineSeries.html\n[Axis]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/Axis.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-chart%2Flcjs-example-0033-sweepinglinedashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightning-chart%2Flcjs-example-0033-sweepinglinedashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-chart%2Flcjs-example-0033-sweepinglinedashboard/lists"}