Add the flatten option for bar chart with numbers

Module appears to work in exactly the same way after doing this