Skip to content

Commit d4ae302

Browse files
committed
Axes panel visibility issues
1 parent 53fb42e commit d4ae302

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

src/default_panels/StyleAxesPanel.js

Lines changed: 14 additions & 19 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]">
@@ -128,6 +131,15 @@ class StyleAxesPanel extends Component {
128131
]}
129132
clearable={false}
130133
/>
134+
<PlotlySection name={_('Zoom Interactivity')} attr="fixedrange">
135+
<Radio
136+
attr="fixedrange"
137+
options={[
138+
{label: _('Enable'), value: false},
139+
{label: _('Disable'), value: true},
140+
]}
141+
/>
142+
</PlotlySection>
131143
</AxesFold>
132144

133145
<AxesFold name={_('Lines')}>
@@ -480,26 +492,9 @@ 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')}
500-
axisFilter={axis =>
501-
!axis._name.includes('angular') && !axis._name.includes('radial')
502-
}
497+
axisFilter={axis => axis._subplot.includes('cartesian')}
503498
>
504499
<Radio
505500
attr="showspikes"

0 commit comments

Comments
 (0)