Until the last time, it was connected to MySQL, but this time I will connect it to Google Spreadsheets
There is a document in here, but in re: dash from Google Spreadsheets using python modules gspread and oauth2client I'm getting the data.
To connect from re: dash to Google Spreadsheets, you need to issue a Service account key from the Google Developer Console.
First, create a project. This time I named it redash-sample.
Next, issue a Service account key in the API menu. This procedure will eventually download the json format file. Save it in a suitable location as you will use it later.
Next, find the Drive API from Overview and set it to enalbed.
Create as follows
Middle classification index (January 1970) on the page of 2010 Consumer Price Index ~ Latest month) is downloaded by csv and posted on Google Spreadsheet.
After that, format the data as follows. I changed A1 because I thought that YYYYMM would be more appropriate.
Then share this to the email inside the json of your Service account key
The URL of Google Spreadsheet is as follows.
At that time, enter the following in the value created by New Query. You can separate the "key in the URL" and the "spreadsheet number (starting with 0)" with a "|".
With proper visualization, it looks like this: On the other hand, the rent is going down, isn't it?
I got the data of Google Spreadsheets with re: dash and went to visualization. It seems that it is possible to import Google Analytics with Google Spreadsheets and visualize it with re: dash. The downside is that Spreadsheets load slowly. When I used it this time, it took more than 20 seconds to import.
Recommended Posts