react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

Attribute "boxgroupgap" unrecognized by react-plotly.js

Open jtenerelli017 opened this issue 1 year ago • 3 comments

I am attempting to use the attribute "boxgroupgap" from the plotly.js library, with the parent "layout", so that boxplot elements grouped together are thicker and thus more visible. However, it appears react-plotly.js doesn't recognize the line of code when I try to implement it. image Here it says at the bottom that "boxgroupgap" is not a part of Partial<Layout>. I've actually encountered this issue before, with a lot of attributes carrying over from the main plotly.js library but some simply don't work. Is "boxgroupgap" simply not a part of the react version of plotly.js?

jtenerelli017 avatar May 06 '23 21:05 jtenerelli017

Your syntax is incorrect. You are missing }} at the end of the line.

msimoni18 avatar May 07 '23 00:05 msimoni18

Your syntax is incorrect. You are missing }} at the end of the line.

Here is a screenshot of the full file for context. image As you can see, there is already a '}}' on line 52. If you meant to say add '}}' to line 16, then that results in a syntax error. If you meant another line, please let me know.

jtenerelli017 avatar May 07 '23 00:05 jtenerelli017

Ah sorry I missed that. Looks like you need a comma at the end of line 52.

msimoni18 avatar May 07 '23 01:05 msimoni18