I am struggling to interpret a month and day (MMDD, or MM_DD in my case) info as "Time" in my Altair graph.
The data I am working with contains the daily level of a lake from year 1850 until today. I calculated the min, max, mean value for every individual day of the year (mm_dd). Then, I converted my data frame to a long format, which now looks like this:
| [] | mm_dd | value_type | levelcm | month |
|---|---|---|---|---|
| 0 | 01_01 | value_min | 242 | 01 |
| 1 | 01_02 | value_min | 243 | 01 |
| 2 | 01_01 | value_mean | 301 | 01 |
| 3 | 01_02 | value_mean | 300 | 01 |
| 4 | 01_01 | value_max | 380 | 01 |
| 5 | 01_02 | value_max | 380 | 01 |
With
alt.Chart(df_mmm_long).mark_line().encode(
x='mm_dd',
y='levelcm',
color='value_type'
)
I am getting
Ideally, I would like the line chart to be based on the mm_dd information, but have a monthly scale on the X-axis.

