{"id":20893402,"url":"https://github.com/arction/lcjs-example-0907-3dboxrounded","last_synced_at":"2026-06-03T19:31:43.204Z","repository":{"id":98723699,"uuid":"317540833","full_name":"Arction/lcjs-example-0907-3dBoxRounded","owner":"Arction","description":"A demo application showcasing using LightningChart JS to display 3D box series.","archived":false,"fork":false,"pushed_at":"2025-02-05T11:39:15.000Z","size":11057,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T12:32:13.455Z","etag":null,"topics":["3d","box-series","charts","demo","lcjs","lightningchart-js","template"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-0907-3dBoxRounded.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":"2020-12-01T12:54:42.000Z","updated_at":"2025-02-05T11:36:40.000Z","dependencies_parsed_at":"2025-02-05T12:28:58.900Z","dependency_job_id":"8b8551f0-1847-4e45-b4c7-98a928583694","html_url":"https://github.com/Arction/lcjs-example-0907-3dBoxRounded","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-0907-3dBoxRounded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0907-3dBoxRounded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0907-3dBoxRounded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-0907-3dBoxRounded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arction","download_url":"https://codeload.github.com/Arction/lcjs-example-0907-3dBoxRounded/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":["3d","box-series","charts","demo","lcjs","lightningchart-js","template"],"created_at":"2024-11-18T10:15:42.962Z","updated_at":"2026-06-03T19:31:43.198Z","avatar_url":"https://github.com/Arction.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript 3D Box Series rounded edges\n\n![JavaScript 3D Box Series rounded edges](3dBoxRounded-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 an animated 3D Bar Chart with bars coloured dynamically based on their height.\r\n\r\nThe Chart is rendered using `BoxSeries3D`, a series type capable of rendering any number of Boxes as well as allowing individual full level modification (location, size, color) at any point during runtime.\r\n\r\nThe example also showcases the rounded edges feature. While enabled by default, it can be adjusted and disabled at any time with `BoxSeries3D.setRoundedEdges`\r\n\r\n## BoxSeries3D data format\r\n\r\n`BoxSeries3D` supports input data in two different formats, namely:\r\n\r\n-   `BoxDataCentered` (specify Box center coordinate and size)\r\n-   `BoxDataBounds` (specify Box start and end coordinates)\r\n\r\nOn top of this _geometry_ information, one can also supply the following optional properties:\r\n\r\n-   **id**:\r\n    -   By supplying an ID, the Boxes' properties can be modified later (by passing the same _id_).\r\n    -   When modifying a previously added Box, **all** properties (other than _id_) are optional (supplied properties are overridden).\r\n\r\n```typescript\r\n// Initial Box definition (BoxDataCentered format).\r\nBoxSeries3D.invalidateData([\r\n    {\r\n        xCenter: 0,\r\n        yCenter: 0,\r\n        zCenter: 0,\r\n        xSize: 1,\r\n        ySize: 1,\r\n        zSize: 1,\r\n        id: 'box-#0',\r\n    },\r\n])\r\n// Modify 'yCenter' property only.\r\nBoxSeries3D.invalidateData([\r\n    {\r\n        id: 'box-#0',\r\n        yCenter: 5,\r\n    },\r\n])\r\n```\r\n\r\n-   **color**:\r\n    -   Assigns a _Color_ to the Box to be used when individual coloring mode is enabled.\r\n\r\n```typescript\r\n// Add Boxes with individual Colors.\r\nBoxSeries3D.invalidateData([{\r\n    ...,\r\n    color: ColorRGBA( 255, 0, 0 )\r\n}])\r\n// Enable individual coloring mode.\r\nBoxSeries3D.setFillStyle( new IndividualPointFill() )\r\n```\r\n\r\n-   **value**:\r\n    -   Assigns a _look-up value_ to the Box to be used when look-up coloring mode is enabled.\r\n\r\n```typescript\r\n// Define Color Look-Up-Table.\r\nconst lut = new LUT( {\r\n    steps: [\r\n        { value: 0, color: ColorRGBA( 0, 0, 0 ) },\r\n        { value: 100, color: ColorRGBA( 255, 0, 0 ) }\r\n    ],\r\n    interpolate: true\r\n} )\r\n// Add Boxes with look up values.\r\nBoxSeries3D.invalidateData([{\r\n    ...,\r\n    value: 50\r\n}])\r\n// Enable look up coloring mode\r\nBoxSeries3D.setFillStyle( new PalettedFill({ lut }) )\r\n```\r\n\n\n## API Links\n\n* [3D chart]\n* [3D box series]\n* [Box data centered]\n* [Box data bounds]\n* [Paletted Fill Style]\n* [LUT]\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-2026. All rights reserved.\r\n\n\n[3D chart]: https://lightningchart.com/js-charts/api-documentation/v8.3.0/classes/Chart3D.html\n[3D box series]: https://lightningchart.com/js-charts/api-documentation/v8.3.0/classes/BoxSeries3D.html\n[Box data centered]: https://lightningchart.com/js-charts/api-documentation/v8.3.0/interfaces/BoxDataCentered.html\n[Box data bounds]: https://lightningchart.com/js-charts/api-documentation/v8.3.0/interfaces/BoxDataBounds.html\n[Paletted Fill Style]: https://lightningchart.com/js-charts/api-documentation/v8.3.0/classes/PalettedFill.html\n[LUT]: https://lightningchart.com/js-charts/api-documentation/v8.3.0/classes/LUT.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-0907-3dboxrounded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farction%2Flcjs-example-0907-3dboxrounded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-0907-3dboxrounded/lists"}