Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am having a problem with Pie chart labels. Just one of many examples below. Is there any trick to not having labels overlap without changing the overall size of the pie chart object?
Hello, Steve!
You can use Replace() function for replacing spaces to chr(13) in your labels.
Or you can load another field with short labels for this case.
Thanks for the reply. I am not sure I understand: Replace() function for replacing spaces to chr(13) in your labels
Steve
I meant to use this expression:
dual(replace(field,' ',chr(13)),sum(val))
but it looks like for pie chart it doesn't work, unlike other charts =/
my apologizes
but, you still have an option to create a short-names field and use it instead of long-names parent
If you upgrade your version of QV to 12 you'll be able to use replace() function:
The script:
LOAD * Inline
[piece, val
Aaaaa aaaaaa aaaaa,10
Bbbbbbb bbbbbbbbb,15
Cccccc cccccc cccc,3
Dddd dddddd dddddd,3
Eeeeee eeeee eeeee,25
Fffffff fffffffff,20
Ggggg ggggggggggg,15
Hhhhhhh hhhh hhhhh,12];
Check here: Pie Chart visualization: Overlapping values
Using a repeat function you can move labels up.