Closed Frencil closed 7 years ago
Resolved on master (to go with v0.5.6 release) - solution was to pass entire data element to scale function in the absence of a defined field in the part of the layout that invokes the scale function. This solves the issue for PheWeb using a scale function to do a more complex conditional for effect direction as shown in the test for this fix which implements just such a custom scale function.
Awesome, I'll try this out.
See this issue for context. The use case here is that the point shape on a scatter plot (something that can already be mapped to scale functions) needs to do some logic that conditions on more than one field at a time, and presently scale functions only allow one field to be passed. A general solution would be for scale functions to take an array of field names, an entire data element, or both.