I'm using Confluence 5.5.3 and PocketQuery 2.0.7
I'm trying to render a simple pie chart but receiving error: "Pie chart should have a first column of type string."
We have a number of software releases that vary in their lifecycle status. i.e. Design, Implementation, Testing... and I'd like to produce a simple pie chart with an overview of how many releases we have in each status.
Here's my query:
SELECT COUNT(*) AS "Lifecycle Totals", [Lifecycle Status]
GROUP BY [Lifecycle Status];
Here's my template:
'Software Lifecycles by Status'
When I test the query results using the default template it renders the table correctly:
|Lifecycle Status||Lifecycle Totals|
However, when I select the pie chart template using the same query it returns the error: "Pie chart should have a first column of type string."
I'm sure there's something simple I'm missing here... Would anyone be able to provide some guidance?
Thank you for your interest in PocketQuery! There is one requirement for a pie chart to work properly: the first column must be a string and the second one must be a number. While in your default result this looks correct, in your query the number is the first column. I'm wondering why the number column is the second in the default result and the string is the first. Did you try switching the order in the select clause?
SELECT [Lifecycle Status], COUNT(*) AS "Lifecycle Totals" FROM Versions GROUP BY [Lifecycle Status];
Regards, Felix (Scandio)
A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events