Add a space between each category bars (xy chart component)

Hi, I am trying to add a space on the xy chart between categories:


I have been looking into other topics. And I found these two topics useful:

How to add space between category bars - XY Chart

Bars distance in XY Chart

However, there's an error in my script saying that the "array.array" object has no attribute 'getRowCount'

Any hints for me?

Your Query return type is JSON, but getRowCount is a DataSet function.
Try this instead:
for row in range(0, len(value))

1 Like

Thank you. Now it's complaining about the getValueAt
image

Because... getValueAt is a DataSet function.

return [
    {
        "NestId": value[i]["NestID"]  # access like this
    } for i in range(lenvalue))
]
1 Like

Better might be:

return [dict(blank=0,blank1=0, **value)]
1 Like

Thank you very much for your help!