Trouble creating charts using queries
-
Hey,
I’m really struggling to use queries to get data into charts from my Google Sheets onto my site. I have a form which inputs the data into the sheet. The site is now displaying a chart from that sheet, but I’m having a really hard time doing queries to display the data as the chart that I want. I’ve read all of the documentation and the forums and can’t really find what I’m looking for.
My shortcode looks like this:
[gdoc key="https://docs.google.com/spreadsheets/d/1c2nfL4-7Avk-2SD3vemN0vofOo7iSNQcTDfcOwJdgxY/edit#gid=215205300" gid="215205300" chart="column" QUERY="select G, H,I"]
It is displayed on this page:
https://carrotpl.us/farm-data/According to the docs, I can use Google’s query language to get and add specific data that I want. However, as soon as I add Sum to the shortcode, it breaks the chart and it disappears. I’ve tried all kinds of versions of sum, such as doing it with parenthesis and without and no luck.
I’d like the shortcode to do a sum of some columns. The other thing that seems to be happening is that I don’t know how to format the shortcode to display the info correctly in the first place. In the example above, there should be 3 columns displayed with 3 different crops, not just Berries. It’s a very simple spreadsheet with each entry displayed in a row (you can see that on the same page), but I just want to pull what I want from it.
I’m not super familiar with queries which isn’t helping. Can someone help?
https://www.ads-software.com/plugins/inline-google-spreadsheet-viewer/
- The topic ‘Trouble creating charts using queries’ is closed to new replies.