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 request: do not render 0 values #16

Open
frafra opened this issue Jul 6, 2022 · 5 comments
Open

Feature request: do not render 0 values #16

frafra opened this issue Jul 6, 2022 · 5 comments

Comments

@frafra
Copy link

frafra commented Jul 6, 2022

Hi,
pgf-pie tries to render 0 values, and this creates graphical glitches and text written on top of other labels. It would be good to have an option to disable these values and remove them from the legend.

image

@hmenke
Copy link
Member

hmenke commented Jul 6, 2022

Why don't you just remove the 0 slice from the specification?

@muzimuzhi
Copy link
Member

Filtering out zero values can be seen as a special case of a more general filter, like the /pgfplots/x filter in pgfplots. But since pgf-pie is so light, I would suggest to do all these pre-processing operations (filtering values, merging small values, etc.) manually.

@frafra
Copy link
Author

frafra commented Jul 7, 2022

Why don't you just remove the 0 slice from the specification?

Sometimes you have many graphs with the same classes, but data has some zeros.

@frafra
Copy link
Author

frafra commented Jul 7, 2022

Filtering out zero values can be seen as a special case of a more general filter, like the /pgfplots/x filter in pgfplots. But since pgf-pie is so light, I would suggest to do all these pre-processing operations (filtering values, merging small values, etc.) manually.

Would it still be considered a rendering problem if labels overlaps with non-zero values?

@muzimuzhi
Copy link
Member

Filtering out zero values can be seen as a special case of a more general filter, like the /pgfplots/x filter in pgfplots. But since pgf-pie is so light, I would suggest to do all these pre-processing operations (filtering values, merging small values, etc.) manually.

Would it still be considered a rendering problem if labels overlaps with non-zero values?

It's something neither tikz (excluding graphdrawing lib) nor pgf-pie provides auto solutions.

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

No branches or pull requests

3 participants