Skip to content

Commit 4804b0b

Browse files
committed
stacking group only for scatter + modified percy test
1 parent 12f3fb4 commit 4804b0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: dev/percy/panelTest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"sizesrc": "x1",
7474
"sizemode": "diameter"
7575
},
76-
"fill": "tozerox",
76+
"stackgroup": 1,
7777
"mode": "lines+markers+text",
7878
"line": {
7979
"dash": "solid",

Diff for: src/default_panels/StyleTracesPanel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ const StyleTracesPanel = (props, {localize: _}) => (
355355
<ContourNumeric label={_('Min Contour')} attr="contours.start" />
356356
<ContourNumeric label={_('Max Contour')} attr="contours.end" />
357357
</PlotlySection>
358-
<PlotlySection name={_('Stacking')}>
358+
<TraceTypeSection name={_('Stacking')} traceTypes={['scatter']} mode="trace">
359359
<GroupCreator label={_('Group')} prefix={_('Stack')} attr="stackgroup" />
360360
<Radio
361361
label={_('Gaps')}
@@ -379,7 +379,7 @@ const StyleTracesPanel = (props, {localize: _}) => (
379379
{label: _('Percent'), value: 'percent'},
380380
]}
381381
/>
382-
</PlotlySection>
382+
</TraceTypeSection>
383383
<TraceTypeSection
384384
name={_('Lines')}
385385
traceTypes={[

0 commit comments

Comments
 (0)