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

FEATURE: Piechart: draw border lines around each part #5645

Closed
development-s365 opened this issue Jul 20, 2018 · 1 comment · Fixed by #5841
Closed

FEATURE: Piechart: draw border lines around each part #5645

development-s365 opened this issue Jul 20, 2018 · 1 comment · Fixed by #5841

Comments

@development-s365
Copy link

Expected Behavior

We would like to draw border lines on each part of a pie chart.

Current Behavior

Currently some parts get 3 border lines, others none or 1 or 2.

Visual example of difference

image

Context

Our bar charts are also styled with 1 color: a border (not transparant) and the internal area (same color but with transparancy):
image

The legend of the pie chart has the same look:
image

We would like to achieve the same visual result for the pie parts.
Probably related to #2381 ?

@Hedva
Copy link

Hedva commented Jul 23, 2018

Those border are drawn, but they overlap each other.
There is no such thing in canvas to control the alignment of the stroke (inner, outer, center).

However, you could overwrite the draw function, and add your own calculations for the border position.
This can be done, no matter how complex

https://stackoverflow.com/questions/34233514/draw-outer-and-inner-border-around-any-canvas-shape/34234589#34234589

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

Successfully merging a pull request may close this issue.

2 participants