mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Merge pull request #2631 from kialam/fix/2533-dashboard-hover
Fix Dashboard hover-over action so it shows the correct info Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -91,7 +91,6 @@ function JobStatusGraph($window, adjustGraphSize, templateUrl, i18n, moment, gra
|
|||||||
});
|
});
|
||||||
|
|
||||||
job_status_chart
|
job_status_chart
|
||||||
.x(function(d,i) { return i; })
|
|
||||||
.useInteractiveGuideline(true) //We want nice looking tooltips and a guideline!
|
.useInteractiveGuideline(true) //We want nice looking tooltips and a guideline!
|
||||||
.showLegend(false) //Show the legend, allowing users to turn on/off line series.
|
.showLegend(false) //Show the legend, allowing users to turn on/off line series.
|
||||||
.showYAxis(true) //Show the y-axis
|
.showYAxis(true) //Show the y-axis
|
||||||
@@ -104,15 +103,13 @@ function JobStatusGraph($window, adjustGraphSize, templateUrl, i18n, moment, gra
|
|||||||
job_status_chart.xAxis
|
job_status_chart.xAxis
|
||||||
.axisLabel(i18n._("TIME"))//.showMaxMin(true)
|
.axisLabel(i18n._("TIME"))//.showMaxMin(true)
|
||||||
.tickFormat(function(d) {
|
.tickFormat(function(d) {
|
||||||
const dx = graphData[0].values[d] && graphData[0].values[d].x || 0;
|
if (d) {
|
||||||
|
const tickDate = new Date(Number(d + '000'));
|
||||||
if (!dx) {
|
return moment(tickDate).format(timeFormat);
|
||||||
|
}
|
||||||
|
else {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const tickDate = new Date(Number(dx + '000'));
|
|
||||||
|
|
||||||
return moment(tickDate).format(timeFormat);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
job_status_chart.yAxis //Chart y-axis settings
|
job_status_chart.yAxis //Chart y-axis settings
|
||||||
|
|||||||
Reference in New Issue
Block a user