{"id":28953767,"url":"https://github.com/lightning-chart/lcjs-example-0200-candlesticks","last_synced_at":"2025-06-23T18:39:11.058Z","repository":{"id":98723607,"uuid":"200631216","full_name":"Lightning-Chart/lcjs-example-0200-candlesticks","owner":"Lightning-Chart","description":"A demo application showcasing LightningChart JS Candlestick chart.","archived":false,"fork":false,"pushed_at":"2025-05-06T09:00:02.000Z","size":10726,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-06T10:21:31.935Z","etag":null,"topics":["candlestick-chart","charting-library","demo","example","javascript","lcjs","lightningchart-js","perfromance","visualization","webgl","xy-chart"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0200-candlesticks.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":"2019-08-05T10:08:30.000Z","updated_at":"2025-05-06T08:59:23.000Z","dependencies_parsed_at":"2024-04-05T13:30:16.048Z","dependency_job_id":"c3ce2794-f2de-4e81-84c3-074c3349725c","html_url":"https://github.com/Lightning-Chart/lcjs-example-0200-candlesticks","commit_stats":null,"previous_names":["lightning-chart/lcjs-example-0200-candlesticks","arction/lcjs-example-0200-candlesticks"],"tags_count":3,"template":true,"template_full_name":null,"purl":"pkg:github/Lightning-Chart/lcjs-example-0200-candlesticks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0200-candlesticks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0200-candlesticks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0200-candlesticks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0200-candlesticks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightning-Chart","download_url":"https://codeload.github.com/Lightning-Chart/lcjs-example-0200-candlesticks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightning-Chart%2Flcjs-example-0200-candlesticks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261535056,"owners_count":23173517,"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":["candlestick-chart","charting-library","demo","example","javascript","lcjs","lightningchart-js","perfromance","visualization","webgl","xy-chart"],"created_at":"2025-06-23T18:39:09.514Z","updated_at":"2025-06-23T18:39:11.043Z","avatar_url":"https://github.com/Lightning-Chart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Candlestick Chart\n\n![JavaScript Candlestick Chart](candleSticks-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\n_Also known as Japanese Candlestick Chart_\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\nThis example shows basic implementation of candlestick chart using OHLCSeries. This type of chart is used as a trading tool to visualize price movements. A candlestick figure can represent multiple recorded values, which are packed into 4 values (open, high, low and close). This makes it useful for dynamically displaying data from longer intervals as well as shorter.\r\n\r\nOHLCSeries are created using ChartXY method.\r\n\r\n```javascript\r\nconst chart = lightningChart().ChartXY()\r\n// Method for adding OHLCSeries takes one argument: seriesConstructor.\r\nconst ohlcSeries = chart.addOHLCSeries(\r\n    // Specify type of figure used\r\n    { seriesConstructor: OHLCFigures.Candlestick },\r\n)\r\n```\r\n\r\nOHLCSeries accept data in the form of interface 'XOHLC':\r\n\r\n```javascript\r\nconst xohlc = [\r\n    // X-position\r\n    0,\r\n    // Opening Y-value\r\n    100,\r\n    // Highest Y-value\r\n    200,\r\n    // Lowest Y-value\r\n    50,\r\n    // Closing Y-value\r\n    75,\r\n]\r\n// Add new segment to series.\r\nohlcSeries.add(xohlc)\r\n```\r\n\r\nadd() can be called with a single XOHLC-object or with an array of them.\r\n\r\n## Anatomy of a candlestick figure\r\n\r\nCandlesticks are formed from two parts: _Body_ and *Line*s. Both of these can be individually styled.\r\n\r\n[//]: # 'IMPORTANT: The assets will not show before README.md is built - relative path is different!'\r\n\r\n![](./assets/candlestick.png)\r\n\n\n## API Links\n\n* [XY cartesian chart]\n* [Axis tick strategies]\n* [Figure types]\n* [OHLC series]\n* [XOHLC datastructure]\n* [OHLC generator]\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[Figure types]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/variables/OHLCFigures.html\n[OHLC series]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/classes/ChartXY.html#addOHLCSeries\n[XOHLC datastructure]: https://lightningchart.com/js-charts/api-documentation/v7.1.0/types/XOHLC.html\n[OHLC generator]: https://lightning-chart.github.io/xydata/classes/ohlcgenerator.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-chart%2Flcjs-example-0200-candlesticks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightning-chart%2Flcjs-example-0200-candlesticks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning-chart%2Flcjs-example-0200-candlesticks/lists"}