Skip to content
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

Is it possible to have multiple datasets in different colors in the same PCP? #36

Closed
Karlo-Emilo opened this issue Aug 22, 2023 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@Karlo-Emilo
Copy link

Is it possible to have multiple datasets in different colors in the same PCP?

(In the newest version)

I remember that I have tried to use this library before to find out that it is not possible. But I may be wrong.

@Karlo-Emilo Karlo-Emilo added the question Further information is requested label Aug 22, 2023
@sgratzl
Copy link
Owner

sgratzl commented Aug 23, 2023

no since a chart.js dataset is already being used to represent one axis.

@Karlo-Emilo
Copy link
Author

Thanks for the reply @sgratzl

Do you know of another way to separate the data into different color groups?

@sgratzl
Copy link
Owner

sgratzl commented Sep 17, 2023

just published a patched version. now you should be able to define a context function similar to

borderColor: (ctx) => ctx.dataIndex < 10 ? 'red' : 'blue'

@sgratzl sgratzl self-assigned this Sep 17, 2023
@sgratzl sgratzl closed this as completed Sep 17, 2023
@Karlo-Emilo
Copy link
Author

How cool! Looking forward to try it out. It may be a few weeks before I find the time, but I will let you know how well it worked for me if you do not close the issue.

Thanks for taking the time to do this! It is very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants