{"id":20893381,"url":"https://github.com/arction/lcjs-example-1102-mapcharttimeline","last_synced_at":"2025-03-12T19:14:28.055Z","repository":{"id":98723680,"uuid":"390321070","full_name":"Arction/lcjs-example-1102-mapChartTimeline","owner":"Arction","description":"A demo application showcasing using LightningChart JS to display rea-time animated data set and dynamic region coloring.","archived":false,"fork":false,"pushed_at":"2025-02-05T11:40:07.000Z","size":12673,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T12:32:23.247Z","etag":null,"topics":["chart","charts","demo","dynamic-color-changing","javascript","lcjs","lightningchart-js","map","map-chart","performance","real-time","visualization","webgl"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-1102-mapChartTimeline.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":"2021-07-28T11:08:03.000Z","updated_at":"2025-02-05T11:37:00.000Z","dependencies_parsed_at":"2025-02-05T12:29:08.262Z","dependency_job_id":"20058407-cd4f-4c26-bd9a-babc6b1bdfa5","html_url":"https://github.com/Arction/lcjs-example-1102-mapChartTimeline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1102-mapChartTimeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1102-mapChartTimeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1102-mapChartTimeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1102-mapChartTimeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arction","download_url":"https://codeload.github.com/Arction/lcjs-example-1102-mapChartTimeline/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":["chart","charts","demo","dynamic-color-changing","javascript","lcjs","lightningchart-js","map","map-chart","performance","real-time","visualization","webgl"],"created_at":"2024-11-18T10:15:39.038Z","updated_at":"2025-03-12T19:14:28.049Z","avatar_url":"https://github.com/Arction.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Real-time Map Dashboard\n\n![JavaScript Real-time Map Dashboard](mapChartTimeline-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\nExample on using `MapChart` with real-time animated data set and dynamic region coloring.\r\n\r\nThe data set is downloaded with `fetch` when the application is started.\r\nIt contains population for each country in Europe, North and South America in the year range between 1961-2019.\r\n\r\nThe dashboard contains 3 charts (for each region) and 1 cell with UI panel.\r\nThe UI panel contains interactive slider that can set a data period and year marker that can pause and start animation.\r\n\r\nEvery time the active year is changed, map regions data is quickly invalidated in real-time with the 'invalidateRegionValues' method\r\n\r\n```js\r\n// Code snippet setting region values for all 3 map charts.\r\nlet year = 2005\r\n\r\nconst regionValuesData = populationData.map((item) =\u003e ({\r\n    ISO_A3: item['Country Code'],\r\n    value: item[year],\r\n}))\r\n\r\nchartEurope.invalidateRegionValues(regionValuesData)\r\nchartSA.invalidateRegionValues(regionValuesData)\r\nchartNA.invalidateRegionValues(regionValuesData)\r\n```\r\n\r\n**More map examples**:\r\n\r\n-   [Data visualization over LightningChart JS Map Charts](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-1103-mapChartVizXY.html)\r\n-   [Data visualization over Google Maps](https://blog.arction.com/easy-geospatial-data-visualization-with-lightningchart-js-and-google)\r\n-   [LightningChart JS Map Charts with Drill-down](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-1111-covidDrillDownDashboard.html)\r\n-   [Data visualization over static map picture](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-1110-geoChartUsaTemperature.html)\r\n\r\n**(!) Using `Dashboard` is no longer recommended for new applications. Find latest recommendations here: https://lightningchart.com/js-charts/docs/basic-topics/grouping-charts/**\r\n\n\n## API Links\n\n* [Dashboard]\n* [Map chart]\n* [Map types]\n* [Color look up table]\n* [Paletted fill style]\n* [Color factory RGBA]\n* [UI element builders]\n* [UI layout builders]\n* [Legend box builders]\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[Dashboard]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/Dashboard.html\n[Map chart]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/MapChart.html\n[Map types]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/MapTypes.html\n[Color look up table]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/LUT.html\n[Paletted fill style]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/PalettedFill.html\n[Color factory RGBA]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/functions/ColorRGBA.html\n[UI element builders]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/UIElementBuilders.html\n[UI layout builders]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/UILayoutBuilders.html\n[Legend box builders]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/LegendBoxBuilders.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-1102-mapcharttimeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farction%2Flcjs-example-1102-mapcharttimeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-1102-mapcharttimeline/lists"}