diff --git a/includes/admin/reports/class-wc-report-coupon-usage.php b/includes/admin/reports/class-wc-report-coupon-usage.php index b9df08ef212..8ffa3ced785 100644 --- a/includes/admin/reports/class-wc-report-coupon-usage.php +++ b/includes/admin/reports/class-wc-report-coupon-usage.php @@ -446,46 +446,46 @@ class WC_Report_Coupon_Usage extends WC_Admin_Report { legend: { show: false }, - grid: { - color: '#aaa', - borderColor: 'transparent', - borderWidth: 0, - hoverable: true - }, - xaxes: [ { - color: '#aaa', - position: "bottom", - tickColor: 'transparent', + grid: { + color: '#aaa', + borderColor: 'transparent', + borderWidth: 0, + hoverable: true + }, + xaxes: [ { + color: '#aaa', + position: "bottom", + tickColor: 'transparent', mode: "time", timeformat: "chart_groupby == 'day' ) echo '%d %b'; else echo '%b'; ?>", monthNames: month_abbrev ) ) ?>, tickLength: 1, minTickSize: [1, "chart_groupby; ?>"], font: { - color: "#aaa" - } + color: "#aaa" + } } ], - yaxes: [ - { - min: 0, - minTickSize: 1, - tickDecimals: 0, - color: '#ecf0f1', - font: { color: "#aaa" } - }, - { - position: "right", - min: 0, - tickDecimals: 2, - alignTicksWithAxis: 1, - color: 'transparent', - font: { color: "#aaa" } - } - ], - } - ); + yaxes: [ + { + min: 0, + minTickSize: 1, + tickDecimals: 0, + color: '#ecf0f1', + font: { color: "#aaa" } + }, + { + position: "right", + min: 0, + tickDecimals: 2, + alignTicksWithAxis: 1, + color: 'transparent', + font: { color: "#aaa" } + } + ], + } + ); - jQuery('.chart-placeholder').resize(); + jQuery('.chart-placeholder').resize(); } drawGraph();