Skip to content

Commit

Permalink
yaxis rtl issue fixed in graph
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Jul 30, 2017
1 parent 6644da7 commit 5802e6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion includes/admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,15 @@ function dokan_admin_report( $group_by = 'day', $year = '' ) {
},
yaxes: [
{
position: ( isRtl == '1' ) ? "right" : "left",
min: 0,
minTickSize: 1,
tickDecimals: 0,
color: '#d4d9dc',
font: { color: "#aaa" }
},
{
position: "right",
position: ( isRtl == '1' ) ? "right" : "left",
min: 0,
tickDecimals: 2,
alignTicksWithAxis: 1,
Expand Down
3 changes: 2 additions & 1 deletion includes/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,15 @@ function dokan_sales_overview_chart_data( $start_date, $end_date, $group_by ) {
},
yaxes: [
{
position: ( isRtl == '1' ) ? "right" : "left",
min: 0,
minTickSize: 1,
tickDecimals: 0,
color: '#d4d9dc',
font: { color: "#aaa" }
},
{
position: "right",
position: ( isRtl == '1' ) ? "right" : "left",
min: 0,
tickDecimals: 2,
alignTicksWithAxis: 1,
Expand Down

0 comments on commit 5802e6f

Please sign in to comment.