-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Pie chart series name class for text ct-label element #942
Comments
That's a bit unfortunate at the moment, but is not likely to change before the Major update with 1.0.0. You can use an ugly selector approach as a workaround. .ct-label:nth-child(1), .ct-label:nth-child(2) etc. |
I see, would you consider a pull request? |
@gionkunz I have the same problem. Your suggested solution fixes it, unless you have a 0 value (for example To fix this problem I set My suggested solution is that the className of the 'slice', like 'series-a' or 'my-custom-class-name' is set on the label as well. I created a PR for it: https://github.com/gionkunz/chartist-js/pull/1198 |
I'm using a donut chart like in the examples:
The produced HTML code (FRAGMENT) is
As you can see I'm not able to customize with CSS the two labels differently, because they have the same class. Even if I set up
I would expect to obtain
The text was updated successfully, but these errors were encountered: