I have a table of two columns named 'Days' (in column A) and 'Calories' (in column B) that shows how many calories I eat in that Days.
| Days | Calories |
|---|---|
| 1 | 355 |
| 2 | 709 |
| 3 | 347 |
| 4 | 578 |
| 5 | 254 |
| .. | .. |
| 30 | 793 |
How can make a dynamic chart in google sheet, Days vs. Calories so that I input period of days in another cells (like $D$1 and $E$1) and make Bar chart in google sheet depend on that days?