Skip to content

Commit 7f7b823

Browse files
author
Eugene Manuilov
committed
Implemented point opacity for area chart.
1 parent 487635d commit 7f7b823

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

classes/Visualizer/Render/Sidebar/Linear.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ protected function _renderLineSettingsItems() {
179179
);
180180
}
181181

182+
echo '<div class="section-delimiter"></div>';
183+
182184
if ( $this->_includeFocusTarget ) {
183185
self::_renderSelectItem(
184186
esc_html__( 'Focus Target', Visualizer_Plugin::NAME ),

classes/Visualizer/Render/Sidebar/Type/Area.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ protected function _toHTML() {
7070
protected function _renderLineSettingsItems() {
7171
parent::_renderLineSettingsItems();
7272

73+
echo '<div class="section-delimiter"></div>';
74+
7375
self::_renderSelectItem(
7476
esc_html__( 'Is Stacked', Visualizer_Plugin::NAME ),
7577
'isStacked',
@@ -78,6 +80,16 @@ protected function _renderLineSettingsItems() {
7880
esc_html__( 'If set to yes, series elements are stacked.', Visualizer_Plugin::NAME )
7981
);
8082

83+
echo '<div class="section-delimiter"></div>';
84+
85+
self::_renderTextItem(
86+
esc_html__( 'Point Opacity', Visualizer_Plugin::NAME ),
87+
'dataOpacity',
88+
$this->dataOpacity,
89+
esc_html__( 'The transparency of data points, with 1.0 being completely opaque and 0.0 fully transparent.', Visualizer_Plugin::NAME ),
90+
'1.0'
91+
);
92+
8193
self::_renderTextItem(
8294
esc_html__( 'Area Opacity', Visualizer_Plugin::NAME ),
8395
'areaOpacity',

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
6161
= 1.4 =
6262
* Implemented ability to edit tooltip settings
6363
* Implemented new settings for linear charts like selection mode and aggregation target
64-
* Implemented area opacity setting for area chart
64+
* Implemented area and point opacity settings for area chart
6565
* Implemented new settings for pie chart like pie hole, start angle and slice offset
6666
* Implemented ability to select a color for chart title and legend items
6767
* Fixed number formatting settings for linear charts, from now it works only for axis labels

0 commit comments

Comments
 (0)