Skip to content

Commit d7a9d27

Browse files
authored
Merge pull request #506 from plotly/axes-panel-visibility-issues
Axes panel visibility issues
2 parents 53fb42e + 4c4b7f9 commit d7a9d27

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/default_panels/StyleAxesPanel.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ class StyleAxesPanel extends Component {
6666
<AxesFold
6767
name={_('Layout')}
6868
axisFilter={axis =>
69-
!axis._name.includes('radial') && !axis._name.includes('angular')
69+
!(
70+
axis._subplot.includes('polar') ||
71+
axis._subplot.includes('ternary')
72+
)
7073
}
7174
>
7275
<PlotlySection name={_('Boundaries')} attr="domain[0]">
@@ -119,6 +122,15 @@ class StyleAxesPanel extends Component {
119122
<AxesRange label={_('Min')} attr="range[0]" />
120123
<AxesRange label={_('Max')} attr="range[1]" />
121124
</TraceTypeSection>
125+
<PlotlySection name={_('Zoom Interactivity')} attr="fixedrange">
126+
<Radio
127+
attr="fixedrange"
128+
options={[
129+
{label: _('Enable'), value: false},
130+
{label: _('Disable'), value: true},
131+
]}
132+
/>
133+
</PlotlySection>
122134
<Dropdown
123135
label={_('Direction')}
124136
attr="direction"
@@ -480,25 +492,13 @@ class StyleAxesPanel extends Component {
480492
</PlotlySection>
481493
</AxesFold>
482494

483-
<AxesFold
484-
name={_('Zoom Interactivity')}
485-
axisFilter={axis =>
486-
!axis._name.includes('angular') && !axis._name.includes('radial')
487-
}
488-
>
489-
<Radio
490-
attr="fixedrange"
491-
options={[
492-
{label: _('Enable'), value: false},
493-
{label: _('Disable'), value: true},
494-
]}
495-
/>
496-
</AxesFold>
497-
498495
<AxesFold
499496
name={_('Hover Projections')}
500497
axisFilter={axis =>
501-
!axis._name.includes('angular') && !axis._name.includes('radial')
498+
!(
499+
axis._subplot.includes('ternary') ||
500+
axis._subplot.includes('polar')
501+
)
502502
}
503503
>
504504
<Radio

0 commit comments

Comments
 (0)