understanding the purpose of the chart in your dashboard code