{"id":20893376,"url":"https://github.com/arction/lcjs-example-1103-mapchartvizxy","last_synced_at":"2025-03-12T19:14:20.451Z","repository":{"id":98723689,"uuid":"454735970","full_name":"Arction/lcjs-example-1103-mapChartVizXY","owner":"Arction","description":"Animated map chart that visualizes the progression of first round of CoVID-19 vaccination coverage per country","archived":false,"fork":false,"pushed_at":"2025-02-05T11:40:08.000Z","size":12020,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T12:32:25.497Z","etag":null,"topics":["covid-19","data-visualization","demo","example","lightningchart-js","maps","template"],"latest_commit_sha":null,"homepage":"https://www.arction.com/lightningchart-js-interactive-examples/examples/lcjs-example-1103-mapChartVizXY.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":"2022-02-02T10:48:33.000Z","updated_at":"2025-02-05T11:37:03.000Z","dependencies_parsed_at":"2025-02-05T12:39:12.154Z","dependency_job_id":null,"html_url":"https://github.com/Arction/lcjs-example-1103-mapChartVizXY","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-1103-mapChartVizXY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1103-mapChartVizXY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1103-mapChartVizXY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arction%2Flcjs-example-1103-mapChartVizXY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arction","download_url":"https://codeload.github.com/Arction/lcjs-example-1103-mapChartVizXY/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":["covid-19","data-visualization","demo","example","lightningchart-js","maps","template"],"created_at":"2024-11-18T10:15:37.985Z","updated_at":"2025-03-12T19:14:20.445Z","avatar_url":"https://github.com/Arction.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Animated CoVID Vaccination Coverage Chart\n\n![JavaScript Animated CoVID Vaccination Coverage Chart](mapChartVizXY-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\nExample which showcases laying LightningChart JS `ChartXY` data visualization features over a LightningChart JS `MapChart`.\n\nThis is likely to be the single easiest method available of implementing a geographical data visualization component:\n\n-   **No tile server or large tile storage required**\n-   **Can be used offline**\n-   **Extremely simple to develop** (minimal setup less than 50 lines of code)\n\nThe two charts are laid perfectly over each other by placing them on their own HTML `div` elements with same position and size. To complete the setting, `MapChart` provides a method `onViewChange` which can be used to conveniently synchronize the map latitude and longitude view with the overlaid XY axes.\n\n```js\n// Minimal working code for overlaid and synchronized MapChart and ChartXY.\nconst divMap = document.createElement('div')\ndocument.body.append(divMap)\n\nconst divOverlay = document.createElement('div')\ndocument.body.append(divOverlay)\n\nconst mapChart = lightningChart()\n    .Map({\n        type: MapTypes.World,\n        container: divMap,\n    })\n    .setTitle('')\n\nconst chart = lightningChart()\n    .ChartXY({\n        container: divOverlay,\n    })\n    .setBackgroundFillStyle(transparentFill)\n    .setSeriesBackgroundFillStyle(transparentFill)\nchart.engine.setBackgroundFillStyle(transparentFill)\nchart.getDefaultAxes().forEach((axis) =\u003e axis.setTickStrategy(AxisTickStrategies.Empty).setStrokeStyle(emptyLine))\n\nmapChart.addEventListener('viewchange', (event) =\u003e {\n    const { latitudeRange, longitudeRange, margin } = event\n    chart.getDefaultAxisX().setInterval({ start: longitudeRange.start, end: longitudeRange.end })\n    chart.getDefaultAxisY().setInterval({ start: latitudeRange.start, end: latitudeRange.end })\n    chart.setPadding(margin)\n})\n\ndivMap.style.width = '100vw'\ndivMap.style.height = '100vh'\ndivMap.style.position = 'absolute'\ndivMap.style.left = '0px'\ndivMap.style.top = '0px'\nmapChart.engine.layout()\n\ndivOverlay.style.width = '100vw'\ndivOverlay.style.height = '100vh'\ndivOverlay.style.position = 'absolute'\ndivOverlay.style.left = '0px'\ndivOverlay.style.top = '0px'\nchart.engine.layout()\n```\n\nThe example animates the progression of first round of Covid-19 vaccines coverage across all countries.\n\nThe used data set is from [ourworldindata.org](https://ourworldindata.org/covid-vaccinations)\n\n\u003e Hannah Ritchie, Edouard Mathieu, Lucas Rodés-Guirao, Cameron Appel, Charlie Giattino, Esteban Ortiz-Ospina, Joe Hasell, Bobbie Macdonald, Diana Beltekian and Max Roser (2020) - \"Coronavirus Pandemic (COVID-19)\". Published online at OurWorldInData.org. Retrieved from: 'https://ourworldindata.org/coronavirus' [Online Resource]\n\n**More map examples**:\n\n-   [Simple Countries Visualization](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-1101-mapChartDynamicColor.html)\n-   [Data visualization over Google Maps](https://blog.arction.com/easy-geospatial-data-visualization-with-lightningchart-js-and-google)\n-   [LightningChart JS Map Charts with Drill-down](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-1111-covidDrillDownDashboard.html)\n-   [Data visualization over static map picture](https://lightningchart.com/lightningchart-js-interactive-examples/examples/lcjs-example-1110-geoChartUsaTemperature.html)\n\n\n## API Links\n\n* [Point Shape]\n* [PalettedFill]\n* [MapTypes]\n* [transparentFill]\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[Point Shape]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/enums/PointShape.html\n[PalettedFill]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/classes/PalettedFill.html\n[MapTypes]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/MapTypes.html\n[transparentFill]: https://lightningchart.com/js-charts/api-documentation/v7.0.1/variables/transparentFill.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-1103-mapchartvizxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farction%2Flcjs-example-1103-mapchartvizxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farction%2Flcjs-example-1103-mapchartvizxy/lists"}