From 5802e6f183bc7869929c4cb55cb009b0b2c08bb8 Mon Sep 17 00:00:00 2001 From: Sabbir Ahmed Date: Sun, 30 Jul 2017 10:40:49 +0600 Subject: [PATCH] yaxis rtl issue fixed in graph --- includes/admin-functions.php | 3 ++- includes/reports.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/admin-functions.php b/includes/admin-functions.php index 7efe1b6661..9c38a52dc4 100755 --- a/includes/admin-functions.php +++ b/includes/admin-functions.php @@ -441,6 +441,7 @@ function dokan_admin_report( $group_by = 'day', $year = '' ) { }, yaxes: [ { + position: ( isRtl == '1' ) ? "right" : "left", min: 0, minTickSize: 1, tickDecimals: 0, @@ -448,7 +449,7 @@ function dokan_admin_report( $group_by = 'day', $year = '' ) { font: { color: "#aaa" } }, { - position: "right", + position: ( isRtl == '1' ) ? "right" : "left", min: 0, tickDecimals: 2, alignTicksWithAxis: 1, diff --git a/includes/reports.php b/includes/reports.php index 2bcc94f4f0..240cd29b19 100644 --- a/includes/reports.php +++ b/includes/reports.php @@ -392,6 +392,7 @@ function dokan_sales_overview_chart_data( $start_date, $end_date, $group_by ) { }, yaxes: [ { + position: ( isRtl == '1' ) ? "right" : "left", min: 0, minTickSize: 1, tickDecimals: 0, @@ -399,7 +400,7 @@ function dokan_sales_overview_chart_data( $start_date, $end_date, $group_by ) { font: { color: "#aaa" } }, { - position: "right", + position: ( isRtl == '1' ) ? "right" : "left", min: 0, tickDecimals: 2, alignTicksWithAxis: 1,