I tested this on Linux (gcc 4.8.4) and it draws the label on 2 separate lines.
doublemax: I assume that wxfreechart uses wxDC::DrawText to draw the label which only supports multi-line texts since wx 2.9.2
Yes it does, although in the OP's case I expect the label is appearing vertically, so it is drawn with wxDC::DrawRotatedText. Could this be the issue? It should be simple to check by setting:
Code: Select all
bottomAxis->SetVerticalLabelText(false);
Sorry, I don't have VS 2010 to try it
Jackzz, as an aside I have a slightly improved update to the wxCode wxFreeChart on GitHub (
https://github.com/iwbnwif/wxFreeChart). This incorporates several bug fixes by PB and myself, although AFAIK nothing has been changed with this part of the labelling code.
wxWidgets 3.1.2, MinGW64 8.1.0, g++ 8.1.0, Ubuntu 19.04, Windows 10, CodeLite + wxCrafter
Some people, when confronted with a GUI problem, think "I know, I'll use Eclipse RCP". Now they have two problems.