Skip to content

Commit 72a614d

Browse files
author
Eugene Manuilov
committed
Implemented aggregation target and selection mode options for candlestick chart
1 parent c140a2d commit 72a614d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,34 @@ protected function _renderLineSettings() {
6868
),
6969
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 )
7070
);
71+
72+
echo '<div class="section-delimiter"></div>';
73+
74+
self::_renderSelectItem(
75+
esc_html__( 'Selection Mode', Visualizer_Plugin::NAME ),
76+
'selectionMode',
77+
$this->selectionMode,
78+
array(
79+
'' => '',
80+
'single' => esc_html__( 'Single data point', Visualizer_Plugin::NAME ),
81+
'multiple' => esc_html__( 'Multiple data points', Visualizer_Plugin::NAME ),
82+
),
83+
esc_html__( 'Determines how many data points an user can select on a chart.', Visualizer_Plugin::NAME )
84+
);
85+
86+
self::_renderSelectItem(
87+
esc_html__( 'Aggregation Target', Visualizer_Plugin::NAME ),
88+
'aggregationTarget',
89+
$this->aggregationTarget,
90+
array(
91+
'' => '',
92+
'category' => esc_html__( 'Group selected data by x-value', Visualizer_Plugin::NAME ),
93+
'series' => esc_html__( 'Group selected data by series', Visualizer_Plugin::NAME ),
94+
'auto' => esc_html__( 'Group selected data by x-value if all selections have the same x-value, and by series otherwise', Visualizer_Plugin::NAME ),
95+
'none' => esc_html__( 'Show only one tooltip per selection', Visualizer_Plugin::NAME ),
96+
),
97+
esc_html__( 'Determines how multiple data selections are rolled up into tooltips. To make it working you need to set multiple selection mode and tooltip trigger to display it when an user selects an element.', Visualizer_Plugin::NAME )
98+
);
7199
self::_renderSectionEnd();
72100

73101
self::_renderSectionStart( esc_html__( 'Failing Candles', Visualizer_Plugin::NAME ), false );

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 aggregation target and selection mode options for candlestick chart
6263
* Implemented focus target and data opacity for columnar chars
6364
* Implemented data opacity and interpolate nulls settings for line chart
6465
* Implemented ability to edit tooltip settings

0 commit comments

Comments
 (0)