You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
When trying to add a Scatter chart or a Line chart, I get several TypeScript errors and unfortunately, the errors are very long and hard to parse, so I have no idea what is wrong. This may happen with other chart types as well, but Scatter and Line (especially a combined Scatter with line data) is what I need.
Or in some cases, the error is simple but makes no sense. For instance, I get Type '"radialLinear"' is not assignable to type '"linear"'. but I'm not using radialLinear at all, so I don't know why it's complaining.
I tried importing types and assigning them to my variables, but that still doesn't work.
This could be related to #1048, but I also had this issue when I didn't mix chart types.
Would you like to work on a fix?
Current and expected behavior
When trying to add a Scatter chart or a Line chart, I get several TypeScript errors and unfortunately, the errors are very long and hard to parse, so I have no idea what is wrong. This may happen with other chart types as well, but Scatter and Line (especially a combined Scatter with line data) is what I need.
Or in some cases, the error is simple but makes no sense. For instance, I get
Type '"radialLinear"' is not assignable to type '"linear"'.
but I'm not usingradialLinear
at all, so I don't know why it's complaining.I tried importing types and assigning them to my variables, but that still doesn't work.
This could be related to #1048, but I also had this issue when I didn't mix chart types.
Link to repo/CI with type issues (also copied below for ease of access)
Reproduction
merlinstardust/chartjs-type-issue#1
chart.js version
4.3.0
vue-chartjs version
5.2.0
Possible solution
I am currently solving this by setting data and options to the
any
type, though I would prefer not to do that.I would like to see an example set of code with typings so I can emulate that.
The text was updated successfully, but these errors were encountered: