Draw chart using dates and grouping rows by value
Asked by razor78:

I have a table of cars where each row represents a separate car and one of the columns will have a date in it to represent when the car is ready. I would like a bar chart to show how many cars are planned to be ready on each date. Here's an example, let me know if you need more information! Many thanks,

\| Car \| Planned Date \|

\| ford \| 2023/01/18 \|

\| MG \| 2023/01/18 \|

\| Merc \| 2023/01/20 \|

The chart's Y axis should show 3 (3 car makes) and the X axis should show 18 and 20. The graph bars should be 2 and 1, i.e. "2" for 2 x cars on the 18th (ford and MG) and 1 for 1 x car on the 20th.

The goal is to look at the chart and to quickly see how many cars are planned for each date.

I'm using Atlassian version 7.19.0


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@razor78](/t5/user/viewprofilepage/user-id/5123691),  

We can suggest trying our app -- [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111). Create the following macro sequence (directly if your hosting is Data Center/Server or via the [Table Toolbox](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-toolbox-macro-42245927.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro if you are on Cloud):  

![Wed 8-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/235097iBAC47B02BF5AF0B5/image-size/large?v=v2&px=999 "Wed 8-1.png")  

Use the [Pivot Table](https://docs.stiltsoft.com/tfac/cloud/how-to-use-pivot-table-macro-42239659.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro to group your entries by dates:  

![Wed 8-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/235099i00279E3F64B0B39A/image-size/large?v=v2&px=999 "Wed 8-2.png")  

If necessary, filter the empty dates out with the help of the [Table Filter](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-filter-macro-42239756.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro:  

![Wed 8-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/235101iA2BE6B680B37BDF8/image-size/large?v=v2&px=999 "Wed 8-3.png")  
Create the required chart using the [Chart from Table](https://docs.stiltsoft.com/tfac/cloud/how-to-use-chart-from-table-macro-42239655.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro:  

![Wed 8-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/235102iF1712C072E609FD4/image-size/large?v=v2&px=999 "Wed 8-4.png")

comments: author: razor78
body: thanks for the help, I see this is a premium macro (i.e. costs money)? Is it possible to do it without additional costs?

Thanks,


author: Katerina Rudkovskaya [Stiltsoft]
body: You may use the standard Chart macro but the data in your source table should be aggregated beforehand.  

What concerns our app, it's free for Cloud 1-10 users.


author: razor78
body: thanks for your help, can you provide an example of the aggregated approach?

thank you


author: Katerina Rudkovskaya [Stiltsoft]
body: Hi, here I meant manual aggregation - just count the number of cars for each date manually and then visualize the data using the standard Chart macro. There are no any standard Confluence macros to group tabular data automatically.


author: razor78
body: ok thanks


Tags: aggregate

chart-from-table

filter

group

pivot-table

table

table-filter

table-filter-and-charts