-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
"dash length list in px" option not specified in schema #2903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thinking more about it, could we add a regular expression to the values list that would handle this case? |
Right, we have
For now I'd make this a special case, but @etpinard what about folding this into regExpValues: [/^(\d+(\.\d+)?px,)*\d+(\.\d+)?px$/] ie in principle a list of regExpValues: ['^(\d+(\.\d+)?px,)*\d+(\.\d+)?px$'] (which is slightly more complicated than just Oddly, although we've always used So the ideal regexp might be: |
Yep, About plotly.js/src/plot_api/plot_schema.js Lines 656 to 659 in def6aa5
to output what we want in the schema json. |
Thanks @alexcjohnson and @etpinard, I'll make it a special case and use @alexcjohnson 's regular expression as a starting point for our own validation. Even if we do add the regular expression to the schema, a special case is probably more user-friendly than telling a user that their string must match this regular expression 🙂 Here's the full list of traces that have a Based on the descriptions, it looks like all of them except |
That's correct 👍 |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
See plotly/plotly.py#1107.
Plotly.py version 3 is not allowing a
scatter.line.dash
property to be set to a list of lengths in pixels (e.g.'5px,10px,2px,2px'
). The issue is that the schema lists the property as an enumeration, and doesn't indicate this pixel list form:How would you recommend proceeding in plotly.py? Should dashes be a special case (which is fine on my end), or is there something that we should do in the schema?
Thanks!
The text was updated successfully, but these errors were encountered: