Trying to use ElevationService and visualization to chart elevation change and from google docs the specific graphics get brought in via packages. I've included the visualization library following the readme
libraries: 'places,drawing,visualization'
When I try to load the package before initializing the chart
Trying to use ElevationService and visualization to chart elevation change and from google docs the specific graphics get brought in via packages. I've included the visualization library following the readme
libraries: 'places,drawing,visualization'
When I try to load the package before initializing the chart
window.google.load("visualization", "1", { packages: ["columnchart"] });
I get
TypeError: window.google.load is not a function
If I don't load in the package I get an error that visualization is undefined
let chart = new window.google.visualization.ColumnChart(document.getElementById('chart_div'));
Uncaught (in promise) TypeError: can't access property "ColumnChart", window.google.visualization is undefined
Does anyone have an example for this?
MainJS Config
Vue.use(VueGoogleMaps, { load: { key: '', libraries: ['places', 'drawing', 'visualization', 'elevation'] } })
Code: ` import { MapElementFactory } from "vue2-google-maps";
export default MapElementFactory({ name: "directionsRenderer",
}); `