Skip to content

Commit b890a13

Browse files
wip
1 parent 6af5b97 commit b890a13

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

src/default_panels/StyleTracesPanel.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -612,40 +612,6 @@ const StyleTracesPanel = (props, {localize: _}) => (
612612
options={[{label: _('Yes'), value: true}, {label: _('No'), value: false}]}
613613
/>
614614
</TraceTypeSection>
615-
<PlotlySection name={_('Hover/Tooltip')}>
616-
<HoveronDropdown attr="hoveron" label={_('Hover on')} />
617-
<HoverTemplateSwitch attr="hovertemplate" label={_('Mode')} />
618-
<HoverInfo attr="hoverinfo" label={_('Show')} />
619-
<HoverTemplateText attr="hovertemplate" label={_('Template')} />
620-
<Radio
621-
label={_('Split labels')}
622-
attr="hoverlabel.split"
623-
options={[{label: _('Yes'), value: true}, {label: _('No'), value: false}]}
624-
/>
625-
<HoverLabelNameLength label={_('Trace Name')} attr="hoverlabel.namelength" />
626-
<VisibilitySelect
627-
attr="contour.show"
628-
label={_('Show Contour')}
629-
options={[{label: _('Show'), value: true}, {label: _('Hide'), value: false}]}
630-
showOn={true}
631-
defaultOpt={false}
632-
>
633-
<MultiColorPicker label={_('Contour Color')} attr="contour.color" />
634-
<Numeric label={_('Contour Width')} attr="contour.width" />
635-
</VisibilitySelect>
636-
<Dropdown
637-
label={_('Text Alignment')}
638-
attr="hoverlabel.align"
639-
options={[
640-
{label: _('Auto'), value: 'auto'},
641-
{label: _('Left'), value: 'left'},
642-
{label: _('Right'), value: 'right'},
643-
]}
644-
clearable={false}
645-
/>
646-
<Text label={_('Value Format')} attr="valueformat" />
647-
<Text label={_('Value Suffix')} attr="valuesuffix" />
648-
</PlotlySection>
649615
<PlotlySection name={_('Colorscale')}>
650616
<ColorscalePicker label={_('Colorscale')} attr="colorscale" />
651617
<Radio
@@ -796,6 +762,40 @@ const StyleTracesPanel = (props, {localize: _}) => (
796762
<MultiColorPicker label={_('Line Color')} attr="link.line.color" />
797763
<Numeric label={_('Line Width')} attr="link.line.width" min={0} />
798764
</PlotlySection>
765+
<PlotlySection name={_('Hover/Tooltip')}>
766+
<HoveronDropdown attr="hoveron" label={_('Hover on')} />
767+
<HoverTemplateSwitch attr="hovertemplate" label={_('Mode')} />
768+
<HoverInfo attr="hoverinfo" label={_('Show')} />
769+
<HoverTemplateText attr="hovertemplate" label={_('Template')} />
770+
<Radio
771+
label={_('Split labels')}
772+
attr="hoverlabel.split"
773+
options={[{label: _('Yes'), value: true}, {label: _('No'), value: false}]}
774+
/>
775+
<HoverLabelNameLength label={_('Trace Name')} attr="hoverlabel.namelength" />
776+
<VisibilitySelect
777+
attr="contour.show"
778+
label={_('Show Contour')}
779+
options={[{label: _('Show'), value: true}, {label: _('Hide'), value: false}]}
780+
showOn={true}
781+
defaultOpt={false}
782+
>
783+
<MultiColorPicker label={_('Contour Color')} attr="contour.color" />
784+
<Numeric label={_('Contour Width')} attr="contour.width" />
785+
</VisibilitySelect>
786+
<Dropdown
787+
label={_('Text Alignment')}
788+
attr="hoverlabel.align"
789+
options={[
790+
{label: _('Auto'), value: 'auto'},
791+
{label: _('Left'), value: 'left'},
792+
{label: _('Right'), value: 'right'},
793+
]}
794+
clearable={false}
795+
/>
796+
<Text label={_('Value Format')} attr="valueformat" />
797+
<Text label={_('Value Suffix')} attr="valuesuffix" />
798+
</PlotlySection>
799799
<TraceTypeSection
800800
name={_('Error Bars X')}
801801
traceTypes={['scatter', 'scattergl', 'scatter3d', 'bar']}

0 commit comments

Comments
 (0)