From 93871ca786390d9c11f33e7014c3a795b2655adb Mon Sep 17 00:00:00 2001 From: Geert De Deckere Date: Mon, 11 Jun 2012 10:32:57 +0200 Subject: [PATCH] Made legend on the reports graphs translatable --- admin/woocommerce-admin-reports.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/woocommerce-admin-reports.php b/admin/woocommerce-admin-reports.php index c98647120ae..403cb5036c6 100644 --- a/admin/woocommerce-admin-reports.php +++ b/admin/woocommerce-admin-reports.php @@ -150,12 +150,12 @@ function woocommerce_tooltip_js() { jQuery("#tooltip").remove(); - if (item.series.label=="Sales amount") { + if (item.series.label=="") { var y = item.datapoint[1].toFixed(2); showTooltip(item.pageX, item.pageY, item.series.label + " - " + "" + y); - } else if (item.series.label=="Number of sales") { + } else if (item.series.label=="") { var y = item.datapoint[1]; showTooltip(item.pageX, item.pageY, item.series.label + " - " + y); @@ -444,7 +444,7 @@ function woocommerce_sales_overview() { var placeholder = jQuery("#placeholder"); - var plot = jQuery.plot(placeholder, [ { label: "Number of sales", data: d }, { label: "Sales amount", data: d2, yaxis: 2 } ], { + var plot = jQuery.plot(placeholder, [ { label: "", data: d }, { label: "", data: d2, yaxis: 2 } ], { series: { lines: { show: true }, points: { show: true } @@ -634,7 +634,7 @@ function woocommerce_daily_sales() { var placeholder = jQuery("#placeholder"); - var plot = jQuery.plot(placeholder, [ { label: "Number of sales", data: d }, { label: "Sales amount", data: d2, yaxis: 2 } ], { + var plot = jQuery.plot(placeholder, [ { label: "", data: d }, { label: "", data: d2, yaxis: 2 } ], { series: { lines: { show: true }, points: { show: true } @@ -820,7 +820,7 @@ function woocommerce_monthly_sales() { var placeholder = jQuery("#placeholder"); - var plot = jQuery.plot(placeholder, [ { label: "Number of sales", data: d }, { label: "Sales amount", data: d2, yaxis: 2 } ], { + var plot = jQuery.plot(placeholder, [ { label: "", data: d }, { label: "", data: d2, yaxis: 2 } ], { series: { lines: { show: true }, points: { show: true, align: "left" }