-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
JSON Mock with numeric Funnel.line.dash value #4712
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
To me this looks like a good catch! Right now 10 coerced as "10". |
Also that mock has The key part of the attribute description is " Side note: according to the docs you actually should not use "px" in the attribute as we suggest in the description, though AFAIK browsers universally accept it that way.
|
@alexcjohnson I don't quite understand when you say
Does that mean it should not be made into an enumerate? Note that this type of free-form check is already made in another "shapes": {
"items": {
"shape": {
...
"xref": {
"valType": "enumerated",
"values": [
"paper",
"/^x([2-9]|[1-9][0-9]+)?$/"
],
"role": "info",
"editType": "calc",
"description": "Sets the shape's x coordinate axis. If set to an x axis id (e.g. *x* or *x2*), the `x` position refers to an x coordinate. If set to *paper*, the `x` position refers to the distance from the left side of the plotting area in normalized coordinates where *0* (*1*) corresponds to the left (right) side. If the axis `type` is *log*, then you must take the log of your desired range. If the axis `type` is *date*, then you must convert the date to unix time in milliseconds."
},
...
} |
Ah I had forgotten that we labeled I suppose in principle we could do the same thing for |
My JS knowledge is next to 0 and getting to know Plotly.js code is not doable. I have already bitten off more than I can chew on this Scala wrapper thingy. Went down this rabbit hole thinking I would have it done in a couple of weeks. 8-( |
I have the mock funnel_vertical_overlay_custom_arrays.json that sets the line
dash
to10
. Would I be correct in assuming that a value of"10"
is ok (i.e: changing the mock value to string is correct)? For the values0
to5
I assume0
refers to"solid"
, no? If so I guess the value10
is incorrect?Looking at the schema below it seems like this is a candidate for "enumerate". This would allow the Scala API to set the correct value. I see that issue #2903 has already referred to this possibility. Would it make sense for me to make a request?
TIA.
The text was updated successfully, but these errors were encountered: