Skip to content

Commit a8cf3d0

Browse files
Revert "omit left and right in legend position for bubble chart"
This reverts commit 96b6061.
1 parent 96b6061 commit a8cf3d0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

classes/Visualizer/Render/Sidebar/Google.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,10 @@ public function __construct( $data = array() ) {
6767
'none' => esc_html__( 'Omit the legend', 'visualizer' ),
6868
);
6969

70-
$chart_type = $this->get_chart_type( false );
71-
if ( ! in_array( $chart_type, array( 'Pie' ), true ) ) {
70+
if ( ! in_array( $this->get_chart_type( false ), array( 'Pie' ), true ) ) {
7271
$this->_legendPositions['in'] = esc_html__( 'Inside the chart', 'visualizer' );
7372
}
7473

75-
if ( in_array( $chart_type, array( 'Bubble' ), true ) ) {
76-
unset( $this->_legendPositions['left'] );
77-
unset( $this->_legendPositions['right'] );
78-
}
79-
8074
$this->_alignments = array(
8175
'' => '',
8276
'start' => esc_html__( 'Aligned to the start of the allocated area', 'visualizer' ),

0 commit comments

Comments
 (0)