Skip to content

Commit c140a2d

Browse files
author
Eugene Manuilov
committed
Implemented focus target and data opacity for columnar chars
1 parent 668c9de commit c140a2d

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

classes/Visualizer/Render/Sidebar/Columnar.php

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,39 @@ abstract class Visualizer_Render_Sidebar_Columnar extends Visualizer_Render_Side
4343
protected function _renderColumnarSettings() {
4444
self::_renderGroupStart( esc_html__( 'Bars Settings', Visualizer_Plugin::NAME ) );
4545
self::_renderSectionStart();
46+
self::_renderSelectItem(
47+
esc_html__( 'Focus Target', Visualizer_Plugin::NAME ),
48+
'focusTarget',
49+
$this->focusTarget,
50+
array(
51+
'' => '',
52+
'datum' => esc_html__( 'Focus on a single data point.', Visualizer_Plugin::NAME ),
53+
'category' => esc_html__( 'Focus on a grouping of all data points along the major axis.', Visualizer_Plugin::NAME ),
54+
),
55+
esc_html__( 'The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse click.', Visualizer_Plugin::NAME )
56+
);
57+
58+
echo '<div class="section-delimiter"></div>';
59+
4660
self::_renderSelectItem(
4761
esc_html__( 'Is Stacked', Visualizer_Plugin::NAME ),
4862
'isStacked',
4963
$this->isStacked,
5064
$this->_yesno,
5165
esc_html__( 'If set to yes, series elements are stacked.', Visualizer_Plugin::NAME )
5266
);
67+
68+
echo '<div class="section-delimiter"></div>';
69+
70+
self::_renderTextItem(
71+
esc_html__( 'Bars Opacity', Visualizer_Plugin::NAME ),
72+
'dataOpacity',
73+
$this->dataOpacity,
74+
esc_html__( 'Bars transparency, with 1.0 being completely opaque and 0.0 fully transparent.', Visualizer_Plugin::NAME ),
75+
'1.0'
76+
);
5377
self::_renderSectionEnd();
5478
self::_renderGroupEnd();
5579
}
56-
80+
5781
}

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
5959
== Changelog ==
6060

6161
= 1.4 =
62+
* Implemented focus target and data opacity for columnar chars
6263
* Implemented data opacity and interpolate nulls settings for line chart
6364
* Implemented ability to edit tooltip settings
6465
* Implemented new settings for linear charts like selection mode and aggregation target

0 commit comments

Comments
 (0)