Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Labels for charts can be hidden behind objects rendered after them. #16

Open
g1eng opened this issue Dec 1, 2021 · 0 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@g1eng
Copy link
Owner

g1eng commented Dec 1, 2021

Problem

Labels for pie charts can be hidden with arcs rendered after them.
For example, an arc for the last datum can be put over the label for the first datum of pie chart:

e02

Also nested pie (or doughnut) can hide labels for other pie charts' labels:

e02-2

A layered chart with shared drawing area for two or more layers has this type of problem

Cause

Layer.setLabel simply add SVG elements to the layer when it is invoked. So newer layers added after that, are placed in front of layers drawn in past and can hide any labels of that layers.

Proposal

Change order to invoke setLabel, or rearrange all labels in front of any object after rendering

@g1eng g1eng added the bug Something isn't working label Dec 1, 2021
@g1eng g1eng changed the title Labels for charts can be hidden behind rendered object after them. Labels for charts can be hidden behind objects rendered after them. Dec 1, 2021
@g1eng g1eng added this to the v0.2.0 milestone Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant