We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41ed38b commit 1dd2b58Copy full SHA for 1dd2b58
classes/Visualizer/Render/Sidebar/Google.php
@@ -64,10 +64,13 @@ public function __construct( $data = array() ) {
64
'right' => esc_html__( 'Right of the chart', 'visualizer' ),
65
'top' => esc_html__( 'Above the chart', 'visualizer' ),
66
'bottom' => esc_html__( 'Below the chart', 'visualizer' ),
67
- 'in' => esc_html__( 'Inside the chart', 'visualizer' ),
68
'none' => esc_html__( 'Omit the legend', 'visualizer' ),
69
);
70
+ if ( ! in_array( $this->get_chart_type( false ), array( 'Pie' ), true ) ) {
71
+ $this->_legendPositions['in'] = esc_html__( 'Inside the chart', 'visualizer' );
72
+ }
73
+
74
$this->_alignments = array(
75
'' => '',
76
'start' => esc_html__( 'Aligned to the start of the allocated area', 'visualizer' ),
0 commit comments