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

Configurable pie chart slice color (& other styling) #1656

Closed
getaaron opened this issue Aug 30, 2020 · 0 comments
Closed

Configurable pie chart slice color (& other styling) #1656

getaaron opened this issue Aug 30, 2020 · 0 comments

Comments

@getaaron
Copy link

Is your feature request related to a problem? Please describe.

I want to be able to configure the styling of pie chart, especially the slice color.

Color

Looks like the color is hardcoded (obtained via d3 somehow) and does not appear to be configurable:

var color = scaleOrdinal()
.domain(data)
.range(schemeSet2);

.attr('fill', function(d) {
return color(d.data.key);
})

Font Size

Same with the font size:

.style('font-size', 17);

Others

  • font
  • stroke color
  • stroke width

Describe the solution you'd like

A documented way to apply styles to a pie chart which works in the live editor

Describe alternatives you've considered

None

Additional context

None

@getaaron getaaron added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Aug 30, 2020
@ashishjain0512 ashishjain0512 self-assigned this May 7, 2021
knsv added a commit that referenced this issue May 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants