How to use count from database as data-point on column chart?

I need to derive the data-points for a column chart from the count values of multiple queries. Please can you suggest me how to do it?

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data