In using react-google-charts geochart, this data is acceptable:
const data = [
["Country", "DevCount"],
["Germany", 200],
["United States", 300]
but this isn’t (with the error: “Cannot draw chart: no data specified.”):
is it nested down a layer too far maybe? I’ve tried this to lift it up:
getData = () => {
const data = Object.values(this.props.countriesToRender);
return(data.map(array => array[0]));
};
index 0 & 1 are what I want, the names and numbers.