File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
classes/Visualizer/Render Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ public function __construct( $data = array() ) {
98
98
99
99
$ this ->_legendPositions = array (
100
100
'' => '' ,
101
+ 'left ' => esc_html__ ( 'Left of the chart ' , Visualizer_Plugin::NAME ),
101
102
'right ' => esc_html__ ( 'Right of the chart ' , Visualizer_Plugin::NAME ),
102
103
'top ' => esc_html__ ( 'Above the chart ' , Visualizer_Plugin::NAME ),
103
104
'bottom ' => esc_html__ ( 'Below the chart ' , Visualizer_Plugin::NAME ),
Original file line number Diff line number Diff line change 53
53
}
54
54
}
55
55
}
56
+
57
+ if ( settings . series && settings . legend && settings . legend . position == "left" )
58
+ {
59
+ settings . targetAxisIndex = 1 ;
60
+ }
56
61
break ;
57
62
case 'geo' :
58
63
if ( settings . region != undefined && settings . region . replace ( / ^ \s + | \s + $ / g, '' ) == '' ) {
87
92
}
88
93
}
89
94
}
95
+
96
+ if ( settings . series && settings . legend && settings . legend . position == "left" )
97
+ {
98
+ settings . targetAxisIndex = 1 ;
99
+ }
90
100
break ;
91
101
default :
92
102
return ;
You can’t perform that action at this time.
0 commit comments