Skip to content

Commit d0a5571

Browse files
authored
Merge pull request #6781 from plotly/fix-6774
plot schema should not show `line.shape` options for `scatterpolargl` trace
2 parents 19322e9 + 3e86994 commit d0a5571

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

draftlogs/6781_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix plot schema not to show `line.shape` options for `scatterpolargl` trace [[#6781](https://github.com/plotly/plotly.js/pull/6781)]

src/traces/scatterpolargl/attributes.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ module.exports = {
2121
hovertext: scatterPolarAttrs.hovertext,
2222
hovertemplate: scatterPolarAttrs.hovertemplate,
2323

24-
line: scatterGlAttrs.line,
24+
line: {
25+
color: scatterGlAttrs.line.color,
26+
width: scatterGlAttrs.line.width,
27+
dash: scatterGlAttrs.line.dash,
28+
editType: 'calc'
29+
},
30+
2531
connectgaps: scatterGlAttrs.connectgaps,
2632

2733
marker: scatterGlAttrs.marker,

test/plot-schema.json

-13
Original file line numberDiff line numberDiff line change
@@ -58874,19 +58874,6 @@
5887458874
},
5887558875
"editType": "calc",
5887658876
"role": "object",
58877-
"shape": {
58878-
"description": "Determines the line shape. The values correspond to step-wise line shapes.",
58879-
"dflt": "linear",
58880-
"editType": "calc",
58881-
"valType": "enumerated",
58882-
"values": [
58883-
"linear",
58884-
"hv",
58885-
"vh",
58886-
"hvh",
58887-
"vhv"
58888-
]
58889-
},
5889058877
"width": {
5889158878
"description": "Sets the line width (in px).",
5889258879
"dflt": 2,

0 commit comments

Comments
 (0)