Create a stacked bar chart with MySQL where x-axis grouped by quarters of an year

Hi,
How do I create a stacked bar chart in Grafana with MySQL as backend wherein the x-axis should display the various quarters of an year?
Appreciate a quick response.
Thanks!