0
votes

I have selected multiline option in GetBottomAxis(), Since the text length of Bottom axis is large, So when I do a Save Image of Size 300x300 most of the area is taken by labels on X-Axis and chart displayed is small, Please let me know how I can roundoff the text of X-Axis Label.

Please Find the sample example,simply plotted a chart and extended the text length of X-Axis and exported the file by changing the size to 300x300 and below is the result.

enter image description here

Thanks Akshay

1
Please post an SSCCE so we can reproduce the exact situation here - Yeray
Have updated the question with the example hope this helps - Akshay Bhalla
An image is helpful (and I'll try to give an answer) but note a project is usually required to reproduce a problem. - Yeray

1 Answers

0
votes

Take a look at the documentation to understand what's the purpose of that property:

**MultiLine labels**
Axis labels can be displayed as multi-line text instead of a single line of text. Lines are separated using the carriage-return ascii character ( #13 ).

*Example* 
    //Add the Series labels in this way and apply 'Marks' as Axis labelling style
    TChart1.Series(0).Add 1234, "New"+chr$(13)+"cars", vbRed
    TChart1.Series(0).Add 2000, "Old"+chr$(13)+"bicycles", vbBlue 

If you have a very long text to be split, you should do it yourself.