bbovenzi commented on a change in pull request #20002:
URL: https://github.com/apache/airflow/pull/20002#discussion_r765020600
##########
File path: airflow/www/views.py
##########
@@ -136,6 +136,11 @@
PAGE_SIZE = conf.getint('webserver', 'page_size')
FILTER_TAGS_COOKIE = 'tags_filter'
FILTER_STATUS_COOKIE = 'dag_status_filter'
+LINECHART_X_AXIS_TICKFORMAT = (
+ "function (d, i) { let xLabel;"
+ "if (i === undefined) {xLabel = d3.time.format('%H:%M, %d %b %Y')(new
Date(parseInt(d)));"
+ "} else {xLabel = d3.time.format('%H:%M')(new Date(parseInt(d)));} return
xLabel;}"
Review comment:
```suggestion
"} else {xLabel = d3.time.format('%H:%M, %d %b')(new
Date(parseInt(d)));} return xLabel;}"
```
I think we can get away with everything but the year. Showing only the hh:mm
is really confusing if the chart is over the course of weeks or months.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]