Skip to content

Commit c9222c8

Browse files
committed
Add ohlc styling attributes to Default Editor
1 parent 50fb101 commit c9222c8

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

src/DefaultEditor.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class DefaultEditor extends Component {
4848
clearable={false}
4949
show
5050
/>
51+
5152
<DataSelector
5253
label="Labels"
5354
attr="labels"
@@ -67,6 +68,19 @@ class DefaultEditor extends Component {
6768
<DataSelector label="Y" attr="y" clearable={false} hasBlank />
6869

6970
<DataSelector label="Z" attr="z" clearable={false} hasBlank />
71+
72+
<DataSelector label="Open" attr="open" clearable={false} hasBlank />
73+
74+
<DataSelector label="High" attr="high" clearable={false} hasBlank />
75+
76+
<DataSelector label="Low" attr="low" clearable={false} hasBlank />
77+
78+
<DataSelector
79+
label="Close"
80+
attr="close"
81+
clearable={false}
82+
hasBlank
83+
/>
7084
</TraceAccordion>
7185
</Panel>
7286

@@ -150,6 +164,10 @@ class DefaultEditor extends Component {
150164
/>
151165
</Section>
152166

167+
<Section name={_('Ticks')}>
168+
<Numeric label={_('Width')} attr="tickwidth" />
169+
</Section>
170+
153171
<Section name={_('Lines')}>
154172
<Numeric label={_('Width')} attr="line.width" />
155173
<ColorPicker label={_('Line Color')} attr="line.color" />
@@ -164,6 +182,44 @@ class DefaultEditor extends Component {
164182
]}
165183
/>
166184
</Section>
185+
186+
<Section name={_('Increasing Trace Styles')}>
187+
<Numeric label={_('Width')} attr="increasing.line.width" />
188+
<ColorPicker
189+
label={_('Line Color')}
190+
attr="increasing.line.color"
191+
/>
192+
<LineDashSelector label={_('Type')} attr="increasing.line.dash" />
193+
<Radio
194+
label="Show in Legend"
195+
attr="increasing.showlegend"
196+
options={[
197+
{label: _('Show'), value: true},
198+
{label: _('Hide'), value: false},
199+
]}
200+
/>
201+
</Section>
202+
203+
<Section name={_('Increasing Trace Styles')}>
204+
<Numeric label={_('Width')} attr="decreasing.line.width" />
205+
<ColorPicker
206+
label={_('Line Color')}
207+
attr="decreasing.line.color"
208+
/>
209+
<LineDashSelector label={_('Type')} attr="decreasing.line.dash" />
210+
<Radio
211+
label="Show in Legend"
212+
attr="decreasing.showlegend"
213+
options={[
214+
{label: _('Show'), value: true},
215+
{label: _('Hide'), value: false},
216+
]}
217+
/>
218+
</Section>
219+
220+
<Section name={_('Text Shown on Hover')}>
221+
<MultiFormatTextEditor attr="text" />
222+
</Section>
167223
</TraceAccordion>
168224
</TraceRequiredPanel>
169225

0 commit comments

Comments
 (0)