Closed Ava-Fleming closed 1 month ago
It looks like the label offset on is_left plays into this. the end.y is adjusted it generally seems to fix it.
I'm taking the index and doing some crude math to see what changes I can make it do here.
let is_left = angle > 180.0;
if is_left {
end.x -= label_offset;
end.y -= 10.0-(label_offset/(index as f32));
} else {
end.x += label_offset;
}
@Ava-Fleming Please try the latest version.
Tested this today, it looks like it resolves the problem. Thank you!
When part of the dataset is substantially larger than the remaining set there is overlapping text. This seems to be a problem when the smaller sets are almost the same.
Sample code: