Skip to content

Commit bc717d8

Browse files
remove chart placement
1 parent 8287c7a commit bc717d8

File tree

1 file changed

+3
-46
lines changed

1 file changed

+3
-46
lines changed

classes/Visualizer/Render/Sidebar/ChartJS.php

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ protected function _renderManualConfigDescription() {
355355
* @access protected
356356
*/
357357
protected function _renderViewSettings() {
358-
self::_renderGroupStart( esc_html__( 'Layout & Chart Area', 'visualizer' ) );
359-
self::_renderSectionStart( esc_html__( 'Layout', 'visualizer' ), false );
358+
self::_renderGroupStart( esc_html__( 'Chart Area', 'visualizer' ) );
359+
self::_renderSectionStart( esc_html__( 'Area', 'visualizer' ), false );
360360
self::_renderSectionDescription( esc_html__( 'Configure the total size of the chart. Two formats are supported: a number, or a number followed by %. A simple number is a value in pixels; a number followed by % is a percentage.', 'visualizer' ) );
361361

362362
echo '<div class="viz-section-item">';
@@ -375,57 +375,14 @@ protected function _renderViewSettings() {
375375
echo '</table>';
376376

377377
echo '<p class="viz-section-description">';
378-
esc_html_e( 'Determines the total width and height of the chart.', 'visualizer' );
378+
esc_html_e( 'Determines the total width and height of the chart. This will only show in the front-end.', 'visualizer' );
379379
echo '</p>';
380380
echo '</div>';
381381

382382
echo '<div class="viz-section-delimiter"></div>';
383383

384384
self::_renderSectionEnd();
385385

386-
self::_renderSectionStart( esc_html__( 'Chart Area', 'visualizer' ), false );
387-
self::_renderSectionDescription( esc_html__( 'Configure the placement and size of the chart area (where the chart itself is drawn, excluding axis and legends). Two formats are supported: a number, or a number followed by %. A simple number is a value in pixels; a number followed by % is a percentage.', 'visualizer' ) );
388-
389-
echo '<div class="viz-section-item">';
390-
echo '<a class="more-info" href="javascript:;">[?]</a>';
391-
echo '<b>', esc_html__( 'Left And Top Margins', 'visualizer' ), '</b>';
392-
393-
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
394-
echo '<tr>';
395-
echo '<td class="viz-section-table-column">';
396-
echo '<input type="text" name="chartArea[left]" class="control-text" value="', $this->chartArea['left'] || $this->chartArea['left'] === '0' ? esc_attr( $this->chartArea['left'] ) : '', '" placeholder="20%">';
397-
echo '</td>';
398-
echo '<td class="viz-section-table-column">';
399-
echo '<input type="text" name="chartArea[top]" class="control-text" value="', $this->chartArea['top'] || $this->chartArea['top'] === '0' ? esc_attr( $this->chartArea['top'] ) : '', '" placeholder="20%">';
400-
echo '</td>';
401-
echo '</tr>';
402-
echo '</table>';
403-
404-
echo '<p class="viz-section-description">';
405-
esc_html_e( 'Determines how far to draw the chart from the left and top borders.', 'visualizer' );
406-
echo '</p>';
407-
echo '</div>';
408-
409-
echo '<div class="viz-section-item">';
410-
echo '<a class="more-info" href="javascript:;">[?]</a>';
411-
echo '<b>', esc_html__( 'Width And Height Of Chart Area', 'visualizer' ), '</b>';
412-
413-
echo '<table class="viz-section-table" cellspacing="0" cellpadding="0" border="0">';
414-
echo '<tr>';
415-
echo '<td class="viz-section-table-column">';
416-
echo '<input type="text" name="chartArea[width]" class="control-text" value="', ! empty( $this->chartArea['width'] ) ? esc_attr( $this->chartArea['width'] ) : '', '" placeholder="60%">';
417-
echo '</td>';
418-
echo '<td class="viz-section-table-column">';
419-
echo '<input type="text" name="chartArea[height]" class="control-text" value="', ! empty( $this->chartArea['height'] ) ? esc_attr( $this->chartArea['height'] ) : '', '" placeholder="60%">';
420-
echo '</td>';
421-
echo '</tr>';
422-
echo '</table>';
423-
424-
echo '<p class="viz-section-description">';
425-
esc_html_e( 'Determines the width and hight of the chart area.', 'visualizer' );
426-
echo '</p>';
427-
echo '</div>';
428-
self::_renderSectionEnd();
429386
self::_renderGroupEnd();
430387
}
431388
}

0 commit comments

Comments
 (0)