Replies: 2 comments 2 replies
-
Remotely related to: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Array should work fine but can't test it right now. But why wouldn't you just pass the single color instead of an array filled with the same color? backgroundColor: 'rgba(0, 0, 255, 1)',
borderColor: 'rgba(0, 0, 255, 1)' |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm porting some code from JavaScript to TypeScript and I'm having the following issue.
In JavaScript we could define backgroundColor as an array of colors to be able to specify the color of each of our data point.
However in TypeScript backgroundColor won't accept an array when the chart type is set to line.
Is there any thing I can do to workaround that issue? I mean the functionality is working seems to be an issue with the TypeScript definition.
My code looks like that:
Beta Was this translation helpful? Give feedback.
All reactions