{"id":20893455,"url":"https://github.com/Lightning-Chart/lcjs-example-0053-dataGaps","last_synced_at":"2025-07-22T03:04:44.536Z","repository":{"id":98723617,"uuid":"454735973","full_name":"Lightning-Chart/lcjs-example-0053-dataGaps","owner":"Lightning-Chart","description":"Example showcasing how data gaps can be handled XY series. Particularly highlights line and area series in a trading use case","archived":false,"fork":false,"pushed_at":"2025-05-06T08:59:44.000Z","size":13701,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T09:50:18.014Z","etag":null,"topics":["data-visualization","demo","example","lightningchart-js","template","trading"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0053-dataGaps.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/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":"2022-02-02T10:48:33.000Z","updated_at":"2025-05-06T08:59:09.000Z","dependencies_parsed_at":"2025-02-05T12:28:30.118Z","dependency_job_id":"ced0b743-25cb-4acb-89a2-176851a418b8","html_url":"https://github.com/Lightning-Chart/lcjs-example-0053-dataGaps","commit_stats":null,"previous_names":["lightning-chart/lcjs-example-0053-datagaps","arction/lcjs-example-0053-datagaps"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Lightning-Chart/lcjs-example-0053-dataGaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0053-dataGaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0053-dataGaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0053-dataGaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0053-dataGaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightning-Chart","download_url":"https://codeload.github.com/Lightning-Chart/lcjs-example-0053-dataGaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0053-dataGaps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266417043,"owners_count":23925300,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["data-visualization","demo","example","lightningchart-js","template","trading"],"created_at":"2024-11-18T10:15:53.398Z","updated_at":"2025-07-22T03:04:44.527Z","avatar_url":"https://github.com/Lightning-Chart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Data Gaps Trading Chart\n\n![JavaScript Data Gaps Trading Chart](dataGaps-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\nNormally, series types such as `LineSeries`, `AreaSeries`, etc. automatically connect data points to highlight the progression of trend values. In some specific use cases, this is not the ideal behavior as data may contain frequent _data gaps_, meaning relatively large time intervals when there are no data samples available.\n\n[//]: # 'IMPORTANT: The assets will not show before README.md is built - relative path is different!'\n\n![](./assets/pic1.png)\n\nIn LightningChart JS, data gaps can be specified by adding an extra data point with value of `NaN` (_Not-A-Number_).\n\n[//]: # 'IMPORTANT: The assets will not show before README.md is built - relative path is different!'\n\n![](./assets/pic2.png)\n\nThe code of this example shows one way of automatically detecting gaps in data sets and adding the `NaN` data points in. By default it looks for 1 hour difference between two data points, but this can be easily modified.\n\n\n## API Links\n\n* [Lightning chart]\n* [Chart XY]\n* [Axis]\n* [Dashboard]\n* [Line series]\n* [Area series]\n* [Axis tick strategies]\n* [Legend box]\n* [Zoom band 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-2022. All rights reserved.\n\n\n[Lightning chart]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/functions/lightningChart-1.html\n[Chart XY]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/ChartXY.html\n[Axis]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/Axis.html\n[Dashboard]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/Dashboard.html\n[Line series]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/LineSeries.html\n[Area series]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/AreaSeriesPositive.html\n[Axis tick strategies]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/variables/AxisTickStrategies.html\n[Legend box]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/Chart.html#addLegendBox\n[Zoom band chart]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/ZoomBandChart.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightning-Chart%2Flcjs-example-0053-dataGaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLightning-Chart%2Flcjs-example-0053-dataGaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightning-Chart%2Flcjs-example-0053-dataGaps/lists"}