frappe / insights

Open source analytics / business intelligence tool (BI)
https://frappe.io/insights
GNU Affero General Public License v3.0
406 stars 199 forks source link

Unable to select Column with Number type in Bar chart #157

Closed zeel-codder closed 1 year ago

zeel-codder commented 1 year ago

I'm trying to create a bar chart using the Todo DocType from idx->Count of Records with given idx. But In the x-axis, I am unable to select any of the given columns.

Version: develop

I have attached the screenshot for the same

Screenshot 2023-08-17 at 4 30 55 PM Screenshot 2023-08-17 at 4 31 17 PM
nextchamp-saqib commented 1 year ago

Hey, I cannot see the query screenshot, can you post it again?

zeel-codder commented 1 year ago

Check now

nextchamp-saqib commented 1 year ago

Since Group by idx is a number field, it is only available on Y axis To overwrite this, you need to cast it to a string field. To do that you need to add a column expression to group by idx like so,

CleanShot 2023-08-24 at 14 48 32@2x