36 lines
990 B
TypeScript
Raw Permalink Normal View History

2018-04-16 21:01:34 +00:00
// import AnimeNotifier from "../AnimeNotifier"
// // User map
// export function showUserMap(arn: AnimeNotifier, button: HTMLElement) {
// let script = document.createElement("script")
// script.src = "https://www.gstatic.com/charts/loader.js"
// script.onload = () => {
// let google = window["google"]
// google.charts.load("current", {
// "packages": ["geochart"],
// "mapsApiKey": ""
// })
// google.charts.setOnLoadCallback(drawUserMap)
// }
// document.head.appendChild(script)
// }
// function drawUserMap() {
// let data = window["google"].visualization.arrayToDataTable([
// ["Country", "Popularity"],
// ["Germany", 200],
// ["United States", 300],
// ["Brazil", 400],
// ["Canada", 500],
// ["France", 600],
// ["RU", 700]
// ])
// let options = {}
// let element = document.getElementById("user-map")
// let chart = new window["google"].visualization.GeoChart(element)
// console.log(element, data)
// chart.draw(data, options)
2019-11-17 09:44:30 +00:00
// }