{"id":20893446,"url":"https://github.com/Lightning-Chart/lcjs-example-0202-ohlcPlotAutomaticPacking","last_synced_at":"2025-05-12T22:33:06.334Z","repository":{"id":98723653,"uuid":"200631279","full_name":"Arction/lcjs-example-0202-ohlcPlotAutomaticPacking","owner":"Arction","description":"A demo application showcasing LightningChart JS OHLC series with Automatic packing.","archived":false,"fork":false,"pushed_at":"2024-08-05T07:12:40.000Z","size":11165,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-06T08:09:25.320Z","etag":null,"topics":["demo","example","javascript","lcjs","lightningchart-js","ohlc-chart","ohlc-packing","ohlc-plot","ohlc-series","perfromance","visualization","webgl"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0202-ohlcPlotAutomaticPacking.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":"2019-08-05T10:08:55.000Z","updated_at":"2024-08-05T07:12:43.000Z","dependencies_parsed_at":"2024-08-05T08:05:41.892Z","dependency_job_id":null,"html_url":"https://github.com/Arction/lcjs-example-0202-ohlcPlotAutomaticPacking","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0202-ohlcPlotAutomaticPacking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0202-ohlcPlotAutomaticPacking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0202-ohlcPlotAutomaticPacking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0202-ohlcPlotAutomaticPacking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arction","download_url":"https://codeload.github.com/Arction/lcjs-example-0202-ohlcPlotAutomaticPacking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225156947,"owners_count":17429701,"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":["demo","example","javascript","lcjs","lightningchart-js","ohlc-chart","ohlc-packing","ohlc-plot","ohlc-series","perfromance","visualization","webgl"],"created_at":"2024-11-18T10:15:50.870Z","updated_at":"2025-05-12T22:33:06.321Z","avatar_url":"https://github.com/Arction.png","language":"JavaScript","readme":"# JavaScript OHLC Series with Automatic Packing\n\n![JavaScript OHLC Series with Automatic Packing](ohlcAutomaticPacking-darkGold.png)\n\nThis demo application belongs to the set of examples for LightningChart JS, data visualization library for JavaScript.\r\n\r\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.\r\n\r\nThe demo can be used as an example or a seed project. Local execution requires the following steps:\r\n\r\n-   Make sure that relevant version of [Node.js](https://nodejs.org/en/download/) is installed\r\n-   Open the project folder in a terminal:\r\n\r\n          npm install              # fetches dependencies\r\n          npm start                # builds an application and starts the development server\r\n\r\n-   The application is available at _http://localhost:8080_ in your browser, webpack-dev-server provides hot reload functionality.\r\n\n\n## Description\n\nThis example shows real-time OHLC-packing using a variant of OHLC-series.\r\n\r\n**Please note that using LightningChart JS for Trading use cases requires a special license agreement.**\r\nFor more information, please [contact us](https://lightningchart.com/contact/).\r\n\r\n## LightningChart JS OHLC Series with Automatic Packing\r\n\r\nLightningChart JS includes a variant of the OHLC series which allows inputting close prices only which results in the corresponding OHLC data being automatically calculated.\r\n\r\n```javascript\r\nconst chart = lightningChart().ChartXY()\r\nconst series = chart.addOHLCSeries(\r\n    // Specify the type of OHLC-series for adding points\r\n    { seriesConstructor: OHLCSeriesTypes.AutomaticPacking },\r\n)\r\n```\r\n\r\nOHLC-series that were created with type 'AutomaticPacking' accept data the same way as any other horizontally progressive XY-series:\r\n\r\n```javascript\r\n// Single point.\r\nseries.add({ x: 50, y: 60 })\r\n\r\n// Multiple points at once.\r\nseries.add([\r\n    { x: 55, y: 60 },\r\n    { x: 60, y: 62 },\r\n    { x: 65, y: 65 },\r\n])\r\n```\r\n\r\n## Packing logic\r\n\r\nSupplied points are packed by columns, within which the Y-values are mapped to open, high, low and close -values, which are used to draw _OHLCFigures_.\r\n\r\n[//]: # 'IMPORTANT: The assets will not show before README.md is built - relative path is different!'\r\n\r\n![](./assets/ohlcPacking.png)\r\n\n\n## API Links\n\n* [XY cartesian chart]\n* [Axis tick strategies]\n* [Freeform line series]\n* [OHLC series]\n* [OHLC series types]\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.\r\n\r\nOfficial [API documentation][1] can be found on [LightningChart][2] website.\r\n\r\nIf the docs and other materials do not solve your problem as well as implementation help is needed, ask on [StackOverflow][3] (tagged lightningchart).\r\n\r\nIf you think you found a bug in the LightningChart JavaScript library, please contact sales@lightningchart.com.\r\n\r\nDirect developer email support can be purchased through a [Support Plan][4] or by contacting sales@lightningchart.com.\r\n\r\n[0]: https://github.com/Arction/\r\n[1]: https://lightningchart.com/lightningchart-js-api-documentation/\r\n[2]: https://lightningchart.com\r\n[3]: https://stackoverflow.com/questions/tagged/lightningchart\r\n[4]: https://lightningchart.com/support-services/\r\n\n© LightningChart Ltd 2009-2022. All rights reserved.\r\n\n\n[XY cartesian chart]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/ChartXY.html\n[Axis tick strategies]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/variables/AxisTickStrategies.html\n[Freeform line series]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/LineSeries.html\n[OHLC series]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/ChartXY.html#addOHLCSeries\n[OHLC series types]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/variables/OHLCSeriesTypes.html\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightning-Chart%2Flcjs-example-0202-ohlcPlotAutomaticPacking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLightning-Chart%2Flcjs-example-0202-ohlcPlotAutomaticPacking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightning-Chart%2Flcjs-example-0202-ohlcPlotAutomaticPacking/lists"}