Replies: 1 comment
-
|
Ok, I got it to work by not specifying these four axis args, avoiding usage of the defaults. Added these to the argument list and it compiles: The combination of so many arguments having default values, with the overload, increases the chance for ambiguity quite a bit. Does anyone else think the overloading of XYGraph is worth turning into an issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a new user and am having trouble with coding the XYGraph function. This function is overloaded, and I'm trying to use the first definition where xAxisLabels and yAxisLabels are composables, like in the stacked bar chart sample. But in the IDE I keep hitting an overload ambiguity problem as soon as I try to specify the xAxisLabels and yAxisLabels arguments and I don't see why. It's probably something simple I'm missing. Anyway starting with is code:
The IDE is happy with this. If i then add the labels arguments, the overload ambiguity strikes:
Both the IDE and a Gradle assemble complain about the same ambiguity. Anyone see what I'm doing wrong?
At this point I'm wishing these two definitions of XYGraph weren't overloads just to make the error messages better when something is wrong. Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions