File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,16 @@ public function __construct( $data = array() ) {
67
67
'none ' => esc_html__ ( 'Omit the legend ' , 'visualizer ' ),
68
68
);
69
69
70
- if ( ! in_array ( $ this ->get_chart_type ( false ), array ( 'Pie ' ), true ) ) {
70
+ $ chart_type = $ this ->get_chart_type ( false );
71
+ if ( ! in_array ( $ chart_type , array ( 'Pie ' ), true ) ) {
71
72
$ this ->_legendPositions ['in ' ] = esc_html__ ( 'Inside the chart ' , 'visualizer ' );
72
73
}
73
74
75
+ if ( in_array ( $ chart_type , array ( 'Bubble ' ), true ) ) {
76
+ unset( $ this ->_legendPositions ['left ' ] );
77
+ unset( $ this ->_legendPositions ['right ' ] );
78
+ }
79
+
74
80
$ this ->_alignments = array (
75
81
'' => '' ,
76
82
'start ' => esc_html__ ( 'Aligned to the start of the allocated area ' , 'visualizer ' ),
You can’t perform that action at this time.
0 commit comments