-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
lowColor is available on the dumbbell series options, but doesn't appear in the api documentation or typescript type definitions #20403
Comments
Hi @ryanewtaylor! Thank you for reporting the issue! You are right it should be added to the |
@karolkolodziej, the TypeScript type for lowColor on the serries is also missing forcing me to cast it as any to avoid compiler warnings. Would this GitHub issue cover both cases (i.e., the documentation and the missing type definition)? |
@ryanewtaylor as a workaround, you can use the It is quite confusing, as in the docs it is stated that alternatively, the lower dot color can be changed by |
Yes I agree, a bit confusing. I am not too familiar with it, but I would assume that the higher-level options |
This is probably related to the recent changes in the dumbbell #19184 .
I think it should be changed to:
|
I believe it shouldn't be changed, since the |
You're right. Just like we discussed, I've modified docs slightly. |
Expected behaviour
Actual behaviour
It is not documented as being available on the series object
When applying lowColor on the series, we get the a typescript error despite lowColor being available on the DumbbellSeries type
The following code demonstrates this
By casting the series object
as any
the type error goes away and the desired color is applied, but I then lose all type safety.Live demo with steps to reproduce
JavaScript example
https://codepen.io/iamrewt/pen/zYbBWvK
Product version
Affected browser(s)
N/A. This is with regards to the documentation and typescript types.
The text was updated successfully, but these errors were encountered: