Y-Axis labelling - how to manage the size better
Posted: Tue Oct 04, 2016 5:04 pm
Hello, this is more of an advice question than anything. I have a graph that is setup as segments, (screenshot on the bottom). As you can see, the Titles for the Y axis can get way longer than they should be, and it reduces redability.
I'd liek to do one of three things:
A) Insert newlines in the title text if the title text gets longer than the height of the segment
B) Cut the text off if it gets arbitrarely longer than X pixels, where X is some constant
C) Cut the text off it gets longer than the height of the segment.
Is there any way to accomplish any of these.
Right now whats coming to my mind is an 'updatetitles' method, which is called on chartresize that will call measurestring on text, compare the width to the segment width and then modify the chart title if it seems too long.
Is there a better approach?
Thanks.
I'd liek to do one of three things:
A) Insert newlines in the title text if the title text gets longer than the height of the segment
B) Cut the text off if it gets arbitrarely longer than X pixels, where X is some constant
C) Cut the text off it gets longer than the height of the segment.
Is there any way to accomplish any of these.
Right now whats coming to my mind is an 'updatetitles' method, which is called on chartresize that will call measurestring on text, compare the width to the segment width and then modify the chart title if it seems too long.
Is there a better approach?
Thanks.