Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add class name of series to its label element in pie charts#1198

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
petervtzand wants to merge1 commit intochartist-js:main
base:main
Choose a base branch
Loading
frompetervtzand:add-correct-classname-to-label-in-piechart

Conversation

@petervtzand
Copy link

@petervtzandpetervtzand commentedNov 18, 2019
edited
Loading

Problem

This fixesthis issue, it makes sure the labels get the same 'series-X' class name (or custom className if given) as their corresponding slices. This is needed because then we can style the labels without having to use 'nth-child'.

Solution

Add className on the label element, that corresponds with the correct slice. Set

  • custom className if set
  • otherwise set 'series-X'

@petervtzandpetervtzand changed the titleAdd className of the series to the labelElementAdd class name of series to the label element in pie chartsNov 18, 2019
@petervtzandpetervtzand changed the titleAdd class name of series to the label element in pie chartsAdd class name of series to its label element in pie chartsNov 18, 2019
@dangreendangreenforce-pushed thedevelop branch 5 times, most recently fromf818b93 to3173275CompareJuly 30, 2022 09:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Pie chart series name class for text ct-label element

1 participant

@petervtzand

[8]ページ先頭

©2009-2025 Movatter.jp